diff --git a/CHANGELOG.md b/CHANGELOG.md index d6e7a95f9..118876975 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,70 @@ +# 3.1.73 2024-02-07 + +### HuaweiCloud SDK GEIP + +- _Features_ + - Support `GEIP` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK EIP + +- _Features_ + - Support the following APIs: + - `ListTenantVpcIgws` + - `CreateTenantVpcIgw` + - `ShowInternalVpcIgw` + - `UpdateTenantVpcIgw` + - `DeleteTenantVpcIgw` + - `ListProjectGeipBindings` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDB + +- _Features_ + - Support the API `UpdateNewNodeAutoAddSwitch` +- _Bug Fix_ + - None +- _Change_ + - **CreateGaussMySqlProxy** + - changes of request param + - `+ new_node_auto_add_status` + - `+ new_node_weight` + - **ShowGaussMySqlProxyList** + - changes of response param + - `+ proxy_list.proxy.new_node_auto_add_status` + - `+ proxy_list.proxy.new_node_weight` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _Features_ + - Support the API `StopBackup` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK RDS + +- _Features_ + - Support the following APIs: + - `UpdateDatabaseOwner` + - `ExecutePrivilegeDatabaseUserRole` + - `ExecuteRevokeDatabaseUserRole` + - `ListDatabaseUserRole` + - `UpdatePostgresqlExtension` +- _Bug Fix_ + - None +- _Change_ + - **ListPostgresqlExtension** + - changes of response param + - `+ extensions.version_update` + # 3.1.72 2024-02-01 ### HuaweiCloud SDK CDN diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 72c905a79..e59510046 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,70 @@ +# 3.1.73 2024-02-07 + +### HuaweiCloud SDK GEIP + +- _新增特性_ + - 支持全域弹性公网IP服务 +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK EIP + +- _新增特性_ + - 支持以下接口: + - `ListTenantVpcIgws` + - `CreateTenantVpcIgw` + - `ShowInternalVpcIgw` + - `UpdateTenantVpcIgw` + - `DeleteTenantVpcIgw` + - `ListProjectGeipBindings` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 支持接口`UpdateNewNodeAutoAddSwitch` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateGaussMySqlProxy** + - 请求参数变更 + - `+ new_node_auto_add_status` + - `+ new_node_weight` + - **ShowGaussMySqlProxyList** + - 响应参数变更 + - `+ proxy_list.proxy.new_node_auto_add_status` + - `+ proxy_list.proxy.new_node_weight` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _新增特性_ + - 支持接口`StopBackup` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK RDS + +- _新增特性_ + - 支持以下接口: + - `UpdateDatabaseOwner` + - `ExecutePrivilegeDatabaseUserRole` + - `ExecuteRevokeDatabaseUserRole` + - `ListDatabaseUserRole` + - `UpdatePostgresqlExtension` +- _解决问题_ + - 无 +- _特性变更_ + - **ListPostgresqlExtension** + - 响应参数变更 + - `+ extensions.version_update` + # 3.1.72 2024-02-01 ### HuaweiCloud SDK CDN diff --git a/VERSION b/VERSION index 1a757e98f..b68260bfd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.72 +3.1.73 diff --git a/cdn/include/huaweicloud/cdn/v2/CdnClient.h b/cdn/include/huaweicloud/cdn/v2/CdnClient.h index 92dbe6e08..7582c0a76 100644 --- a/cdn/include/huaweicloud/cdn/v2/CdnClient.h +++ b/cdn/include/huaweicloud/cdn/v2/CdnClient.h @@ -10,14 +10,29 @@ #include #include #include +#include +#include +#include +#include +#include #include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include +#include +#include #include #include #include @@ -31,6 +46,8 @@ #include #include #include +#include +#include #include #include #include @@ -45,16 +62,31 @@ #include #include #include +#include +#include #include #include +#include +#include #include #include #include #include #include #include +#include +#include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -90,6 +122,22 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr batchCopyDomain( BatchCopyDomainRequest &request ); + // 删除资源标签配置接口 + // + // 用于删除资源标签。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchDeleteTags( + BatchDeleteTagsRequest &request + ); + // 创建加速域名 + // + // 创建加速域名。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createDomain( + CreateDomainRequest &request + ); // 创建预热缓存任务 // // 创建预热任务。 @@ -106,6 +154,30 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr createRefreshTasks( CreateRefreshTasksRequest &request ); + // 创建资源标签配置接口 + // + // 用于创建资源标签。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createTags( + CreateTagsRequest &request + ); + // 删除加速域名 + // + // 删除加速域名。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteDomain( + DeleteDomainRequest &request + ); + // 停用加速域名 + // + // 停用加速域名。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr disableDomain( + DisableDomainRequest &request + ); // 下载区域运营商指标数据表格文件 // // - 下载区域运营商指标数据表格文件。 @@ -142,6 +214,14 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr downloadStatisticsExcel( DownloadStatisticsExcelRequest &request ); + // 启用加速域名 + // + // 启用加速域名。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr enableDomain( + EnableDomainRequest &request + ); // 查询统计TOP100 referer数据明细 // // - 查询TOP100 referer数据。 @@ -200,6 +280,14 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr showBandwidthCalc( ShowBandwidthCalcRequest &request ); + // 查询所有绑定HTTPS证书的域名信息 + // + // 查询所有绑定HTTPS证书的域名信息 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showCertificatesHttpsInfo( + ShowCertificatesHttpsInfoRequest &request + ); // 查询用户计费模式 // // - 查询用户计费模式。 @@ -288,6 +376,14 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr showHistoryTasks( ShowHistoryTasksRequest &request ); + // 查询IP归属信息 + // + // 查询IP归属信息。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showIpInfo( + ShowIpInfoRequest &request + ); // 日志查询 // // 查询日志下载链接,支持查询30天内的日志信息。 @@ -296,6 +392,14 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr showLogs( ShowLogsRequest &request ); + // 查询资源标签列表配置接口 + // + // 用于查询资源标签列表。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showTags( + ShowTagsRequest &request + ); // 查询TOP域名 // // - 查询TOP域名。 @@ -344,6 +448,14 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr showUrlTaskInfo( ShowUrlTaskInfoRequest &request ); + // 查询域名归属校验信息 + // + // 用于查询域名归属校验信息 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showVerifyDomainOwnerInfo( + ShowVerifyDomainOwnerInfoRequest &request + ); // 修改域名全量配置接口 // // 修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。 @@ -352,6 +464,30 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnClient : public Client std::shared_ptr updateDomainFullConfig( UpdateDomainFullConfigRequest &request ); + // 一个证书批量设置多个域名 + // + // 一个证书配置多个域名,设置域名强制https回源参数。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateDomainMultiCertificates( + UpdateDomainMultiCertificatesRequest &request + ); + // 修改私有桶开启关闭状态 + // + // 修改私有桶开启关闭状态。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updatePrivateBucketAccess( + UpdatePrivateBucketAccessRequest &request + ); + // 域名归属校验 + // + // 用于域名归属校验 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr verifyDomainOwner( + VerifyDomainOwnerRequest &request + ); private: diff --git a/cdn/include/huaweicloud/cdn/v2/CdnMeta.h b/cdn/include/huaweicloud/cdn/v2/CdnMeta.h index 96e2babde..de7dd108a 100644 --- a/cdn/include/huaweicloud/cdn/v2/CdnMeta.h +++ b/cdn/include/huaweicloud/cdn/v2/CdnMeta.h @@ -14,14 +14,21 @@ using namespace HuaweiCloud::Sdk::Core::Http; class HUAWEICLOUD_CDN_V2_EXPORT CdnMeta { public: static HttpRequestDef genRequestDefForBatchCopyDomain(); + static HttpRequestDef genRequestDefForBatchDeleteTags(); + static HttpRequestDef genRequestDefForCreateDomain(); static HttpRequestDef genRequestDefForCreatePreheatingTasks(); static HttpRequestDef genRequestDefForCreateRefreshTasks(); + static HttpRequestDef genRequestDefForCreateTags(); + static HttpRequestDef genRequestDefForDeleteDomain(); + static HttpRequestDef genRequestDefForDisableDomain(); static HttpRequestDef genRequestDefForDownloadRegionCarrierExcel(); static HttpRequestDef genRequestDefForDownloadStatisticsExcel(); + static HttpRequestDef genRequestDefForEnableDomain(); static HttpRequestDef genRequestDefForListCdnDomainTopRefers(); static HttpRequestDef genRequestDefForListDomains(); static HttpRequestDef genRequestDefForSetChargeModes(); static HttpRequestDef genRequestDefForShowBandwidthCalc(); + static HttpRequestDef genRequestDefForShowCertificatesHttpsInfo(); static HttpRequestDef genRequestDefForShowChargeModes(); static HttpRequestDef genRequestDefForShowDomainDetailByName(); static HttpRequestDef genRequestDefForShowDomainFullConfig(); @@ -29,11 +36,17 @@ class HUAWEICLOUD_CDN_V2_EXPORT CdnMeta { static HttpRequestDef genRequestDefForShowDomainStats(); static HttpRequestDef genRequestDefForShowHistoryTaskDetails(); static HttpRequestDef genRequestDefForShowHistoryTasks(); + static HttpRequestDef genRequestDefForShowIpInfo(); static HttpRequestDef genRequestDefForShowLogs(); + static HttpRequestDef genRequestDefForShowTags(); static HttpRequestDef genRequestDefForShowTopDomainNames(); static HttpRequestDef genRequestDefForShowTopUrl(); static HttpRequestDef genRequestDefForShowUrlTaskInfo(); + static HttpRequestDef genRequestDefForShowVerifyDomainOwnerInfo(); static HttpRequestDef genRequestDefForUpdateDomainFullConfig(); + static HttpRequestDef genRequestDefForUpdateDomainMultiCertificates(); + static HttpRequestDef genRequestDefForUpdatePrivateBucketAccess(); + static HttpRequestDef genRequestDefForVerifyDomainOwner(); }; } diff --git a/cdn/include/huaweicloud/cdn/v2/model/BatchDeleteTagsRequest.h b/cdn/include/huaweicloud/cdn/v2/model/BatchDeleteTagsRequest.h new file mode 100644 index 000000000..24e606964 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/BatchDeleteTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_BatchDeleteTagsRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_BatchDeleteTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT BatchDeleteTagsRequest + : public ModelBase +{ +public: + BatchDeleteTagsRequest(); + virtual ~BatchDeleteTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteTagsRequest members + + /// + /// + /// + + DeleteTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const DeleteTagsRequestBody& value); + + +protected: + DeleteTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchDeleteTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_BatchDeleteTagsRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/BatchDeleteTagsResponse.h b/cdn/include/huaweicloud/cdn/v2/model/BatchDeleteTagsResponse.h new file mode 100644 index 000000000..028844a82 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/BatchDeleteTagsResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_BatchDeleteTagsResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_BatchDeleteTagsResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT BatchDeleteTagsResponse + : public ModelBase, public HttpResponse +{ +public: + BatchDeleteTagsResponse(); + virtual ~BatchDeleteTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteTagsResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_BatchDeleteTagsResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CdnIps.h b/cdn/include/huaweicloud/cdn/v2/model/CdnIps.h new file mode 100644 index 000000000..f863dc8f0 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CdnIps.h @@ -0,0 +1,108 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CdnIps_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CdnIps_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CDN_V2_EXPORT CdnIps + : public ModelBase +{ +public: + CdnIps(); + virtual ~CdnIps(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CdnIps members + + /// + /// 需查询的IP地址。 + /// + + std::string getIp() const; + bool ipIsSet() const; + void unsetip(); + void setIp(const std::string& value); + + /// + /// 是否是华为云CDN节点。(true:是华为云CDN节点,false:不是华为云CDN节点) + /// + + bool isBelongs() const; + bool belongsIsSet() const; + void unsetbelongs(); + void setBelongs(bool value); + + /// + /// IP归属地省份。(Unknown:表示未知归属地) + /// + + std::string getRegion() const; + bool regionIsSet() const; + void unsetregion(); + void setRegion(const std::string& value); + + /// + /// 运营商名称。如果IP归属地未知,该字段返回null。 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 平台。如果IP归属地未知,该字段返回null。 + /// + + std::string getPlatform() const; + bool platformIsSet() const; + void unsetplatform(); + void setPlatform(const std::string& value); + + +protected: + std::string ip_; + bool ipIsSet_; + bool belongs_; + bool belongsIsSet_; + std::string region_; + bool regionIsSet_; + std::string isp_; + bool ispIsSet_; + std::string platform_; + bool platformIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CdnIps_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CreateDomainRequest.h b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainRequest.h new file mode 100644 index 000000000..5eb22e6d0 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT CreateDomainRequest + : public ModelBase +{ +public: + CreateDomainRequest(); + virtual ~CreateDomainRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateDomainRequest members + + /// + /// + /// + + CreateDomainRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateDomainRequestBody& value); + + +protected: + CreateDomainRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateDomainRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CreateDomainRequestBody.h b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainRequestBody.h new file mode 100644 index 000000000..652160656 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainRequestBody_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 域名对象 +/// +class HUAWEICLOUD_CDN_V2_EXPORT CreateDomainRequestBody + : public ModelBase +{ +public: + CreateDomainRequestBody(); + virtual ~CreateDomainRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateDomainRequestBody members + + /// + /// + /// + + DomainBody getDomain() const; + bool domainIsSet() const; + void unsetdomain(); + void setDomain(const DomainBody& value); + + +protected: + DomainBody domain_; + bool domainIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainRequestBody_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CreateDomainResponse.h b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainResponse.h new file mode 100644 index 000000000..2c3326ba1 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT CreateDomainResponse + : public ModelBase, public HttpResponse +{ +public: + CreateDomainResponse(); + virtual ~CreateDomainResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateDomainResponse members + + /// + /// + /// + + CreateDomainResponseBodyContent getDomain() const; + bool domainIsSet() const; + void unsetdomain(); + void setDomain(const CreateDomainResponseBodyContent& value); + + +protected: + CreateDomainResponseBodyContent domain_; + bool domainIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CreateDomainResponseBodyContent.h b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainResponseBodyContent.h new file mode 100644 index 000000000..d85098cfc --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CreateDomainResponseBodyContent.h @@ -0,0 +1,254 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainResponseBodyContent_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainResponseBodyContent_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 创建域名返回信息。 +/// +class HUAWEICLOUD_CDN_V2_EXPORT CreateDomainResponseBodyContent + : public ModelBase +{ +public: + CreateDomainResponseBodyContent(); + virtual ~CreateDomainResponseBodyContent(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateDomainResponseBodyContent members + + /// + /// 加速域名ID。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 加速域名。 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// 域名业务类型: - web:网站加速; - download:文件下载加速; - video:点播加速; - wholeSite:全站加速。 + /// + + std::string getBusinessType() const; + bool businessTypeIsSet() const; + void unsetbusinessType(); + void setBusinessType(const std::string& value); + + /// + /// 域名服务范围,若为mainland_china,则表示服务范围为中国大陆;若为outside_mainland_china,则表示服务范围为中国大陆境外;若为global,则表示服务范围为全球。 + /// + + std::string getServiceArea() const; + bool serviceAreaIsSet() const; + void unsetserviceArea(); + void setServiceArea(const std::string& value); + + /// + /// 域名所属用户的domain_id。 + /// + + std::string getUserDomainId() const; + bool userDomainIdIsSet() const; + void unsetuserDomainId(); + void setUserDomainId(const std::string& value); + + /// + /// 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。 + /// + + std::string getDomainStatus() const; + bool domainStatusIsSet() const; + void unsetdomainStatus(); + void setDomainStatus(const std::string& value); + + /// + /// 加速域名对应的CNAME。 + /// + + std::string getCname() const; + bool cnameIsSet() const; + void unsetcname(); + void setCname(const std::string& value); + + /// + /// 源站信息。 + /// + + std::vector& getSources(); + bool sourcesIsSet() const; + void unsetsources(); + void setSources(const std::vector& value); + + /// + /// + /// + + DomainOriginHost getDomainOriginHost() const; + bool domainOriginHostIsSet() const; + void unsetdomainOriginHost(); + void setDomainOriginHost(const DomainOriginHost& value); + + /// + /// 是否开启HTTPS加速。 + /// + + int32_t getHttpsStatus() const; + bool httpsStatusIsSet() const; + void unsethttpsStatus(); + void setHttpsStatus(int32_t value); + + /// + /// 域名创建时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。 + /// + + int64_t getCreateTime() const; + bool createTimeIsSet() const; + void unsetcreateTime(); + void setCreateTime(int64_t value); + + /// + /// 域名修改时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。 + /// + + int64_t getModifyTime() const; + bool modifyTimeIsSet() const; + void unsetmodifyTime(); + void setModifyTime(int64_t value); + + /// + /// 封禁状态(0代表未禁用;1代表禁用)。 + /// + + int32_t getDisabled() const; + bool disabledIsSet() const; + void unsetdisabled(); + void setDisabled(int32_t value); + + /// + /// 锁定状态(0代表未锁定;1代表锁定)。 + /// + + int32_t getLocked() const; + bool lockedIsSet() const; + void unsetlocked(); + void setLocked(int32_t value); + + /// + /// range状态,off:关闭,on:开启。 + /// + + std::string getRangeStatus() const; + bool rangeStatusIsSet() const; + void unsetrangeStatus(); + void setRangeStatus(const std::string& value); + + /// + /// follow302状态,off:关闭,on:开启。 + /// + + std::string getFollowStatus() const; + bool followStatusIsSet() const; + void unsetfollowStatus(); + void setFollowStatus(const std::string& value); + + /// + /// 是否暂停源站回源(off代表关闭 on代表开启)。 + /// + + std::string getOriginStatus() const; + bool originStatusIsSet() const; + void unsetoriginStatus(); + void setOriginStatus(const std::string& value); + + /// + /// 自动刷新预热(0代表关闭;1代表打开)。 + /// + + int32_t getAutoRefreshPreheat() const; + bool autoRefreshPreheatIsSet() const; + void unsetautoRefreshPreheat(); + void setAutoRefreshPreheat(int32_t value); + + +protected: + std::string id_; + bool idIsSet_; + std::string domainName_; + bool domainNameIsSet_; + std::string businessType_; + bool businessTypeIsSet_; + std::string serviceArea_; + bool serviceAreaIsSet_; + std::string userDomainId_; + bool userDomainIdIsSet_; + std::string domainStatus_; + bool domainStatusIsSet_; + std::string cname_; + bool cnameIsSet_; + std::vector sources_; + bool sourcesIsSet_; + DomainOriginHost domainOriginHost_; + bool domainOriginHostIsSet_; + int32_t httpsStatus_; + bool httpsStatusIsSet_; + int64_t createTime_; + bool createTimeIsSet_; + int64_t modifyTime_; + bool modifyTimeIsSet_; + int32_t disabled_; + bool disabledIsSet_; + int32_t locked_; + bool lockedIsSet_; + std::string rangeStatus_; + bool rangeStatusIsSet_; + std::string followStatus_; + bool followStatusIsSet_; + std::string originStatus_; + bool originStatusIsSet_; + int32_t autoRefreshPreheat_; + bool autoRefreshPreheatIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateDomainResponseBodyContent_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CreateTagsRequest.h b/cdn/include/huaweicloud/cdn/v2/model/CreateTagsRequest.h new file mode 100644 index 000000000..27ab7b836 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CreateTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT CreateTagsRequest + : public ModelBase +{ +public: + CreateTagsRequest(); + virtual ~CreateTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTagsRequest members + + /// + /// + /// + + CreateTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateTagsRequestBody& value); + + +protected: + CreateTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CreateTagsRequestBody.h b/cdn/include/huaweicloud/cdn/v2/model/CreateTagsRequestBody.h new file mode 100644 index 000000000..626171ab0 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CreateTagsRequestBody.h @@ -0,0 +1,77 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsRequestBody_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// CreateTagsRequestBody +/// +class HUAWEICLOUD_CDN_V2_EXPORT CreateTagsRequestBody + : public ModelBase +{ +public: + CreateTagsRequestBody(); + virtual ~CreateTagsRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTagsRequestBody members + + /// + /// 资源id。 > 域名ID + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// 标签列表。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsRequestBody_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/CreateTagsResponse.h b/cdn/include/huaweicloud/cdn/v2/model/CreateTagsResponse.h new file mode 100644 index 000000000..647bc2027 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/CreateTagsResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT CreateTagsResponse + : public ModelBase, public HttpResponse +{ +public: + CreateTagsResponse(); + virtual ~CreateTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTagsResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_CreateTagsResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DeleteDomainRequest.h b/cdn/include/huaweicloud/cdn/v2/model/DeleteDomainRequest.h new file mode 100644 index 000000000..7595bb40d --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/DeleteDomainRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteDomainRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteDomainRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT DeleteDomainRequest + : public ModelBase +{ +public: + DeleteDomainRequest(); + virtual ~DeleteDomainRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteDomainRequest members + + /// + /// 加速域名ID。 + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string domainId_; + bool domainIdIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteDomainRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteDomainRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DeleteDomainResponse.h b/cdn/include/huaweicloud/cdn/v2/model/DeleteDomainResponse.h new file mode 100644 index 000000000..9cad34f07 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/DeleteDomainResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteDomainResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteDomainResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT DeleteDomainResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteDomainResponse(); + virtual ~DeleteDomainResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteDomainResponse members + + /// + /// + /// + + DomainsWithPort getDomain() const; + bool domainIsSet() const; + void unsetdomain(); + void setDomain(const DomainsWithPort& value); + + +protected: + DomainsWithPort domain_; + bool domainIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteDomainResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DeleteTagsRequestBody.h b/cdn/include/huaweicloud/cdn/v2/model/DeleteTagsRequestBody.h new file mode 100644 index 000000000..9f34e57bc --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/DeleteTagsRequestBody.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteTagsRequestBody_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteTagsRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// DeleteTagsRequestBody +/// +class HUAWEICLOUD_CDN_V2_EXPORT DeleteTagsRequestBody + : public ModelBase +{ +public: + DeleteTagsRequestBody(); + virtual ~DeleteTagsRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteTagsRequestBody members + + /// + /// 资源id。 > 域名ID + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// 键列表 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_DeleteTagsRequestBody_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DisableDomainRequest.h b/cdn/include/huaweicloud/cdn/v2/model/DisableDomainRequest.h new file mode 100644 index 000000000..92d800b43 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/DisableDomainRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_DisableDomainRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_DisableDomainRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT DisableDomainRequest + : public ModelBase +{ +public: + DisableDomainRequest(); + virtual ~DisableDomainRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DisableDomainRequest members + + /// + /// 加速域名ID。 + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string domainId_; + bool domainIdIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DisableDomainRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_DisableDomainRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DisableDomainResponse.h b/cdn/include/huaweicloud/cdn/v2/model/DisableDomainResponse.h new file mode 100644 index 000000000..6ab69d73d --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/DisableDomainResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_DisableDomainResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_DisableDomainResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT DisableDomainResponse + : public ModelBase, public HttpResponse +{ +public: + DisableDomainResponse(); + virtual ~DisableDomainResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DisableDomainResponse members + + /// + /// + /// + + DomainsWithPort getDomain() const; + bool domainIsSet() const; + void unsetdomain(); + void setDomain(const DomainsWithPort& value); + + +protected: + DomainsWithPort domain_; + bool domainIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_DisableDomainResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DomainBody.h b/cdn/include/huaweicloud/cdn/v2/model/DomainBody.h new file mode 100644 index 000000000..e7a863dc4 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/DomainBody.h @@ -0,0 +1,110 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_DomainBody_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_DomainBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 创建域名Body +/// +class HUAWEICLOUD_CDN_V2_EXPORT DomainBody + : public ModelBase +{ +public: + DomainBody(); + virtual ~DomainBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DomainBody members + + /// + /// 加速域名。( 由字母(A-Z,a-z,大小写等价)、数字(0-9)和连接符(-)组成,各级域名之间用(.)连接,域名长度不超过75个字符。连接符(-)不能作为域名的开头或结尾字符。) + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// 域名业务类型,若为web,则表示类型为网页加速;若为download,则表示业务类型为文件下载加速;若为video,则表示业务类型为点播加速;若为wholeSite,则表示业务类型为全站加速。 + /// + + std::string getBusinessType() const; + bool businessTypeIsSet() const; + void unsetbusinessType(); + void setBusinessType(const std::string& value); + + /// + /// 源站配置。 + /// + + std::vector& getSources(); + bool sourcesIsSet() const; + void unsetsources(); + void setSources(const std::vector& value); + + /// + /// 域名服务范围,若为mainland_china,则表示服务范围为中国大陆;若为outside_mainland_china,则表示服务范围为中国大陆境外;若为global,则表示服务范围为全球。 + /// + + std::string getServiceArea() const; + bool serviceAreaIsSet() const; + void unsetserviceArea(); + void setServiceArea(const std::string& value); + + /// + /// 当用户开启企业项目功能时,该参数生效,表示添加加速域名到该企业项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string domainName_; + bool domainNameIsSet_; + std::string businessType_; + bool businessTypeIsSet_; + std::vector sources_; + bool sourcesIsSet_; + std::string serviceArea_; + bool serviceAreaIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_DomainBody_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DomainsDetail.h b/cdn/include/huaweicloud/cdn/v2/model/DomainsDetail.h new file mode 100644 index 000000000..059a3b153 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/DomainsDetail.h @@ -0,0 +1,187 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_DomainsDetail_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_DomainsDetail_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 域名信息。 +/// +class HUAWEICLOUD_CDN_V2_EXPORT DomainsDetail + : public ModelBase +{ +public: + DomainsDetail(); + virtual ~DomainsDetail(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DomainsDetail members + + /// + /// 加速域名ID。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 加速域名。 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// 域名业务类型,若为web,则表示类型为网站加速;若为download,则表示业务类型为文件下载加速;若为video,则表示业务类型为点播加速;若为wholeSite,则表示类型为全站加速。 + /// + + std::string getBusinessType() const; + bool businessTypeIsSet() const; + void unsetbusinessType(); + void setBusinessType(const std::string& value); + + /// + /// 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。 + /// + + std::string getDomainStatus() const; + bool domainStatusIsSet() const; + void unsetdomainStatus(); + void setDomainStatus(const std::string& value); + + /// + /// 加速域名对应的CNAME。 + /// + + std::string getCname() const; + bool cnameIsSet() const; + void unsetcname(); + void setCname(const std::string& value); + + /// + /// 源站配置。 + /// + + std::vector& getSources(); + bool sourcesIsSet() const; + void unsetsources(); + void setSources(const std::vector& value); + + /// + /// 是否开启HTTPS加速。 0:代表未开启HTTPS加速; 1:代表开启HTTPS加速,且回源方式为协议跟随; 2:代表开启HTTPS加速,且回源方式为HTTP; 3:代表开启HTTPS加速,且回源方式为HTTPS。 + /// + + int32_t getHttpsStatus() const; + bool httpsStatusIsSet() const; + void unsethttpsStatus(); + void setHttpsStatus(int32_t value); + + /// + /// 域名创建时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。 + /// + + int64_t getCreateTime() const; + bool createTimeIsSet() const; + void unsetcreateTime(); + void setCreateTime(int64_t value); + + /// + /// 域名修改时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。 + /// + + int64_t getUpdateTime() const; + bool updateTimeIsSet() const; + void unsetupdateTime(); + void setUpdateTime(int64_t value); + + /// + /// 封禁状态(0代表未禁用;1代表禁用)。 + /// + + int32_t getDisabled() const; + bool disabledIsSet() const; + void unsetdisabled(); + void setDisabled(int32_t value); + + /// + /// 锁定状态(0代表未锁定;1代表锁定)。 + /// + + int32_t getLocked() const; + bool lockedIsSet() const; + void unsetlocked(); + void setLocked(int32_t value); + + /// + /// 华为云CDN提供的加速服务范围,包含:mainland_china中国大陆、outside_mainland_china中国大陆境外、global全球。 + /// + + std::string getServiceArea() const; + bool serviceAreaIsSet() const; + void unsetserviceArea(); + void setServiceArea(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string domainName_; + bool domainNameIsSet_; + std::string businessType_; + bool businessTypeIsSet_; + std::string domainStatus_; + bool domainStatusIsSet_; + std::string cname_; + bool cnameIsSet_; + std::vector sources_; + bool sourcesIsSet_; + int32_t httpsStatus_; + bool httpsStatusIsSet_; + int64_t createTime_; + bool createTimeIsSet_; + int64_t updateTime_; + bool updateTimeIsSet_; + int32_t disabled_; + bool disabledIsSet_; + int32_t locked_; + bool lockedIsSet_; + std::string serviceArea_; + bool serviceAreaIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_DomainsDetail_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/DomainsWithPort.h b/cdn/include/huaweicloud/cdn/v2/model/DomainsWithPort.h index c23c9640b..88a039ec5 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/DomainsWithPort.h +++ b/cdn/include/huaweicloud/cdn/v2/model/DomainsWithPort.h @@ -9,8 +9,9 @@ #include #include +#include +#include #include -#include #include namespace HuaweiCloud { @@ -67,6 +68,15 @@ class HUAWEICLOUD_CDN_V2_EXPORT DomainsWithPort void unsetbusinessType(); void setBusinessType(const std::string& value); + /// + /// 域名所属用户的domain_id。 + /// + + std::string getUserDomainId() const; + bool userDomainIdIsSet() const; + void unsetuserDomainId(); + void setUserDomainId(const std::string& value); + /// /// 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。 /// @@ -89,10 +99,19 @@ class HUAWEICLOUD_CDN_V2_EXPORT DomainsWithPort /// 源站配置。 /// - std::vector& getSources(); + std::vector& getSources(); bool sourcesIsSet() const; void unsetsources(); - void setSources(const std::vector& value); + void setSources(const std::vector& value); + + /// + /// + /// + + DomainOriginHost getDomainOriginHost() const; + bool domainOriginHostIsSet() const; + void unsetdomainOriginHost(); + void setDomainOriginHost(const DomainOriginHost& value); /// /// 是否开启HTTPS加速。 0:代表未开启HTTPS加速; 1:代表开启HTTPS加速,且回源方式为协议跟随; 2:代表开启HTTPS加速,且回源方式为HTTP; 3:代表开启HTTPS加速,且回源方式为HTTPS。 @@ -116,10 +135,10 @@ class HUAWEICLOUD_CDN_V2_EXPORT DomainsWithPort /// 域名修改时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。 /// - int64_t getUpdateTime() const; - bool updateTimeIsSet() const; - void unsetupdateTime(); - void setUpdateTime(int64_t value); + int64_t getModifyTime() const; + bool modifyTimeIsSet() const; + void unsetmodifyTime(); + void setModifyTime(int64_t value); /// /// 封禁状态(0代表未禁用;1代表禁用)。 @@ -139,6 +158,15 @@ class HUAWEICLOUD_CDN_V2_EXPORT DomainsWithPort void unsetlocked(); void setLocked(int32_t value); + /// + /// 自动刷新预热(0代表关闭;1代表打开)。 + /// + + int32_t getAutoRefreshPreheat() const; + bool autoRefreshPreheatIsSet() const; + void unsetautoRefreshPreheat(); + void setAutoRefreshPreheat(int32_t value); + /// /// 华为云CDN提供的加速服务范围,包含:mainland_china中国大陆、outside_mainland_china中国大陆境外、global全球。 /// @@ -148,6 +176,60 @@ class HUAWEICLOUD_CDN_V2_EXPORT DomainsWithPort void unsetserviceArea(); void setServiceArea(const std::string& value); + /// + /// Range回源状态(off代表关闭 on代表开启)。 + /// + + std::string getRangeStatus() const; + bool rangeStatusIsSet() const; + void unsetrangeStatus(); + void setRangeStatus(const std::string& value); + + /// + /// 回源跟随状态(off代表关闭 on代表开启)。 + /// + + std::string getFollowStatus() const; + bool followStatusIsSet() const; + void unsetfollowStatus(); + void setFollowStatus(const std::string& value); + + /// + /// 是否暂停源站回源(off代表关闭 on代表开启)。 + /// + + std::string getOriginStatus() const; + bool originStatusIsSet() const; + void unsetoriginStatus(); + void setOriginStatus(const std::string& value); + + /// + /// 域名禁用原因。 1:该域名涉嫌违规内容(涉黄/涉赌/涉毒/涉政)已被禁用; 2:该域名因备案失效已被禁用; 3:该域名遭受攻击,已被禁用; 150:该域名涉嫌违规内容涉黄已被禁用; 151:该域名涉嫌违规内容涉政已被禁用; 152:该域名涉嫌违规内容涉暴已被禁用; 153:该域名涉嫌违规内容涉赌已被禁用。 + /// + + std::string getBannedReason() const; + bool bannedReasonIsSet() const; + void unsetbannedReason(); + void setBannedReason(const std::string& value); + + /// + /// 域名锁定原因(Changing the config, please wait)。 + /// + + std::string getLockedReason() const; + bool lockedReasonIsSet() const; + void unsetlockedReason(); + void setLockedReason(const std::string& value); + + /// + /// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + protected: std::string id_; @@ -156,24 +238,42 @@ class HUAWEICLOUD_CDN_V2_EXPORT DomainsWithPort bool domainNameIsSet_; std::string businessType_; bool businessTypeIsSet_; + std::string userDomainId_; + bool userDomainIdIsSet_; std::string domainStatus_; bool domainStatusIsSet_; std::string cname_; bool cnameIsSet_; - std::vector sources_; + std::vector sources_; bool sourcesIsSet_; + DomainOriginHost domainOriginHost_; + bool domainOriginHostIsSet_; int32_t httpsStatus_; bool httpsStatusIsSet_; int64_t createTime_; bool createTimeIsSet_; - int64_t updateTime_; - bool updateTimeIsSet_; + int64_t modifyTime_; + bool modifyTimeIsSet_; int32_t disabled_; bool disabledIsSet_; int32_t locked_; bool lockedIsSet_; + int32_t autoRefreshPreheat_; + bool autoRefreshPreheatIsSet_; std::string serviceArea_; bool serviceAreaIsSet_; + std::string rangeStatus_; + bool rangeStatusIsSet_; + std::string followStatus_; + bool followStatusIsSet_; + std::string originStatus_; + bool originStatusIsSet_; + std::string bannedReason_; + bool bannedReasonIsSet_; + std::string lockedReason_; + bool lockedReasonIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; }; diff --git a/cdn/include/huaweicloud/cdn/v2/model/EnableDomainRequest.h b/cdn/include/huaweicloud/cdn/v2/model/EnableDomainRequest.h new file mode 100644 index 000000000..625dbdfc5 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/EnableDomainRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_EnableDomainRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_EnableDomainRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT EnableDomainRequest + : public ModelBase +{ +public: + EnableDomainRequest(); + virtual ~EnableDomainRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// EnableDomainRequest members + + /// + /// 加速域名ID。 + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string domainId_; + bool domainIdIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + EnableDomainRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_EnableDomainRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/EnableDomainResponse.h b/cdn/include/huaweicloud/cdn/v2/model/EnableDomainResponse.h new file mode 100644 index 000000000..12c7c3ba9 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/EnableDomainResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_EnableDomainResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_EnableDomainResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT EnableDomainResponse + : public ModelBase, public HttpResponse +{ +public: + EnableDomainResponse(); + virtual ~EnableDomainResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// EnableDomainResponse members + + /// + /// + /// + + DomainsWithPort getDomain() const; + bool domainIsSet() const; + void unsetdomain(); + void setDomain(const DomainsWithPort& value); + + +protected: + DomainsWithPort domain_; + bool domainIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_EnableDomainResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/FlexibleOrigins.h b/cdn/include/huaweicloud/cdn/v2/model/FlexibleOrigins.h index 55f57f8fa..4a817fc7f 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/FlexibleOrigins.h +++ b/cdn/include/huaweicloud/cdn/v2/model/FlexibleOrigins.h @@ -59,7 +59,7 @@ class HUAWEICLOUD_CDN_V2_EXPORT FlexibleOrigins void setMatchPattern(const std::string& value); /// - /// 优先级取值范围为1~100,数值越大优先级越高。 + /// 优先级取值范围为1-100,数值越大优先级越高。 /// int32_t getPriority() const; diff --git a/cdn/include/huaweicloud/cdn/v2/model/ForceRedirect.h b/cdn/include/huaweicloud/cdn/v2/model/ForceRedirect.h new file mode 100644 index 000000000..d82e6309d --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ForceRedirect.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ForceRedirect_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ForceRedirect_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 强制跳转。 +/// +class HUAWEICLOUD_CDN_V2_EXPORT ForceRedirect + : public ModelBase +{ +public: + ForceRedirect(); + virtual ~ForceRedirect(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ForceRedirect members + + /// + /// 强制跳转开关。1打开。0关闭。 + /// + + int32_t getSwitch() const; + bool switchIsSet() const; + void unsetswitch(); + void setSwitch(int32_t value); + + /// + /// 强制跳转类型。http:强制跳转HTTP。https:强制跳转HTTPS。 + /// + + std::string getRedirectType() const; + bool redirectTypeIsSet() const; + void unsetredirectType(); + void setRedirectType(const std::string& value); + + +protected: + int32_t switch_; + bool switchIsSet_; + std::string redirectType_; + bool redirectTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ForceRedirect_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/Hsts.h b/cdn/include/huaweicloud/cdn/v2/model/Hsts.h index 9c51567fd..5b4dad74d 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/Hsts.h +++ b/cdn/include/huaweicloud/cdn/v2/model/Hsts.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CDN_V2_EXPORT Hsts void setStatus(const std::string& value); /// - /// 过期时间,即:响应头“Strict-Transport-Security”在客户端的缓存时间。单位:秒,取值范围:0~63072000。 > status参数为on时,必传。 + /// 过期时间,即:响应头“Strict-Transport-Security”在客户端的缓存时间。单位:秒,取值范围:0-63072000。 > status参数为on时,必传。 /// int32_t getMaxAge() const; diff --git a/cdn/include/huaweicloud/cdn/v2/model/HttpResponseHeader.h b/cdn/include/huaweicloud/cdn/v2/model/HttpResponseHeader.h index e1b80518e..c7a83673f 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/HttpResponseHeader.h +++ b/cdn/include/huaweicloud/cdn/v2/model/HttpResponseHeader.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CDN_V2_EXPORT HttpResponseHeader /// HttpResponseHeader members /// - /// 设置HTTP响应头参数。取值:\"Content-Disposition\", \"Content-Language\", \"Access-Control-Allow-Origin\",\"Access-Control-Allow-Methods\", \"Access-Control-Max-Age\", \"Access-Control-Expose-Headers\"或自定义头部。格式要求:长度1~100,以字母开头,可以使用字母、数字和短横杠。 + /// 设置HTTP响应头参数。取值:\"Content-Disposition\", \"Content-Language\", \"Access-Control-Allow-Origin\",\"Access-Control-Allow-Methods\", \"Access-Control-Max-Age\", \"Access-Control-Expose-Headers\"或自定义头部。格式要求:长度1-100,以字母开头,可以使用字母、数字和短横杠。 /// std::string getName() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CDN_V2_EXPORT HttpResponseHeader void setName(const std::string& value); /// - /// 设置HTTP响应头参数的值。自定义HTTP响应头参数长度范围1~256,支持字母、数字和特定字符(.-_*#!&+|^~'\"/:;,=@?<>)。 + /// 设置HTTP响应头参数的值。自定义HTTP响应头参数长度范围1-256,支持字母、数字和特定字符(.-_*#!&+|^~'\"/:;,=@?<>)。 /// std::string getValue() const; diff --git a/cdn/include/huaweicloud/cdn/v2/model/HttpsDetail.h b/cdn/include/huaweicloud/cdn/v2/model/HttpsDetail.h new file mode 100644 index 000000000..2d0945f7b --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/HttpsDetail.h @@ -0,0 +1,175 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_HttpsDetail_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_HttpsDetail_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CDN_V2_EXPORT HttpsDetail + : public ModelBase +{ +public: + HttpsDetail(); + virtual ~HttpsDetail(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// HttpsDetail members + + /// + /// 域名id。 + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 绑定该证书的域名。 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// 证书名字。 + /// + + std::string getCertName() const; + bool certNameIsSet() const; + void unsetcertName(); + void setCertName(const std::string& value); + + /// + /// 证书内容。 + /// + + std::string getCertificate() const; + bool certificateIsSet() const; + void unsetcertificate(); + void setCertificate(const std::string& value); + + /// + /// 私钥内容。 + /// + + std::string getPrivateKey() const; + bool privateKeyIsSet() const; + void unsetprivateKey(); + void setPrivateKey(const std::string& value); + + /// + /// 0:自有证书 1:云托管证书。 + /// + + int32_t getCertificateType() const; + bool certificateTypeIsSet() const; + void unsetcertificateType(); + void setCertificateType(int32_t value); + + /// + /// 证书过期时间。 + /// + + int64_t getExpirationTime() const; + bool expirationTimeIsSet() const; + void unsetexpirationTime(); + void setExpirationTime(int64_t value); + + /// + /// HTTPS证书是否启用,取值0:不启用;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源。 + /// + + int32_t getHttpsStatus() const; + bool httpsStatusIsSet() const; + void unsethttpsStatus(); + void setHttpsStatus(int32_t value); + + /// + /// 客户端请求是否强制重定向。1是,0否。(如果为2,表示强制跳转HTTP) + /// + + int32_t getForceRedirectHttps() const; + bool forceRedirectHttpsIsSet() const; + void unsetforceRedirectHttps(); + void setForceRedirectHttps(int32_t value); + + /// + /// + /// + + ForceRedirect getForceRedirectConfig() const; + bool forceRedirectConfigIsSet() const; + void unsetforceRedirectConfig(); + void setForceRedirectConfig(const ForceRedirect& value); + + /// + /// 是否使用HTTP2.0。(1是,0否。) + /// + + int32_t getHttp2() const; + bool http2IsSet() const; + void unsethttp2(); + void setHttp2(int32_t value); + + +protected: + std::string domainId_; + bool domainIdIsSet_; + std::string domainName_; + bool domainNameIsSet_; + std::string certName_; + bool certNameIsSet_; + std::string certificate_; + bool certificateIsSet_; + std::string privateKey_; + bool privateKeyIsSet_; + int32_t certificateType_; + bool certificateTypeIsSet_; + int64_t expirationTime_; + bool expirationTimeIsSet_; + int32_t httpsStatus_; + bool httpsStatusIsSet_; + int32_t forceRedirectHttps_; + bool forceRedirectHttpsIsSet_; + ForceRedirect forceRedirectConfig_; + bool forceRedirectConfigIsSet_; + int32_t http2_; + bool http2IsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_HttpsDetail_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/OriginRequestHeader.h b/cdn/include/huaweicloud/cdn/v2/model/OriginRequestHeader.h index 35224234b..977f58824 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/OriginRequestHeader.h +++ b/cdn/include/huaweicloud/cdn/v2/model/OriginRequestHeader.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CDN_V2_EXPORT OriginRequestHeader void setName(const std::string& value); /// - /// 设置回源请求头参数的值。当为删除动作时,可不填。格式要求:长度1~512。不支持中文,不支持变量配置,如:$client_ip,$remote_port等。 + /// 设置回源请求头参数的值。当为删除动作时,可不填。格式要求:长度1-512。不支持中文,不支持变量配置,如:$client_ip,$remote_port等。 /// std::string getValue() const; diff --git a/cdn/include/huaweicloud/cdn/v2/model/OriginRequestUrlRewrite.h b/cdn/include/huaweicloud/cdn/v2/model/OriginRequestUrlRewrite.h index 53b12ec7b..1159b35d4 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/OriginRequestUrlRewrite.h +++ b/cdn/include/huaweicloud/cdn/v2/model/OriginRequestUrlRewrite.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CDN_V2_EXPORT OriginRequestUrlRewrite /// OriginRequestUrlRewrite members /// - /// 回源URL改写规则的优先级。 优先级设置具有唯一性,不支持多条回源URL改写规则设置同一优先级,且优先级不能输入为空。 多条规则下,不同规则中的相同资源内容,CDN按照优先级高的规则执行URL改写。 取值为1~100之间的整数,数值越大优先级越高。 + /// 回源URL改写规则的优先级。 优先级设置具有唯一性,不支持多条回源URL改写规则设置同一优先级,且优先级不能输入为空。 多条规则下,不同规则中的相同资源内容,CDN按照优先级高的规则执行URL改写。 取值为1-100之间的整数,数值越大优先级越高。 /// int32_t getPriority() const; diff --git a/cdn/include/huaweicloud/cdn/v2/model/RemoteAuthRuleVo.h b/cdn/include/huaweicloud/cdn/v2/model/RemoteAuthRuleVo.h index 0843b4492..d46bc252c 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/RemoteAuthRuleVo.h +++ b/cdn/include/huaweicloud/cdn/v2/model/RemoteAuthRuleVo.h @@ -149,7 +149,7 @@ class HUAWEICLOUD_CDN_V2_EXPORT RemoteAuthRuleVo void setResponseStatus(const std::string& value); /// - /// 设置鉴权超时时间,即从CDN转发鉴权请求开始,到CDN节点收到远程鉴权服务器返回的结果的时间。单位为毫秒,值为0或50~3000。 + /// 设置鉴权超时时间,即从CDN转发鉴权请求开始,到CDN节点收到远程鉴权服务器返回的结果的时间。单位为毫秒,值为0或50-3000。 /// int32_t getTimeout() const; diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoRequest.h b/cdn/include/huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoRequest.h new file mode 100644 index 000000000..9a2e2e00b --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoRequest.h @@ -0,0 +1,115 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowCertificatesHttpsInfoRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowCertificatesHttpsInfoRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowCertificatesHttpsInfoRequest + : public ModelBase +{ +public: + ShowCertificatesHttpsInfoRequest(); + virtual ~ShowCertificatesHttpsInfoRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowCertificatesHttpsInfoRequest members + + /// + /// 每页的数量,取值范围1-10000,不设值时默认值为30。 + /// + + int32_t getPageSize() const; + bool pageSizeIsSet() const; + void unsetpageSize(); + void setPageSize(int32_t value); + + /// + /// 查询的页码。取值范围1-65535,不设值时默认值为1。 + /// + + int32_t getPageNumber() const; + bool pageNumberIsSet() const; + void unsetpageNumber(); + void setPageNumber(int32_t value); + + /// + /// 加速域名。 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// 域名所属用户的domain_id。 + /// + + std::string getUserDomainId() const; + bool userDomainIdIsSet() const; + void unsetuserDomainId(); + void setUserDomainId(const std::string& value); + + /// + /// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + int32_t pageSize_; + bool pageSizeIsSet_; + int32_t pageNumber_; + bool pageNumberIsSet_; + std::string domainName_; + bool domainNameIsSet_; + std::string userDomainId_; + bool userDomainIdIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowCertificatesHttpsInfoRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowCertificatesHttpsInfoRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoResponse.h b/cdn/include/huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoResponse.h new file mode 100644 index 000000000..680d7f643 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowCertificatesHttpsInfoResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowCertificatesHttpsInfoResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowCertificatesHttpsInfoResponse + : public ModelBase, public HttpResponse +{ +public: + ShowCertificatesHttpsInfoResponse(); + virtual ~ShowCertificatesHttpsInfoResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowCertificatesHttpsInfoResponse members + + /// + /// 查询结果总数 + /// + + int32_t getTotal() const; + bool totalIsSet() const; + void unsettotal(); + void setTotal(int32_t value); + + /// + /// https配置。 + /// + + std::vector& getHttps(); + bool httpsIsSet() const; + void unsethttps(); + void setHttps(const std::vector& value); + + +protected: + int32_t total_; + bool totalIsSet_; + std::vector https_; + bool httpsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowCertificatesHttpsInfoResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowDomainDetailByNameResponse.h b/cdn/include/huaweicloud/cdn/v2/model/ShowDomainDetailByNameResponse.h index 3d80ab5aa..d29106637 100644 --- a/cdn/include/huaweicloud/cdn/v2/model/ShowDomainDetailByNameResponse.h +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowDomainDetailByNameResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CDN_V2_EXPORT ShowDomainDetailByNameResponse /// /// - DomainsWithPort getDomain() const; + DomainsDetail getDomain() const; bool domainIsSet() const; void unsetdomain(); - void setDomain(const DomainsWithPort& value); + void setDomain(const DomainsDetail& value); protected: - DomainsWithPort domain_; + DomainsDetail domain_; bool domainIsSet_; #ifdef RTTR_FLAG diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowIpInfoRequest.h b/cdn/include/huaweicloud/cdn/v2/model/ShowIpInfoRequest.h new file mode 100644 index 000000000..3baf4e780 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowIpInfoRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowIpInfoRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowIpInfoRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowIpInfoRequest + : public ModelBase +{ +public: + ShowIpInfoRequest(); + virtual ~ShowIpInfoRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowIpInfoRequest members + + /// + /// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// IP地址列表,以“,”分割,最多20个。 + /// + + std::string getIps() const; + bool ipsIsSet() const; + void unsetips(); + void setIps(const std::string& value); + + +protected: + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string ips_; + bool ipsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowIpInfoRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowIpInfoRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowIpInfoResponse.h b/cdn/include/huaweicloud/cdn/v2/model/ShowIpInfoResponse.h new file mode 100644 index 000000000..8d89b2088 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowIpInfoResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowIpInfoResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowIpInfoResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowIpInfoResponse + : public ModelBase, public HttpResponse +{ +public: + ShowIpInfoResponse(); + virtual ~ShowIpInfoResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowIpInfoResponse members + + /// + /// IP归属信息列表。 + /// + + std::vector& getCdnIps(); + bool cdnIpsIsSet() const; + void unsetcdnIps(); + void setCdnIps(const std::vector& value); + + +protected: + std::vector cdnIps_; + bool cdnIpsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowIpInfoResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowTagsRequest.h b/cdn/include/huaweicloud/cdn/v2/model/ShowTagsRequest.h new file mode 100644 index 000000000..6461487a0 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowTagsRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowTagsRequest + : public ModelBase +{ +public: + ShowTagsRequest(); + virtual ~ShowTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowTagsRequest members + + /// + /// 资源id。 > 域名ID + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowTagsRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowTagsResponse.h b/cdn/include/huaweicloud/cdn/v2/model/ShowTagsResponse.h new file mode 100644 index 000000000..6b4bd9942 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowTagsResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowTagsResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowTagsResponse(); + virtual ~ShowTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowTagsResponse members + + /// + /// 标签列表 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowTagsResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoRequest.h b/cdn/include/huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoRequest.h new file mode 100644 index 000000000..b849612b5 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowVerifyDomainOwnerInfoRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowVerifyDomainOwnerInfoRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowVerifyDomainOwnerInfoRequest + : public ModelBase +{ +public: + ShowVerifyDomainOwnerInfoRequest(); + virtual ~ShowVerifyDomainOwnerInfoRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowVerifyDomainOwnerInfoRequest members + + /// + /// 域名 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + +protected: + std::string domainName_; + bool domainNameIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowVerifyDomainOwnerInfoRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowVerifyDomainOwnerInfoRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoResponse.h b/cdn/include/huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoResponse.h new file mode 100644 index 000000000..3a81d3f2c --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoResponse.h @@ -0,0 +1,133 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowVerifyDomainOwnerInfoResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowVerifyDomainOwnerInfoResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT ShowVerifyDomainOwnerInfoResponse + : public ModelBase, public HttpResponse +{ +public: + ShowVerifyDomainOwnerInfoResponse(); + virtual ~ShowVerifyDomainOwnerInfoResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowVerifyDomainOwnerInfoResponse members + + /// + /// DNS探测类型 + /// + + std::string getDnsVerifyType() const; + bool dnsVerifyTypeIsSet() const; + void unsetdnsVerifyType(); + void setDnsVerifyType(const std::string& value); + + /// + /// DNS记录名称 + /// + + std::string getDnsVerifyName() const; + bool dnsVerifyNameIsSet() const; + void unsetdnsVerifyName(); + void setDnsVerifyName(const std::string& value); + + /// + /// 文件探测地址 + /// + + std::string getFileVerifyUrl() const; + bool fileVerifyUrlIsSet() const; + void unsetfileVerifyUrl(); + void setFileVerifyUrl(const std::string& value); + + /// + /// 域名 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// 探测域名 + /// + + std::string getVerifyDomainName() const; + bool verifyDomainNameIsSet() const; + void unsetverifyDomainName(); + void setVerifyDomainName(const std::string& value); + + /// + /// 探测文件名 + /// + + std::string getFileVerifyFilename() const; + bool fileVerifyFilenameIsSet() const; + void unsetfileVerifyFilename(); + void setFileVerifyFilename(const std::string& value); + + /// + /// 探测内容,DNS值或者文件内容,时间加uuid + /// + + std::string getVerifyContent() const; + bool verifyContentIsSet() const; + void unsetverifyContent(); + void setVerifyContent(const std::string& value); + + +protected: + std::string dnsVerifyType_; + bool dnsVerifyTypeIsSet_; + std::string dnsVerifyName_; + bool dnsVerifyNameIsSet_; + std::string fileVerifyUrl_; + bool fileVerifyUrlIsSet_; + std::string domainName_; + bool domainNameIsSet_; + std::string verifyDomainName_; + bool verifyDomainNameIsSet_; + std::string fileVerifyFilename_; + bool fileVerifyFilenameIsSet_; + std::string verifyContent_; + bool verifyContentIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_ShowVerifyDomainOwnerInfoResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/SourceWithPort.h b/cdn/include/huaweicloud/cdn/v2/model/SourceWithPort.h new file mode 100644 index 000000000..57d8e4818 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/SourceWithPort.h @@ -0,0 +1,130 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_SourceWithPort_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_SourceWithPort_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 域名信息。 +/// +class HUAWEICLOUD_CDN_V2_EXPORT SourceWithPort + : public ModelBase +{ +public: + SourceWithPort(); + virtual ~SourceWithPort(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SourceWithPort members + + /// + /// 加速域名id。 + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 源站IP(非内网IP)或者域名。 + /// + + std::string getIpOrDomain() const; + bool ipOrDomainIsSet() const; + void unsetipOrDomain(); + void setIpOrDomain(const std::string& value); + + /// + /// 源站类型,ipaddr:源站IP、 domain:源站域名、obs_bucket:OBS桶域名。 + /// + + std::string getOriginType() const; + bool originTypeIsSet() const; + void unsetoriginType(); + void setOriginType(const std::string& value); + + /// + /// 主备状态(1代表主源站;0代表备源站)。 + /// + + int32_t getActiveStandby() const; + bool activeStandbyIsSet() const; + void unsetactiveStandby(); + void setActiveStandby(int32_t value); + + /// + /// 是否开OBS托管(0表示关闭,1表示则为开启),源站类型为obs_bucket时传递。 + /// + + int32_t getEnableObsWebHosting() const; + bool enableObsWebHostingIsSet() const; + void unsetenableObsWebHosting(); + void setEnableObsWebHosting(int32_t value); + + /// + /// HTTP端口,默认80 + /// + + int32_t getHttpPort() const; + bool httpPortIsSet() const; + void unsethttpPort(); + void setHttpPort(int32_t value); + + /// + /// HTTPS端口,默认443 + /// + + int32_t getHttpsPort() const; + bool httpsPortIsSet() const; + void unsethttpsPort(); + void setHttpsPort(int32_t value); + + +protected: + std::string domainId_; + bool domainIdIsSet_; + std::string ipOrDomain_; + bool ipOrDomainIsSet_; + std::string originType_; + bool originTypeIsSet_; + int32_t activeStandby_; + bool activeStandbyIsSet_; + int32_t enableObsWebHosting_; + bool enableObsWebHostingIsSet_; + int32_t httpPort_; + bool httpPortIsSet_; + int32_t httpsPort_; + bool httpsPortIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_SourceWithPort_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/TagMap.h b/cdn/include/huaweicloud/cdn/v2/model/TagMap.h new file mode 100644 index 000000000..c1e621854 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/TagMap.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_TagMap_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_TagMap_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CDN_V2_EXPORT TagMap + : public ModelBase +{ +public: + TagMap(); + virtual ~TagMap(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// TagMap members + + /// + /// 标签键。长度1-128个字符, 可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : = + - @ + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值。长度0-255个字符, 可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : / = + - @ + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_TagMap_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequest.h b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequest.h new file mode 100644 index 000000000..e6710e4a4 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdateDomainMultiCertificatesRequest + : public ModelBase +{ +public: + UpdateDomainMultiCertificatesRequest(); + virtual ~UpdateDomainMultiCertificatesRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDomainMultiCertificatesRequest members + + /// + /// 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// + /// + + UpdateDomainMultiCertificatesRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateDomainMultiCertificatesRequestBody& value); + + +protected: + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + UpdateDomainMultiCertificatesRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateDomainMultiCertificatesRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBody.h b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBody.h new file mode 100644 index 000000000..1110b0ac0 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequestBody_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdateDomainMultiCertificatesRequestBody + : public ModelBase +{ +public: + UpdateDomainMultiCertificatesRequestBody(); + virtual ~UpdateDomainMultiCertificatesRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDomainMultiCertificatesRequestBody members + + /// + /// + /// + + UpdateDomainMultiCertificatesRequestBodyContent getHttps() const; + bool httpsIsSet() const; + void unsethttps(); + void setHttps(const UpdateDomainMultiCertificatesRequestBodyContent& value); + + +protected: + UpdateDomainMultiCertificatesRequestBodyContent https_; + bool httpsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequestBody_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.h b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.h new file mode 100644 index 000000000..6187f1263 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.h @@ -0,0 +1,164 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequestBodyContent_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequestBodyContent_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// https配置。 +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdateDomainMultiCertificatesRequestBodyContent + : public ModelBase +{ +public: + UpdateDomainMultiCertificatesRequestBodyContent(); + virtual ~UpdateDomainMultiCertificatesRequestBodyContent(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDomainMultiCertificatesRequestBodyContent members + + /// + /// 域名列表,逗号分割,上限50个域名 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// https开关(0:\"关闭\";1:\"设置证书\" https_switch为1时,证书参数不能为空) + /// + + int32_t getHttpsSwitch() const; + bool httpsSwitchIsSet() const; + void unsethttpsSwitch(); + void setHttpsSwitch(int32_t value); + + /// + /// 回源方式:1:\"回源跟随\";2:\"http\"(默认),3:\"https\" 为空值时默认设置为http + /// + + int32_t getAccessOriginWay() const; + bool accessOriginWayIsSet() const; + void unsetaccessOriginWay(); + void setAccessOriginWay(int32_t value); + + /// + /// 强制跳转HTTPS(0:不强制;1:强制) 为空值时默认设置为关闭。(此参数即将下线,建议使用force_redirect_config修改配置) + /// + + int32_t getForceRedirectHttps() const; + bool forceRedirectHttpsIsSet() const; + void unsetforceRedirectHttps(); + void setForceRedirectHttps(int32_t value); + + /// + /// + /// + + ForceRedirect getForceRedirectConfig() const; + bool forceRedirectConfigIsSet() const; + void unsetforceRedirectConfig(); + void setForceRedirectConfig(const ForceRedirect& value); + + /// + /// http2.0(0:关闭;1:开启) 为空值时默认设置为关闭 + /// + + int32_t getHttp2() const; + bool http2IsSet() const; + void unsethttp2(); + void setHttp2(int32_t value); + + /// + /// 证书名称(设置证书必填)(长度限制为3-64字符)。 + /// + + std::string getCertName() const; + bool certNameIsSet() const; + void unsetcertName(); + void setCertName(const std::string& value); + + /// + /// HTTPS协议使用的SSL证书内容,仅支持PEM编码格式。不启用证书则无需输入。初次配置证书时必传。 + /// + + std::string getCertificate() const; + bool certificateIsSet() const; + void unsetcertificate(); + void setCertificate(const std::string& value); + + /// + /// HTTPS协议使用的SSL证书私钥内容,仅支持PEM编码格式。不启用证书则无需输入。初次配置证书时必传。 + /// + + std::string getPrivateKey() const; + bool privateKeyIsSet() const; + void unsetprivateKey(); + void setPrivateKey(const std::string& value); + + /// + /// 证书类型(0为自有证书 ;1为托管证书,此时不必不传入证书内容和私钥,自动根据证书名称匹配;不传默认为自有证书) + /// + + int32_t getCertificateType() const; + bool certificateTypeIsSet() const; + void unsetcertificateType(); + void setCertificateType(int32_t value); + + +protected: + std::string domainName_; + bool domainNameIsSet_; + int32_t httpsSwitch_; + bool httpsSwitchIsSet_; + int32_t accessOriginWay_; + bool accessOriginWayIsSet_; + int32_t forceRedirectHttps_; + bool forceRedirectHttpsIsSet_; + ForceRedirect forceRedirectConfig_; + bool forceRedirectConfigIsSet_; + int32_t http2_; + bool http2IsSet_; + std::string certName_; + bool certNameIsSet_; + std::string certificate_; + bool certificateIsSet_; + std::string privateKey_; + bool privateKeyIsSet_; + int32_t certificateType_; + bool certificateTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesRequestBodyContent_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponse.h b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponse.h new file mode 100644 index 000000000..757c905a0 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdateDomainMultiCertificatesResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateDomainMultiCertificatesResponse(); + virtual ~UpdateDomainMultiCertificatesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDomainMultiCertificatesResponse members + + /// + /// + /// + + UpdateDomainMultiCertificatesResponseBodyContent getHttps() const; + bool httpsIsSet() const; + void unsethttps(); + void setHttps(const UpdateDomainMultiCertificatesResponseBodyContent& value); + + +protected: + UpdateDomainMultiCertificatesResponseBodyContent https_; + bool httpsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.h b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.h new file mode 100644 index 000000000..68c1c1b9e --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.h @@ -0,0 +1,164 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesResponseBodyContent_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesResponseBodyContent_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// https配置。 +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdateDomainMultiCertificatesResponseBodyContent + : public ModelBase +{ +public: + UpdateDomainMultiCertificatesResponseBodyContent(); + virtual ~UpdateDomainMultiCertificatesResponseBodyContent(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDomainMultiCertificatesResponseBodyContent members + + /// + /// 域名列表。 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// https开关(0:\"关闭\";1:\"设置证书\")。 + /// + + int32_t getHttpsSwitch() const; + bool httpsSwitchIsSet() const; + void unsethttpsSwitch(); + void setHttpsSwitch(int32_t value); + + /// + /// 回源方式:1:\"回源跟随\";2:\"HTTP\"(默认),3:https(自建)。 + /// + + int32_t getAccessOriginWay() const; + bool accessOriginWayIsSet() const; + void unsetaccessOriginWay(); + void setAccessOriginWay(int32_t value); + + /// + /// 强制跳转HTTPS(0:不强制;1:强制) 。 + /// + + int32_t getForceRedirectHttps() const; + bool forceRedirectHttpsIsSet() const; + void unsetforceRedirectHttps(); + void setForceRedirectHttps(int32_t value); + + /// + /// + /// + + ForceRedirect getForceRedirectConfig() const; + bool forceRedirectConfigIsSet() const; + void unsetforceRedirectConfig(); + void setForceRedirectConfig(const ForceRedirect& value); + + /// + /// http2.0(0:关闭;1:开启) + /// + + int32_t getHttp2() const; + bool http2IsSet() const; + void unsethttp2(); + void setHttp2(int32_t value); + + /// + /// 证书名称。 + /// + + std::string getCertName() const; + bool certNameIsSet() const; + void unsetcertName(); + void setCertName(const std::string& value); + + /// + /// 证书内容。 + /// + + std::string getCertificate() const; + bool certificateIsSet() const; + void unsetcertificate(); + void setCertificate(const std::string& value); + + /// + /// 证书类型(0为自有证书 , 1为托管证书)。 + /// + + int32_t getCertificateType() const; + bool certificateTypeIsSet() const; + void unsetcertificateType(); + void setCertificateType(int32_t value); + + /// + /// 证书过期时间。 + /// + + int64_t getExpirationTime() const; + bool expirationTimeIsSet() const; + void unsetexpirationTime(); + void setExpirationTime(int64_t value); + + +protected: + std::string domainName_; + bool domainNameIsSet_; + int32_t httpsSwitch_; + bool httpsSwitchIsSet_; + int32_t accessOriginWay_; + bool accessOriginWayIsSet_; + int32_t forceRedirectHttps_; + bool forceRedirectHttpsIsSet_; + ForceRedirect forceRedirectConfig_; + bool forceRedirectConfigIsSet_; + int32_t http2_; + bool http2IsSet_; + std::string certName_; + bool certNameIsSet_; + std::string certificate_; + bool certificateIsSet_; + int32_t certificateType_; + bool certificateTypeIsSet_; + int64_t expirationTime_; + bool expirationTimeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdateDomainMultiCertificatesResponseBodyContent_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessBody.h b/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessBody.h new file mode 100644 index 000000000..9febcae09 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessBody.h @@ -0,0 +1,63 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessBody_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessBody_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 修改私有桶开启关闭状态 +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdatePrivateBucketAccessBody + : public ModelBase +{ +public: + UpdatePrivateBucketAccessBody(); + virtual ~UpdatePrivateBucketAccessBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdatePrivateBucketAccessBody members + + /// + /// 桶开启关闭状态(true:开启;false:关闭) + /// + + bool isStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(bool value); + + +protected: + bool status_; + bool statusIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessBody_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessRequest.h b/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessRequest.h new file mode 100644 index 000000000..f1b318f9c --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdatePrivateBucketAccessRequest + : public ModelBase +{ +public: + UpdatePrivateBucketAccessRequest(); + virtual ~UpdatePrivateBucketAccessRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdatePrivateBucketAccessRequest members + + /// + /// 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 加速域名id。 + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// + /// + + UpdatePrivateBucketAccessBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdatePrivateBucketAccessBody& value); + + +protected: + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string domainId_; + bool domainIdIsSet_; + UpdatePrivateBucketAccessBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdatePrivateBucketAccessRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessResponse.h b/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessResponse.h new file mode 100644 index 000000000..b7cc190ba --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessResponse.h @@ -0,0 +1,66 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT UpdatePrivateBucketAccessResponse + : public ModelBase, public HttpResponse +{ +public: + UpdatePrivateBucketAccessResponse(); + virtual ~UpdatePrivateBucketAccessResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdatePrivateBucketAccessResponse members + + /// + /// 桶开启关闭状态(true:开启;false:关闭) + /// + + bool isStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(bool value); + + +protected: + bool status_; + bool statusIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_UpdatePrivateBucketAccessResponse_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerRequest.h b/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerRequest.h new file mode 100644 index 000000000..b87c71071 --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerRequest_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT VerifyDomainOwnerRequest + : public ModelBase +{ +public: + VerifyDomainOwnerRequest(); + virtual ~VerifyDomainOwnerRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// VerifyDomainOwnerRequest members + + /// + /// 域名 + /// + + std::string getDomainName() const; + bool domainNameIsSet() const; + void unsetdomainName(); + void setDomainName(const std::string& value); + + /// + /// + /// + + VerifyDomainOwnerRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const VerifyDomainOwnerRequestBody& value); + + +protected: + std::string domainName_; + bool domainNameIsSet_; + VerifyDomainOwnerRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + VerifyDomainOwnerRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerRequest_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerRequestBody.h b/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerRequestBody.h new file mode 100644 index 000000000..e525cfdae --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerRequestBody_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 域名归属校验请求体 +/// +class HUAWEICLOUD_CDN_V2_EXPORT VerifyDomainOwnerRequestBody + : public ModelBase +{ +public: + VerifyDomainOwnerRequestBody(); + virtual ~VerifyDomainOwnerRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// VerifyDomainOwnerRequestBody members + + /// + /// 校验类型: - dns:DNS解析校验; - file:文件校验; - all:dns、file均校验,默认为all。 + /// + + std::string getVerifyType() const; + bool verifyTypeIsSet() const; + void unsetverifyType(); + void setVerifyType(const std::string& value); + + +protected: + std::string verifyType_; + bool verifyTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerRequestBody_H_ diff --git a/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerResponse.h b/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerResponse.h new file mode 100644 index 000000000..e1d58c23a --- /dev/null +++ b/cdn/include/huaweicloud/cdn/v2/model/VerifyDomainOwnerResponse.h @@ -0,0 +1,66 @@ + +#ifndef HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerResponse_H_ +#define HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CDN_V2_EXPORT VerifyDomainOwnerResponse + : public ModelBase, public HttpResponse +{ +public: + VerifyDomainOwnerResponse(); + virtual ~VerifyDomainOwnerResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// VerifyDomainOwnerResponse members + + /// + /// 验证是否通过,true:通过,false:不通过 + /// + + bool isResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(bool value); + + +protected: + bool result_; + bool resultIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CDN_V2_MODEL_VerifyDomainOwnerResponse_H_ diff --git a/cdn/src/v2/CdnClient.cpp b/cdn/src/v2/CdnClient.cpp index 9ff8fea5b..9582379e1 100644 --- a/cdn/src/v2/CdnClient.cpp +++ b/cdn/src/v2/CdnClient.cpp @@ -73,6 +73,88 @@ std::shared_ptr CdnClient::batchCopyDomain(BatchCopyDom return localVarResult; } +std::shared_ptr CdnClient::batchDeleteTags(BatchDeleteTagsRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/configuration/tags/batch-delete"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForBatchDeleteTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr CdnClient::createDomain(CreateDomainRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/domains"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForCreateDomain()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} std::shared_ptr CdnClient::createPreheatingTasks(CreatePreheatingTasksRequest &request) { std::string localVarPath = "/v1.0/cdn/content/preheating-tasks"; @@ -161,6 +243,113 @@ std::shared_ptr CdnClient::createRefreshTasks(Create return localVarResult; } +std::shared_ptr CdnClient::createTags(CreateTagsRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/configuration/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForCreateTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr CdnClient::deleteDomain(DeleteDomainRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/domains/{domain_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["domain_id"] = parameterToString(request.getDomainId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForDeleteDomain()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr CdnClient::disableDomain(DisableDomainRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/domains/{domain_id}/disable"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["domain_id"] = parameterToString(request.getDomainId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForDisableDomain()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr CdnClient::downloadRegionCarrierExcel(DownloadRegionCarrierExcelRequest &request) { std::string localVarPath = "/v1.0/cdn/statistics/region-carrier-excel"; @@ -273,6 +462,39 @@ std::shared_ptr CdnClient::downloadStatisticsEx return localVarResult; } +std::shared_ptr CdnClient::enableDomain(EnableDomainRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/domains/{domain_id}/enable"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["domain_id"] = parameterToString(request.getDomainId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForEnableDomain()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr CdnClient::listCdnDomainTopRefers(ListCdnDomainTopRefersRequest &request) { std::string localVarPath = "/v1.0/cdn/statistics/top-refers"; @@ -467,6 +689,50 @@ std::shared_ptr CdnClient::showBandwidthCalc(ShowBand return localVarResult; } +std::shared_ptr CdnClient::showCertificatesHttpsInfo(ShowCertificatesHttpsInfoRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/domains/https-certificate-info"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.pageSizeIsSet()) { + localVarQueryParams["page_size"] = parameterToString(request.getPageSize()); + } + if (request.pageNumberIsSet()) { + localVarQueryParams["page_number"] = parameterToString(request.getPageNumber()); + } + if (request.domainNameIsSet()) { + localVarQueryParams["domain_name"] = parameterToString(request.getDomainName()); + } + if (request.userDomainIdIsSet()) { + localVarQueryParams["user_domain_id"] = parameterToString(request.getUserDomainId()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForShowCertificatesHttpsInfo()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr CdnClient::showChargeModes(ShowChargeModesRequest &request) { std::string localVarPath = "/v1.0/cdn/charge/charge-modes"; @@ -799,6 +1065,41 @@ std::shared_ptr CdnClient::showHistoryTasks(ShowHistor return localVarResult; } +std::shared_ptr CdnClient::showIpInfo(ShowIpInfoRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/ip-info"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.ipsIsSet()) { + localVarQueryParams["ips"] = parameterToString(request.getIps()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForShowIpInfo()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr CdnClient::showLogs(ShowLogsRequest &request) { std::string localVarPath = "/v1.0/cdn/logs"; @@ -846,6 +1147,38 @@ std::shared_ptr CdnClient::showLogs(ShowLogsRequest &request) return localVarResult; } +std::shared_ptr CdnClient::showTags(ShowTagsRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/configuration/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.resourceIdIsSet()) { + localVarQueryParams["resource_id"] = parameterToString(request.getResourceId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForShowTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr CdnClient::showTopDomainNames(ShowTopDomainNamesRequest &request) { std::string localVarPath = "/v1/cdn/statistics/top-domain-names"; @@ -993,6 +1326,36 @@ std::shared_ptr CdnClient::showUrlTaskInfo(ShowUrlTaskI return localVarResult; } +std::shared_ptr CdnClient::showVerifyDomainOwnerInfo(ShowVerifyDomainOwnerInfoRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/configuration/domains/{domain_name}/domain-verifies"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["domain_name"] = parameterToString(request.getDomainName()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForShowVerifyDomainOwnerInfo()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr CdnClient::updateDomainFullConfig(UpdateDomainFullConfigRequest &request) { std::string localVarPath = "/v1.1/cdn/configuration/domains/{domain_name}/configs"; @@ -1038,6 +1401,137 @@ std::shared_ptr CdnClient::updateDomainFullConfi return localVarResult; } +std::shared_ptr CdnClient::updateDomainMultiCertificates(UpdateDomainMultiCertificatesRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/domains/config-https-info"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForUpdateDomainMultiCertificates()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr CdnClient::updatePrivateBucketAccess(UpdatePrivateBucketAccessRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/domains/{domain_id}/private-bucket-access"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["domain_id"] = parameterToString(request.getDomainId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForUpdatePrivateBucketAccess()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr CdnClient::verifyDomainOwner(VerifyDomainOwnerRequest &request) +{ + std::string localVarPath = "/v1.0/cdn/configuration/domains/{domain_name}/verify-owner"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["domain_name"] = parameterToString(request.getDomainName()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CdnMeta::genRequestDefForVerifyDomainOwner()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} #if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) std::string CdnClient::parameterToString(utility::string_t value) { diff --git a/cdn/src/v2/CdnMeta.cpp b/cdn/src/v2/CdnMeta.cpp index d31e437bf..8beadf295 100644 --- a/cdn/src/v2/CdnMeta.cpp +++ b/cdn/src/v2/CdnMeta.cpp @@ -17,6 +17,24 @@ HttpRequestDef CdnMeta::genRequestDefForBatchCopyDomain() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForBatchDeleteTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef CdnMeta::genRequestDefForCreateDomain() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef CdnMeta::genRequestDefForCreatePreheatingTasks() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") @@ -41,6 +59,31 @@ HttpRequestDef CdnMeta::genRequestDefForCreateRefreshTasks() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForCreateTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef CdnMeta::genRequestDefForDeleteDomain() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef CdnMeta::genRequestDefForDisableDomain() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef CdnMeta::genRequestDefForDownloadRegionCarrierExcel() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("StartTime") @@ -105,6 +148,14 @@ HttpRequestDef CdnMeta::genRequestDefForDownloadStatisticsExcel() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForEnableDomain() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef CdnMeta::genRequestDefForListCdnDomainTopRefers() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("StartTime") @@ -195,6 +246,26 @@ HttpRequestDef CdnMeta::genRequestDefForShowBandwidthCalc() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForShowCertificatesHttpsInfo() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("PageSize") + .withJsonTag("page_size") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageNumber") + .withJsonTag("page_number") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DomainName") + .withJsonTag("domain_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("UserDomainId") + .withJsonTag("user_domain_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef CdnMeta::genRequestDefForShowChargeModes() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("ProductType") @@ -356,6 +427,17 @@ HttpRequestDef CdnMeta::genRequestDefForShowHistoryTasks() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForShowIpInfo() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Ips") + .withJsonTag("ips") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef CdnMeta::genRequestDefForShowLogs() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("DomainName") @@ -379,6 +461,14 @@ HttpRequestDef CdnMeta::genRequestDefForShowLogs() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForShowTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("ResourceId") + .withJsonTag("resource_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef CdnMeta::genRequestDefForShowTopDomainNames() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("StartTime") @@ -459,6 +549,11 @@ HttpRequestDef CdnMeta::genRequestDefForShowUrlTaskInfo() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForShowVerifyDomainOwnerInfo() { + HttpRequestDef reqDefBuilder; + return reqDefBuilder; +} + HttpRequestDef CdnMeta::genRequestDefForUpdateDomainFullConfig() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") @@ -471,6 +566,39 @@ HttpRequestDef CdnMeta::genRequestDefForUpdateDomainFullConfig() { return reqDefBuilder; } +HttpRequestDef CdnMeta::genRequestDefForUpdateDomainMultiCertificates() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef CdnMeta::genRequestDefForUpdatePrivateBucketAccess() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef CdnMeta::genRequestDefForVerifyDomainOwner() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + } } diff --git a/cdn/src/v2/model/BatchDeleteTagsRequest.cpp b/cdn/src/v2/model/BatchDeleteTagsRequest.cpp new file mode 100644 index 000000000..a596cd933 --- /dev/null +++ b/cdn/src/v2/model/BatchDeleteTagsRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/BatchDeleteTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +BatchDeleteTagsRequest::BatchDeleteTagsRequest() +{ + bodyIsSet_ = false; +} + +BatchDeleteTagsRequest::~BatchDeleteTagsRequest() = default; + +void BatchDeleteTagsRequest::validate() +{ +} + +web::json::value BatchDeleteTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchDeleteTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + DeleteTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +DeleteTagsRequestBody BatchDeleteTagsRequest::getBody() const +{ + return body_; +} + +void BatchDeleteTagsRequest::setBody(const DeleteTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDeleteTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDeleteTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/BatchDeleteTagsResponse.cpp b/cdn/src/v2/model/BatchDeleteTagsResponse.cpp new file mode 100644 index 000000000..4498e4985 --- /dev/null +++ b/cdn/src/v2/model/BatchDeleteTagsResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/cdn/v2/model/BatchDeleteTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +BatchDeleteTagsResponse::BatchDeleteTagsResponse() +{ +} + +BatchDeleteTagsResponse::~BatchDeleteTagsResponse() = default; + +void BatchDeleteTagsResponse::validate() +{ +} + +web::json::value BatchDeleteTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool BatchDeleteTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CdnIps.cpp b/cdn/src/v2/model/CdnIps.cpp new file mode 100644 index 000000000..21d7e7484 --- /dev/null +++ b/cdn/src/v2/model/CdnIps.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/cdn/v2/model/CdnIps.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CdnIps::CdnIps() +{ + ip_ = ""; + ipIsSet_ = false; + belongs_ = false; + belongsIsSet_ = false; + region_ = ""; + regionIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + platform_ = ""; + platformIsSet_ = false; +} + +CdnIps::~CdnIps() = default; + +void CdnIps::validate() +{ +} + +web::json::value CdnIps::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(ipIsSet_) { + val[utility::conversions::to_string_t("ip")] = ModelBase::toJson(ip_); + } + if(belongsIsSet_) { + val[utility::conversions::to_string_t("belongs")] = ModelBase::toJson(belongs_); + } + if(regionIsSet_) { + val[utility::conversions::to_string_t("region")] = ModelBase::toJson(region_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(platformIsSet_) { + val[utility::conversions::to_string_t("platform")] = ModelBase::toJson(platform_); + } + + return val; +} +bool CdnIps::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("ip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("belongs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("belongs")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBelongs(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("platform"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("platform")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPlatform(refVal); + } + } + return ok; +} + + +std::string CdnIps::getIp() const +{ + return ip_; +} + +void CdnIps::setIp(const std::string& value) +{ + ip_ = value; + ipIsSet_ = true; +} + +bool CdnIps::ipIsSet() const +{ + return ipIsSet_; +} + +void CdnIps::unsetip() +{ + ipIsSet_ = false; +} + +bool CdnIps::isBelongs() const +{ + return belongs_; +} + +void CdnIps::setBelongs(bool value) +{ + belongs_ = value; + belongsIsSet_ = true; +} + +bool CdnIps::belongsIsSet() const +{ + return belongsIsSet_; +} + +void CdnIps::unsetbelongs() +{ + belongsIsSet_ = false; +} + +std::string CdnIps::getRegion() const +{ + return region_; +} + +void CdnIps::setRegion(const std::string& value) +{ + region_ = value; + regionIsSet_ = true; +} + +bool CdnIps::regionIsSet() const +{ + return regionIsSet_; +} + +void CdnIps::unsetregion() +{ + regionIsSet_ = false; +} + +std::string CdnIps::getIsp() const +{ + return isp_; +} + +void CdnIps::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool CdnIps::ispIsSet() const +{ + return ispIsSet_; +} + +void CdnIps::unsetisp() +{ + ispIsSet_ = false; +} + +std::string CdnIps::getPlatform() const +{ + return platform_; +} + +void CdnIps::setPlatform(const std::string& value) +{ + platform_ = value; + platformIsSet_ = true; +} + +bool CdnIps::platformIsSet() const +{ + return platformIsSet_; +} + +void CdnIps::unsetplatform() +{ + platformIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CreateDomainRequest.cpp b/cdn/src/v2/model/CreateDomainRequest.cpp new file mode 100644 index 000000000..e6cd65488 --- /dev/null +++ b/cdn/src/v2/model/CreateDomainRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/CreateDomainRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CreateDomainRequest::CreateDomainRequest() +{ + bodyIsSet_ = false; +} + +CreateDomainRequest::~CreateDomainRequest() = default; + +void CreateDomainRequest::validate() +{ +} + +web::json::value CreateDomainRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateDomainRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateDomainRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +CreateDomainRequestBody CreateDomainRequest::getBody() const +{ + return body_; +} + +void CreateDomainRequest::setBody(const CreateDomainRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateDomainRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateDomainRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CreateDomainRequestBody.cpp b/cdn/src/v2/model/CreateDomainRequestBody.cpp new file mode 100644 index 000000000..82b8957d4 --- /dev/null +++ b/cdn/src/v2/model/CreateDomainRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/CreateDomainRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CreateDomainRequestBody::CreateDomainRequestBody() +{ + domainIsSet_ = false; +} + +CreateDomainRequestBody::~CreateDomainRequestBody() = default; + +void CreateDomainRequestBody::validate() +{ +} + +web::json::value CreateDomainRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIsSet_) { + val[utility::conversions::to_string_t("domain")] = ModelBase::toJson(domain_); + } + + return val; +} +bool CreateDomainRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain")); + if(!fieldValue.is_null()) + { + DomainBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomain(refVal); + } + } + return ok; +} + + +DomainBody CreateDomainRequestBody::getDomain() const +{ + return domain_; +} + +void CreateDomainRequestBody::setDomain(const DomainBody& value) +{ + domain_ = value; + domainIsSet_ = true; +} + +bool CreateDomainRequestBody::domainIsSet() const +{ + return domainIsSet_; +} + +void CreateDomainRequestBody::unsetdomain() +{ + domainIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CreateDomainResponse.cpp b/cdn/src/v2/model/CreateDomainResponse.cpp new file mode 100644 index 000000000..dc4337e53 --- /dev/null +++ b/cdn/src/v2/model/CreateDomainResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/CreateDomainResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CreateDomainResponse::CreateDomainResponse() +{ + domainIsSet_ = false; +} + +CreateDomainResponse::~CreateDomainResponse() = default; + +void CreateDomainResponse::validate() +{ +} + +web::json::value CreateDomainResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIsSet_) { + val[utility::conversions::to_string_t("domain")] = ModelBase::toJson(domain_); + } + + return val; +} +bool CreateDomainResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain")); + if(!fieldValue.is_null()) + { + CreateDomainResponseBodyContent refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomain(refVal); + } + } + return ok; +} + + +CreateDomainResponseBodyContent CreateDomainResponse::getDomain() const +{ + return domain_; +} + +void CreateDomainResponse::setDomain(const CreateDomainResponseBodyContent& value) +{ + domain_ = value; + domainIsSet_ = true; +} + +bool CreateDomainResponse::domainIsSet() const +{ + return domainIsSet_; +} + +void CreateDomainResponse::unsetdomain() +{ + domainIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CreateDomainResponseBodyContent.cpp b/cdn/src/v2/model/CreateDomainResponseBodyContent.cpp new file mode 100644 index 000000000..8b1eafdb5 --- /dev/null +++ b/cdn/src/v2/model/CreateDomainResponseBodyContent.cpp @@ -0,0 +1,672 @@ + + +#include "huaweicloud/cdn/v2/model/CreateDomainResponseBodyContent.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CreateDomainResponseBodyContent::CreateDomainResponseBodyContent() +{ + id_ = ""; + idIsSet_ = false; + domainName_ = ""; + domainNameIsSet_ = false; + businessType_ = ""; + businessTypeIsSet_ = false; + serviceArea_ = ""; + serviceAreaIsSet_ = false; + userDomainId_ = ""; + userDomainIdIsSet_ = false; + domainStatus_ = ""; + domainStatusIsSet_ = false; + cname_ = ""; + cnameIsSet_ = false; + sourcesIsSet_ = false; + domainOriginHostIsSet_ = false; + httpsStatus_ = 0; + httpsStatusIsSet_ = false; + createTime_ = 0L; + createTimeIsSet_ = false; + modifyTime_ = 0L; + modifyTimeIsSet_ = false; + disabled_ = 0; + disabledIsSet_ = false; + locked_ = 0; + lockedIsSet_ = false; + rangeStatus_ = ""; + rangeStatusIsSet_ = false; + followStatus_ = ""; + followStatusIsSet_ = false; + originStatus_ = ""; + originStatusIsSet_ = false; + autoRefreshPreheat_ = 0; + autoRefreshPreheatIsSet_ = false; +} + +CreateDomainResponseBodyContent::~CreateDomainResponseBodyContent() = default; + +void CreateDomainResponseBodyContent::validate() +{ +} + +web::json::value CreateDomainResponseBodyContent::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(businessTypeIsSet_) { + val[utility::conversions::to_string_t("business_type")] = ModelBase::toJson(businessType_); + } + if(serviceAreaIsSet_) { + val[utility::conversions::to_string_t("service_area")] = ModelBase::toJson(serviceArea_); + } + if(userDomainIdIsSet_) { + val[utility::conversions::to_string_t("user_domain_id")] = ModelBase::toJson(userDomainId_); + } + if(domainStatusIsSet_) { + val[utility::conversions::to_string_t("domain_status")] = ModelBase::toJson(domainStatus_); + } + if(cnameIsSet_) { + val[utility::conversions::to_string_t("cname")] = ModelBase::toJson(cname_); + } + if(sourcesIsSet_) { + val[utility::conversions::to_string_t("sources")] = ModelBase::toJson(sources_); + } + if(domainOriginHostIsSet_) { + val[utility::conversions::to_string_t("domain_origin_host")] = ModelBase::toJson(domainOriginHost_); + } + if(httpsStatusIsSet_) { + val[utility::conversions::to_string_t("https_status")] = ModelBase::toJson(httpsStatus_); + } + if(createTimeIsSet_) { + val[utility::conversions::to_string_t("create_time")] = ModelBase::toJson(createTime_); + } + if(modifyTimeIsSet_) { + val[utility::conversions::to_string_t("modify_time")] = ModelBase::toJson(modifyTime_); + } + if(disabledIsSet_) { + val[utility::conversions::to_string_t("disabled")] = ModelBase::toJson(disabled_); + } + if(lockedIsSet_) { + val[utility::conversions::to_string_t("locked")] = ModelBase::toJson(locked_); + } + if(rangeStatusIsSet_) { + val[utility::conversions::to_string_t("range_status")] = ModelBase::toJson(rangeStatus_); + } + if(followStatusIsSet_) { + val[utility::conversions::to_string_t("follow_status")] = ModelBase::toJson(followStatus_); + } + if(originStatusIsSet_) { + val[utility::conversions::to_string_t("origin_status")] = ModelBase::toJson(originStatus_); + } + if(autoRefreshPreheatIsSet_) { + val[utility::conversions::to_string_t("auto_refresh_preheat")] = ModelBase::toJson(autoRefreshPreheat_); + } + + return val; +} +bool CreateDomainResponseBodyContent::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("business_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("business_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBusinessType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_area"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_area")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceArea(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("user_domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cname"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cname")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCname(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sources"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sources")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSources(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_origin_host"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_origin_host")); + if(!fieldValue.is_null()) + { + DomainOriginHost refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainOriginHost(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_status")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpsStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("create_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("create_time")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreateTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("modify_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("modify_time")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setModifyTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("disabled"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disabled")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDisabled(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("locked"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("locked")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLocked(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("range_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("range_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRangeStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("follow_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("follow_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFollowStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("origin_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("origin_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOriginStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("auto_refresh_preheat"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("auto_refresh_preheat")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAutoRefreshPreheat(refVal); + } + } + return ok; +} + + +std::string CreateDomainResponseBodyContent::getId() const +{ + return id_; +} + +void CreateDomainResponseBodyContent::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::idIsSet() const +{ + return idIsSet_; +} + +void CreateDomainResponseBodyContent::unsetid() +{ + idIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getDomainName() const +{ + return domainName_; +} + +void CreateDomainResponseBodyContent::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void CreateDomainResponseBodyContent::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getBusinessType() const +{ + return businessType_; +} + +void CreateDomainResponseBodyContent::setBusinessType(const std::string& value) +{ + businessType_ = value; + businessTypeIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::businessTypeIsSet() const +{ + return businessTypeIsSet_; +} + +void CreateDomainResponseBodyContent::unsetbusinessType() +{ + businessTypeIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getServiceArea() const +{ + return serviceArea_; +} + +void CreateDomainResponseBodyContent::setServiceArea(const std::string& value) +{ + serviceArea_ = value; + serviceAreaIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::serviceAreaIsSet() const +{ + return serviceAreaIsSet_; +} + +void CreateDomainResponseBodyContent::unsetserviceArea() +{ + serviceAreaIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getUserDomainId() const +{ + return userDomainId_; +} + +void CreateDomainResponseBodyContent::setUserDomainId(const std::string& value) +{ + userDomainId_ = value; + userDomainIdIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::userDomainIdIsSet() const +{ + return userDomainIdIsSet_; +} + +void CreateDomainResponseBodyContent::unsetuserDomainId() +{ + userDomainIdIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getDomainStatus() const +{ + return domainStatus_; +} + +void CreateDomainResponseBodyContent::setDomainStatus(const std::string& value) +{ + domainStatus_ = value; + domainStatusIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::domainStatusIsSet() const +{ + return domainStatusIsSet_; +} + +void CreateDomainResponseBodyContent::unsetdomainStatus() +{ + domainStatusIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getCname() const +{ + return cname_; +} + +void CreateDomainResponseBodyContent::setCname(const std::string& value) +{ + cname_ = value; + cnameIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::cnameIsSet() const +{ + return cnameIsSet_; +} + +void CreateDomainResponseBodyContent::unsetcname() +{ + cnameIsSet_ = false; +} + +std::vector& CreateDomainResponseBodyContent::getSources() +{ + return sources_; +} + +void CreateDomainResponseBodyContent::setSources(const std::vector& value) +{ + sources_ = value; + sourcesIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::sourcesIsSet() const +{ + return sourcesIsSet_; +} + +void CreateDomainResponseBodyContent::unsetsources() +{ + sourcesIsSet_ = false; +} + +DomainOriginHost CreateDomainResponseBodyContent::getDomainOriginHost() const +{ + return domainOriginHost_; +} + +void CreateDomainResponseBodyContent::setDomainOriginHost(const DomainOriginHost& value) +{ + domainOriginHost_ = value; + domainOriginHostIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::domainOriginHostIsSet() const +{ + return domainOriginHostIsSet_; +} + +void CreateDomainResponseBodyContent::unsetdomainOriginHost() +{ + domainOriginHostIsSet_ = false; +} + +int32_t CreateDomainResponseBodyContent::getHttpsStatus() const +{ + return httpsStatus_; +} + +void CreateDomainResponseBodyContent::setHttpsStatus(int32_t value) +{ + httpsStatus_ = value; + httpsStatusIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::httpsStatusIsSet() const +{ + return httpsStatusIsSet_; +} + +void CreateDomainResponseBodyContent::unsethttpsStatus() +{ + httpsStatusIsSet_ = false; +} + +int64_t CreateDomainResponseBodyContent::getCreateTime() const +{ + return createTime_; +} + +void CreateDomainResponseBodyContent::setCreateTime(int64_t value) +{ + createTime_ = value; + createTimeIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::createTimeIsSet() const +{ + return createTimeIsSet_; +} + +void CreateDomainResponseBodyContent::unsetcreateTime() +{ + createTimeIsSet_ = false; +} + +int64_t CreateDomainResponseBodyContent::getModifyTime() const +{ + return modifyTime_; +} + +void CreateDomainResponseBodyContent::setModifyTime(int64_t value) +{ + modifyTime_ = value; + modifyTimeIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::modifyTimeIsSet() const +{ + return modifyTimeIsSet_; +} + +void CreateDomainResponseBodyContent::unsetmodifyTime() +{ + modifyTimeIsSet_ = false; +} + +int32_t CreateDomainResponseBodyContent::getDisabled() const +{ + return disabled_; +} + +void CreateDomainResponseBodyContent::setDisabled(int32_t value) +{ + disabled_ = value; + disabledIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::disabledIsSet() const +{ + return disabledIsSet_; +} + +void CreateDomainResponseBodyContent::unsetdisabled() +{ + disabledIsSet_ = false; +} + +int32_t CreateDomainResponseBodyContent::getLocked() const +{ + return locked_; +} + +void CreateDomainResponseBodyContent::setLocked(int32_t value) +{ + locked_ = value; + lockedIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::lockedIsSet() const +{ + return lockedIsSet_; +} + +void CreateDomainResponseBodyContent::unsetlocked() +{ + lockedIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getRangeStatus() const +{ + return rangeStatus_; +} + +void CreateDomainResponseBodyContent::setRangeStatus(const std::string& value) +{ + rangeStatus_ = value; + rangeStatusIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::rangeStatusIsSet() const +{ + return rangeStatusIsSet_; +} + +void CreateDomainResponseBodyContent::unsetrangeStatus() +{ + rangeStatusIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getFollowStatus() const +{ + return followStatus_; +} + +void CreateDomainResponseBodyContent::setFollowStatus(const std::string& value) +{ + followStatus_ = value; + followStatusIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::followStatusIsSet() const +{ + return followStatusIsSet_; +} + +void CreateDomainResponseBodyContent::unsetfollowStatus() +{ + followStatusIsSet_ = false; +} + +std::string CreateDomainResponseBodyContent::getOriginStatus() const +{ + return originStatus_; +} + +void CreateDomainResponseBodyContent::setOriginStatus(const std::string& value) +{ + originStatus_ = value; + originStatusIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::originStatusIsSet() const +{ + return originStatusIsSet_; +} + +void CreateDomainResponseBodyContent::unsetoriginStatus() +{ + originStatusIsSet_ = false; +} + +int32_t CreateDomainResponseBodyContent::getAutoRefreshPreheat() const +{ + return autoRefreshPreheat_; +} + +void CreateDomainResponseBodyContent::setAutoRefreshPreheat(int32_t value) +{ + autoRefreshPreheat_ = value; + autoRefreshPreheatIsSet_ = true; +} + +bool CreateDomainResponseBodyContent::autoRefreshPreheatIsSet() const +{ + return autoRefreshPreheatIsSet_; +} + +void CreateDomainResponseBodyContent::unsetautoRefreshPreheat() +{ + autoRefreshPreheatIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CreateTagsRequest.cpp b/cdn/src/v2/model/CreateTagsRequest.cpp new file mode 100644 index 000000000..d7d60fc96 --- /dev/null +++ b/cdn/src/v2/model/CreateTagsRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/CreateTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CreateTagsRequest::CreateTagsRequest() +{ + bodyIsSet_ = false; +} + +CreateTagsRequest::~CreateTagsRequest() = default; + +void CreateTagsRequest::validate() +{ +} + +web::json::value CreateTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +CreateTagsRequestBody CreateTagsRequest::getBody() const +{ + return body_; +} + +void CreateTagsRequest::setBody(const CreateTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CreateTagsRequestBody.cpp b/cdn/src/v2/model/CreateTagsRequestBody.cpp new file mode 100644 index 000000000..b5d42e3cb --- /dev/null +++ b/cdn/src/v2/model/CreateTagsRequestBody.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cdn/v2/model/CreateTagsRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CreateTagsRequestBody::CreateTagsRequestBody() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + tagsIsSet_ = false; +} + +CreateTagsRequestBody::~CreateTagsRequestBody() = default; + +void CreateTagsRequestBody::validate() +{ +} + +web::json::value CreateTagsRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool CreateTagsRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::string CreateTagsRequestBody::getResourceId() const +{ + return resourceId_; +} + +void CreateTagsRequestBody::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool CreateTagsRequestBody::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void CreateTagsRequestBody::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +std::vector& CreateTagsRequestBody::getTags() +{ + return tags_; +} + +void CreateTagsRequestBody::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateTagsRequestBody::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateTagsRequestBody::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/CreateTagsResponse.cpp b/cdn/src/v2/model/CreateTagsResponse.cpp new file mode 100644 index 000000000..04e1304e1 --- /dev/null +++ b/cdn/src/v2/model/CreateTagsResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/cdn/v2/model/CreateTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +CreateTagsResponse::CreateTagsResponse() +{ +} + +CreateTagsResponse::~CreateTagsResponse() = default; + +void CreateTagsResponse::validate() +{ +} + +web::json::value CreateTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool CreateTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DeleteDomainRequest.cpp b/cdn/src/v2/model/DeleteDomainRequest.cpp new file mode 100644 index 000000000..ed023798f --- /dev/null +++ b/cdn/src/v2/model/DeleteDomainRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cdn/v2/model/DeleteDomainRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +DeleteDomainRequest::DeleteDomainRequest() +{ + domainId_ = ""; + domainIdIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +DeleteDomainRequest::~DeleteDomainRequest() = default; + +void DeleteDomainRequest::validate() +{ +} + +web::json::value DeleteDomainRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool DeleteDomainRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string DeleteDomainRequest::getDomainId() const +{ + return domainId_; +} + +void DeleteDomainRequest::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool DeleteDomainRequest::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void DeleteDomainRequest::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string DeleteDomainRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void DeleteDomainRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool DeleteDomainRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void DeleteDomainRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DeleteDomainResponse.cpp b/cdn/src/v2/model/DeleteDomainResponse.cpp new file mode 100644 index 000000000..e2b20a3c7 --- /dev/null +++ b/cdn/src/v2/model/DeleteDomainResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/DeleteDomainResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +DeleteDomainResponse::DeleteDomainResponse() +{ + domainIsSet_ = false; +} + +DeleteDomainResponse::~DeleteDomainResponse() = default; + +void DeleteDomainResponse::validate() +{ +} + +web::json::value DeleteDomainResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIsSet_) { + val[utility::conversions::to_string_t("domain")] = ModelBase::toJson(domain_); + } + + return val; +} +bool DeleteDomainResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain")); + if(!fieldValue.is_null()) + { + DomainsWithPort refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomain(refVal); + } + } + return ok; +} + + +DomainsWithPort DeleteDomainResponse::getDomain() const +{ + return domain_; +} + +void DeleteDomainResponse::setDomain(const DomainsWithPort& value) +{ + domain_ = value; + domainIsSet_ = true; +} + +bool DeleteDomainResponse::domainIsSet() const +{ + return domainIsSet_; +} + +void DeleteDomainResponse::unsetdomain() +{ + domainIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DeleteTagsRequestBody.cpp b/cdn/src/v2/model/DeleteTagsRequestBody.cpp new file mode 100644 index 000000000..de8e116e6 --- /dev/null +++ b/cdn/src/v2/model/DeleteTagsRequestBody.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cdn/v2/model/DeleteTagsRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +DeleteTagsRequestBody::DeleteTagsRequestBody() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + tagsIsSet_ = false; +} + +DeleteTagsRequestBody::~DeleteTagsRequestBody() = default; + +void DeleteTagsRequestBody::validate() +{ +} + +web::json::value DeleteTagsRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool DeleteTagsRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::string DeleteTagsRequestBody::getResourceId() const +{ + return resourceId_; +} + +void DeleteTagsRequestBody::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool DeleteTagsRequestBody::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void DeleteTagsRequestBody::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +std::vector& DeleteTagsRequestBody::getTags() +{ + return tags_; +} + +void DeleteTagsRequestBody::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool DeleteTagsRequestBody::tagsIsSet() const +{ + return tagsIsSet_; +} + +void DeleteTagsRequestBody::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DisableDomainRequest.cpp b/cdn/src/v2/model/DisableDomainRequest.cpp new file mode 100644 index 000000000..6a98248f7 --- /dev/null +++ b/cdn/src/v2/model/DisableDomainRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cdn/v2/model/DisableDomainRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +DisableDomainRequest::DisableDomainRequest() +{ + domainId_ = ""; + domainIdIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +DisableDomainRequest::~DisableDomainRequest() = default; + +void DisableDomainRequest::validate() +{ +} + +web::json::value DisableDomainRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool DisableDomainRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string DisableDomainRequest::getDomainId() const +{ + return domainId_; +} + +void DisableDomainRequest::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool DisableDomainRequest::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void DisableDomainRequest::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string DisableDomainRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void DisableDomainRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool DisableDomainRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void DisableDomainRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DisableDomainResponse.cpp b/cdn/src/v2/model/DisableDomainResponse.cpp new file mode 100644 index 000000000..a80f3cea1 --- /dev/null +++ b/cdn/src/v2/model/DisableDomainResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/DisableDomainResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +DisableDomainResponse::DisableDomainResponse() +{ + domainIsSet_ = false; +} + +DisableDomainResponse::~DisableDomainResponse() = default; + +void DisableDomainResponse::validate() +{ +} + +web::json::value DisableDomainResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIsSet_) { + val[utility::conversions::to_string_t("domain")] = ModelBase::toJson(domain_); + } + + return val; +} +bool DisableDomainResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain")); + if(!fieldValue.is_null()) + { + DomainsWithPort refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomain(refVal); + } + } + return ok; +} + + +DomainsWithPort DisableDomainResponse::getDomain() const +{ + return domain_; +} + +void DisableDomainResponse::setDomain(const DomainsWithPort& value) +{ + domain_ = value; + domainIsSet_ = true; +} + +bool DisableDomainResponse::domainIsSet() const +{ + return domainIsSet_; +} + +void DisableDomainResponse::unsetdomain() +{ + domainIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DomainBody.cpp b/cdn/src/v2/model/DomainBody.cpp new file mode 100644 index 000000000..eaba5c0b1 --- /dev/null +++ b/cdn/src/v2/model/DomainBody.cpp @@ -0,0 +1,218 @@ + + +#include "huaweicloud/cdn/v2/model/DomainBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +DomainBody::DomainBody() +{ + domainName_ = ""; + domainNameIsSet_ = false; + businessType_ = ""; + businessTypeIsSet_ = false; + sourcesIsSet_ = false; + serviceArea_ = ""; + serviceAreaIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +DomainBody::~DomainBody() = default; + +void DomainBody::validate() +{ +} + +web::json::value DomainBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(businessTypeIsSet_) { + val[utility::conversions::to_string_t("business_type")] = ModelBase::toJson(businessType_); + } + if(sourcesIsSet_) { + val[utility::conversions::to_string_t("sources")] = ModelBase::toJson(sources_); + } + if(serviceAreaIsSet_) { + val[utility::conversions::to_string_t("service_area")] = ModelBase::toJson(serviceArea_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool DomainBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("business_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("business_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBusinessType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sources"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sources")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSources(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_area"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_area")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceArea(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string DomainBody::getDomainName() const +{ + return domainName_; +} + +void DomainBody::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool DomainBody::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void DomainBody::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +std::string DomainBody::getBusinessType() const +{ + return businessType_; +} + +void DomainBody::setBusinessType(const std::string& value) +{ + businessType_ = value; + businessTypeIsSet_ = true; +} + +bool DomainBody::businessTypeIsSet() const +{ + return businessTypeIsSet_; +} + +void DomainBody::unsetbusinessType() +{ + businessTypeIsSet_ = false; +} + +std::vector& DomainBody::getSources() +{ + return sources_; +} + +void DomainBody::setSources(const std::vector& value) +{ + sources_ = value; + sourcesIsSet_ = true; +} + +bool DomainBody::sourcesIsSet() const +{ + return sourcesIsSet_; +} + +void DomainBody::unsetsources() +{ + sourcesIsSet_ = false; +} + +std::string DomainBody::getServiceArea() const +{ + return serviceArea_; +} + +void DomainBody::setServiceArea(const std::string& value) +{ + serviceArea_ = value; + serviceAreaIsSet_ = true; +} + +bool DomainBody::serviceAreaIsSet() const +{ + return serviceAreaIsSet_; +} + +void DomainBody::unsetserviceArea() +{ + serviceAreaIsSet_ = false; +} + +std::string DomainBody::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void DomainBody::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool DomainBody::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void DomainBody::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DomainsDetail.cpp b/cdn/src/v2/model/DomainsDetail.cpp new file mode 100644 index 000000000..508dc71a2 --- /dev/null +++ b/cdn/src/v2/model/DomainsDetail.cpp @@ -0,0 +1,463 @@ + + +#include "huaweicloud/cdn/v2/model/DomainsDetail.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +DomainsDetail::DomainsDetail() +{ + id_ = ""; + idIsSet_ = false; + domainName_ = ""; + domainNameIsSet_ = false; + businessType_ = ""; + businessTypeIsSet_ = false; + domainStatus_ = ""; + domainStatusIsSet_ = false; + cname_ = ""; + cnameIsSet_ = false; + sourcesIsSet_ = false; + httpsStatus_ = 0; + httpsStatusIsSet_ = false; + createTime_ = 0L; + createTimeIsSet_ = false; + updateTime_ = 0L; + updateTimeIsSet_ = false; + disabled_ = 0; + disabledIsSet_ = false; + locked_ = 0; + lockedIsSet_ = false; + serviceArea_ = ""; + serviceAreaIsSet_ = false; +} + +DomainsDetail::~DomainsDetail() = default; + +void DomainsDetail::validate() +{ +} + +web::json::value DomainsDetail::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(businessTypeIsSet_) { + val[utility::conversions::to_string_t("business_type")] = ModelBase::toJson(businessType_); + } + if(domainStatusIsSet_) { + val[utility::conversions::to_string_t("domain_status")] = ModelBase::toJson(domainStatus_); + } + if(cnameIsSet_) { + val[utility::conversions::to_string_t("cname")] = ModelBase::toJson(cname_); + } + if(sourcesIsSet_) { + val[utility::conversions::to_string_t("sources")] = ModelBase::toJson(sources_); + } + if(httpsStatusIsSet_) { + val[utility::conversions::to_string_t("https_status")] = ModelBase::toJson(httpsStatus_); + } + if(createTimeIsSet_) { + val[utility::conversions::to_string_t("create_time")] = ModelBase::toJson(createTime_); + } + if(updateTimeIsSet_) { + val[utility::conversions::to_string_t("update_time")] = ModelBase::toJson(updateTime_); + } + if(disabledIsSet_) { + val[utility::conversions::to_string_t("disabled")] = ModelBase::toJson(disabled_); + } + if(lockedIsSet_) { + val[utility::conversions::to_string_t("locked")] = ModelBase::toJson(locked_); + } + if(serviceAreaIsSet_) { + val[utility::conversions::to_string_t("service_area")] = ModelBase::toJson(serviceArea_); + } + + return val; +} +bool DomainsDetail::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("business_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("business_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBusinessType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cname"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cname")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCname(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sources"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sources")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSources(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_status")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpsStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("create_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("create_time")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreateTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("update_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("update_time")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdateTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("disabled"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disabled")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDisabled(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("locked"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("locked")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLocked(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_area"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_area")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceArea(refVal); + } + } + return ok; +} + + +std::string DomainsDetail::getId() const +{ + return id_; +} + +void DomainsDetail::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool DomainsDetail::idIsSet() const +{ + return idIsSet_; +} + +void DomainsDetail::unsetid() +{ + idIsSet_ = false; +} + +std::string DomainsDetail::getDomainName() const +{ + return domainName_; +} + +void DomainsDetail::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool DomainsDetail::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void DomainsDetail::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +std::string DomainsDetail::getBusinessType() const +{ + return businessType_; +} + +void DomainsDetail::setBusinessType(const std::string& value) +{ + businessType_ = value; + businessTypeIsSet_ = true; +} + +bool DomainsDetail::businessTypeIsSet() const +{ + return businessTypeIsSet_; +} + +void DomainsDetail::unsetbusinessType() +{ + businessTypeIsSet_ = false; +} + +std::string DomainsDetail::getDomainStatus() const +{ + return domainStatus_; +} + +void DomainsDetail::setDomainStatus(const std::string& value) +{ + domainStatus_ = value; + domainStatusIsSet_ = true; +} + +bool DomainsDetail::domainStatusIsSet() const +{ + return domainStatusIsSet_; +} + +void DomainsDetail::unsetdomainStatus() +{ + domainStatusIsSet_ = false; +} + +std::string DomainsDetail::getCname() const +{ + return cname_; +} + +void DomainsDetail::setCname(const std::string& value) +{ + cname_ = value; + cnameIsSet_ = true; +} + +bool DomainsDetail::cnameIsSet() const +{ + return cnameIsSet_; +} + +void DomainsDetail::unsetcname() +{ + cnameIsSet_ = false; +} + +std::vector& DomainsDetail::getSources() +{ + return sources_; +} + +void DomainsDetail::setSources(const std::vector& value) +{ + sources_ = value; + sourcesIsSet_ = true; +} + +bool DomainsDetail::sourcesIsSet() const +{ + return sourcesIsSet_; +} + +void DomainsDetail::unsetsources() +{ + sourcesIsSet_ = false; +} + +int32_t DomainsDetail::getHttpsStatus() const +{ + return httpsStatus_; +} + +void DomainsDetail::setHttpsStatus(int32_t value) +{ + httpsStatus_ = value; + httpsStatusIsSet_ = true; +} + +bool DomainsDetail::httpsStatusIsSet() const +{ + return httpsStatusIsSet_; +} + +void DomainsDetail::unsethttpsStatus() +{ + httpsStatusIsSet_ = false; +} + +int64_t DomainsDetail::getCreateTime() const +{ + return createTime_; +} + +void DomainsDetail::setCreateTime(int64_t value) +{ + createTime_ = value; + createTimeIsSet_ = true; +} + +bool DomainsDetail::createTimeIsSet() const +{ + return createTimeIsSet_; +} + +void DomainsDetail::unsetcreateTime() +{ + createTimeIsSet_ = false; +} + +int64_t DomainsDetail::getUpdateTime() const +{ + return updateTime_; +} + +void DomainsDetail::setUpdateTime(int64_t value) +{ + updateTime_ = value; + updateTimeIsSet_ = true; +} + +bool DomainsDetail::updateTimeIsSet() const +{ + return updateTimeIsSet_; +} + +void DomainsDetail::unsetupdateTime() +{ + updateTimeIsSet_ = false; +} + +int32_t DomainsDetail::getDisabled() const +{ + return disabled_; +} + +void DomainsDetail::setDisabled(int32_t value) +{ + disabled_ = value; + disabledIsSet_ = true; +} + +bool DomainsDetail::disabledIsSet() const +{ + return disabledIsSet_; +} + +void DomainsDetail::unsetdisabled() +{ + disabledIsSet_ = false; +} + +int32_t DomainsDetail::getLocked() const +{ + return locked_; +} + +void DomainsDetail::setLocked(int32_t value) +{ + locked_ = value; + lockedIsSet_ = true; +} + +bool DomainsDetail::lockedIsSet() const +{ + return lockedIsSet_; +} + +void DomainsDetail::unsetlocked() +{ + lockedIsSet_ = false; +} + +std::string DomainsDetail::getServiceArea() const +{ + return serviceArea_; +} + +void DomainsDetail::setServiceArea(const std::string& value) +{ + serviceArea_ = value; + serviceAreaIsSet_ = true; +} + +bool DomainsDetail::serviceAreaIsSet() const +{ + return serviceAreaIsSet_; +} + +void DomainsDetail::unsetserviceArea() +{ + serviceAreaIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/DomainsWithPort.cpp b/cdn/src/v2/model/DomainsWithPort.cpp index 452100239..2c1da344b 100644 --- a/cdn/src/v2/model/DomainsWithPort.cpp +++ b/cdn/src/v2/model/DomainsWithPort.cpp @@ -18,23 +18,40 @@ DomainsWithPort::DomainsWithPort() domainNameIsSet_ = false; businessType_ = ""; businessTypeIsSet_ = false; + userDomainId_ = ""; + userDomainIdIsSet_ = false; domainStatus_ = ""; domainStatusIsSet_ = false; cname_ = ""; cnameIsSet_ = false; sourcesIsSet_ = false; + domainOriginHostIsSet_ = false; httpsStatus_ = 0; httpsStatusIsSet_ = false; createTime_ = 0L; createTimeIsSet_ = false; - updateTime_ = 0L; - updateTimeIsSet_ = false; + modifyTime_ = 0L; + modifyTimeIsSet_ = false; disabled_ = 0; disabledIsSet_ = false; locked_ = 0; lockedIsSet_ = false; + autoRefreshPreheat_ = 0; + autoRefreshPreheatIsSet_ = false; serviceArea_ = ""; serviceAreaIsSet_ = false; + rangeStatus_ = ""; + rangeStatusIsSet_ = false; + followStatus_ = ""; + followStatusIsSet_ = false; + originStatus_ = ""; + originStatusIsSet_ = false; + bannedReason_ = ""; + bannedReasonIsSet_ = false; + lockedReason_ = ""; + lockedReasonIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; } DomainsWithPort::~DomainsWithPort() = default; @@ -56,6 +73,9 @@ web::json::value DomainsWithPort::toJson() const if(businessTypeIsSet_) { val[utility::conversions::to_string_t("business_type")] = ModelBase::toJson(businessType_); } + if(userDomainIdIsSet_) { + val[utility::conversions::to_string_t("user_domain_id")] = ModelBase::toJson(userDomainId_); + } if(domainStatusIsSet_) { val[utility::conversions::to_string_t("domain_status")] = ModelBase::toJson(domainStatus_); } @@ -65,14 +85,17 @@ web::json::value DomainsWithPort::toJson() const if(sourcesIsSet_) { val[utility::conversions::to_string_t("sources")] = ModelBase::toJson(sources_); } + if(domainOriginHostIsSet_) { + val[utility::conversions::to_string_t("domain_origin_host")] = ModelBase::toJson(domainOriginHost_); + } if(httpsStatusIsSet_) { val[utility::conversions::to_string_t("https_status")] = ModelBase::toJson(httpsStatus_); } if(createTimeIsSet_) { val[utility::conversions::to_string_t("create_time")] = ModelBase::toJson(createTime_); } - if(updateTimeIsSet_) { - val[utility::conversions::to_string_t("update_time")] = ModelBase::toJson(updateTime_); + if(modifyTimeIsSet_) { + val[utility::conversions::to_string_t("modify_time")] = ModelBase::toJson(modifyTime_); } if(disabledIsSet_) { val[utility::conversions::to_string_t("disabled")] = ModelBase::toJson(disabled_); @@ -80,9 +103,30 @@ web::json::value DomainsWithPort::toJson() const if(lockedIsSet_) { val[utility::conversions::to_string_t("locked")] = ModelBase::toJson(locked_); } + if(autoRefreshPreheatIsSet_) { + val[utility::conversions::to_string_t("auto_refresh_preheat")] = ModelBase::toJson(autoRefreshPreheat_); + } if(serviceAreaIsSet_) { val[utility::conversions::to_string_t("service_area")] = ModelBase::toJson(serviceArea_); } + if(rangeStatusIsSet_) { + val[utility::conversions::to_string_t("range_status")] = ModelBase::toJson(rangeStatus_); + } + if(followStatusIsSet_) { + val[utility::conversions::to_string_t("follow_status")] = ModelBase::toJson(followStatus_); + } + if(originStatusIsSet_) { + val[utility::conversions::to_string_t("origin_status")] = ModelBase::toJson(originStatus_); + } + if(bannedReasonIsSet_) { + val[utility::conversions::to_string_t("banned_reason")] = ModelBase::toJson(bannedReason_); + } + if(lockedReasonIsSet_) { + val[utility::conversions::to_string_t("locked_reason")] = ModelBase::toJson(lockedReason_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } return val; } @@ -117,6 +161,15 @@ bool DomainsWithPort::fromJson(const web::json::value& val) setBusinessType(refVal); } } + if(val.has_field(utility::conversions::to_string_t("user_domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserDomainId(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("domain_status"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_status")); if(!fieldValue.is_null()) @@ -139,11 +192,20 @@ bool DomainsWithPort::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sources")); if(!fieldValue.is_null()) { - std::vector refVal; + std::vector refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setSources(refVal); } } + if(val.has_field(utility::conversions::to_string_t("domain_origin_host"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_origin_host")); + if(!fieldValue.is_null()) + { + DomainOriginHost refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainOriginHost(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("https_status"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_status")); if(!fieldValue.is_null()) @@ -162,13 +224,13 @@ bool DomainsWithPort::fromJson(const web::json::value& val) setCreateTime(refVal); } } - if(val.has_field(utility::conversions::to_string_t("update_time"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("update_time")); + if(val.has_field(utility::conversions::to_string_t("modify_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("modify_time")); if(!fieldValue.is_null()) { int64_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setUpdateTime(refVal); + setModifyTime(refVal); } } if(val.has_field(utility::conversions::to_string_t("disabled"))) { @@ -189,6 +251,15 @@ bool DomainsWithPort::fromJson(const web::json::value& val) setLocked(refVal); } } + if(val.has_field(utility::conversions::to_string_t("auto_refresh_preheat"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("auto_refresh_preheat")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAutoRefreshPreheat(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("service_area"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_area")); if(!fieldValue.is_null()) @@ -198,6 +269,60 @@ bool DomainsWithPort::fromJson(const web::json::value& val) setServiceArea(refVal); } } + if(val.has_field(utility::conversions::to_string_t("range_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("range_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRangeStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("follow_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("follow_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFollowStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("origin_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("origin_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOriginStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("banned_reason"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("banned_reason")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBannedReason(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("locked_reason"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("locked_reason")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLockedReason(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } return ok; } @@ -265,6 +390,27 @@ void DomainsWithPort::unsetbusinessType() businessTypeIsSet_ = false; } +std::string DomainsWithPort::getUserDomainId() const +{ + return userDomainId_; +} + +void DomainsWithPort::setUserDomainId(const std::string& value) +{ + userDomainId_ = value; + userDomainIdIsSet_ = true; +} + +bool DomainsWithPort::userDomainIdIsSet() const +{ + return userDomainIdIsSet_; +} + +void DomainsWithPort::unsetuserDomainId() +{ + userDomainIdIsSet_ = false; +} + std::string DomainsWithPort::getDomainStatus() const { return domainStatus_; @@ -307,12 +453,12 @@ void DomainsWithPort::unsetcname() cnameIsSet_ = false; } -std::vector& DomainsWithPort::getSources() +std::vector& DomainsWithPort::getSources() { return sources_; } -void DomainsWithPort::setSources(const std::vector& value) +void DomainsWithPort::setSources(const std::vector& value) { sources_ = value; sourcesIsSet_ = true; @@ -328,6 +474,27 @@ void DomainsWithPort::unsetsources() sourcesIsSet_ = false; } +DomainOriginHost DomainsWithPort::getDomainOriginHost() const +{ + return domainOriginHost_; +} + +void DomainsWithPort::setDomainOriginHost(const DomainOriginHost& value) +{ + domainOriginHost_ = value; + domainOriginHostIsSet_ = true; +} + +bool DomainsWithPort::domainOriginHostIsSet() const +{ + return domainOriginHostIsSet_; +} + +void DomainsWithPort::unsetdomainOriginHost() +{ + domainOriginHostIsSet_ = false; +} + int32_t DomainsWithPort::getHttpsStatus() const { return httpsStatus_; @@ -370,25 +537,25 @@ void DomainsWithPort::unsetcreateTime() createTimeIsSet_ = false; } -int64_t DomainsWithPort::getUpdateTime() const +int64_t DomainsWithPort::getModifyTime() const { - return updateTime_; + return modifyTime_; } -void DomainsWithPort::setUpdateTime(int64_t value) +void DomainsWithPort::setModifyTime(int64_t value) { - updateTime_ = value; - updateTimeIsSet_ = true; + modifyTime_ = value; + modifyTimeIsSet_ = true; } -bool DomainsWithPort::updateTimeIsSet() const +bool DomainsWithPort::modifyTimeIsSet() const { - return updateTimeIsSet_; + return modifyTimeIsSet_; } -void DomainsWithPort::unsetupdateTime() +void DomainsWithPort::unsetmodifyTime() { - updateTimeIsSet_ = false; + modifyTimeIsSet_ = false; } int32_t DomainsWithPort::getDisabled() const @@ -433,6 +600,27 @@ void DomainsWithPort::unsetlocked() lockedIsSet_ = false; } +int32_t DomainsWithPort::getAutoRefreshPreheat() const +{ + return autoRefreshPreheat_; +} + +void DomainsWithPort::setAutoRefreshPreheat(int32_t value) +{ + autoRefreshPreheat_ = value; + autoRefreshPreheatIsSet_ = true; +} + +bool DomainsWithPort::autoRefreshPreheatIsSet() const +{ + return autoRefreshPreheatIsSet_; +} + +void DomainsWithPort::unsetautoRefreshPreheat() +{ + autoRefreshPreheatIsSet_ = false; +} + std::string DomainsWithPort::getServiceArea() const { return serviceArea_; @@ -454,6 +642,132 @@ void DomainsWithPort::unsetserviceArea() serviceAreaIsSet_ = false; } +std::string DomainsWithPort::getRangeStatus() const +{ + return rangeStatus_; +} + +void DomainsWithPort::setRangeStatus(const std::string& value) +{ + rangeStatus_ = value; + rangeStatusIsSet_ = true; +} + +bool DomainsWithPort::rangeStatusIsSet() const +{ + return rangeStatusIsSet_; +} + +void DomainsWithPort::unsetrangeStatus() +{ + rangeStatusIsSet_ = false; +} + +std::string DomainsWithPort::getFollowStatus() const +{ + return followStatus_; +} + +void DomainsWithPort::setFollowStatus(const std::string& value) +{ + followStatus_ = value; + followStatusIsSet_ = true; +} + +bool DomainsWithPort::followStatusIsSet() const +{ + return followStatusIsSet_; +} + +void DomainsWithPort::unsetfollowStatus() +{ + followStatusIsSet_ = false; +} + +std::string DomainsWithPort::getOriginStatus() const +{ + return originStatus_; +} + +void DomainsWithPort::setOriginStatus(const std::string& value) +{ + originStatus_ = value; + originStatusIsSet_ = true; +} + +bool DomainsWithPort::originStatusIsSet() const +{ + return originStatusIsSet_; +} + +void DomainsWithPort::unsetoriginStatus() +{ + originStatusIsSet_ = false; +} + +std::string DomainsWithPort::getBannedReason() const +{ + return bannedReason_; +} + +void DomainsWithPort::setBannedReason(const std::string& value) +{ + bannedReason_ = value; + bannedReasonIsSet_ = true; +} + +bool DomainsWithPort::bannedReasonIsSet() const +{ + return bannedReasonIsSet_; +} + +void DomainsWithPort::unsetbannedReason() +{ + bannedReasonIsSet_ = false; +} + +std::string DomainsWithPort::getLockedReason() const +{ + return lockedReason_; +} + +void DomainsWithPort::setLockedReason(const std::string& value) +{ + lockedReason_ = value; + lockedReasonIsSet_ = true; +} + +bool DomainsWithPort::lockedReasonIsSet() const +{ + return lockedReasonIsSet_; +} + +void DomainsWithPort::unsetlockedReason() +{ + lockedReasonIsSet_ = false; +} + +std::string DomainsWithPort::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void DomainsWithPort::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool DomainsWithPort::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void DomainsWithPort::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + } } } diff --git a/cdn/src/v2/model/EnableDomainRequest.cpp b/cdn/src/v2/model/EnableDomainRequest.cpp new file mode 100644 index 000000000..17f477d4c --- /dev/null +++ b/cdn/src/v2/model/EnableDomainRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cdn/v2/model/EnableDomainRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +EnableDomainRequest::EnableDomainRequest() +{ + domainId_ = ""; + domainIdIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +EnableDomainRequest::~EnableDomainRequest() = default; + +void EnableDomainRequest::validate() +{ +} + +web::json::value EnableDomainRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool EnableDomainRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string EnableDomainRequest::getDomainId() const +{ + return domainId_; +} + +void EnableDomainRequest::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool EnableDomainRequest::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void EnableDomainRequest::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string EnableDomainRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void EnableDomainRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool EnableDomainRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void EnableDomainRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/EnableDomainResponse.cpp b/cdn/src/v2/model/EnableDomainResponse.cpp new file mode 100644 index 000000000..404696fec --- /dev/null +++ b/cdn/src/v2/model/EnableDomainResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/EnableDomainResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +EnableDomainResponse::EnableDomainResponse() +{ + domainIsSet_ = false; +} + +EnableDomainResponse::~EnableDomainResponse() = default; + +void EnableDomainResponse::validate() +{ +} + +web::json::value EnableDomainResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIsSet_) { + val[utility::conversions::to_string_t("domain")] = ModelBase::toJson(domain_); + } + + return val; +} +bool EnableDomainResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain")); + if(!fieldValue.is_null()) + { + DomainsWithPort refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomain(refVal); + } + } + return ok; +} + + +DomainsWithPort EnableDomainResponse::getDomain() const +{ + return domain_; +} + +void EnableDomainResponse::setDomain(const DomainsWithPort& value) +{ + domain_ = value; + domainIsSet_ = true; +} + +bool EnableDomainResponse::domainIsSet() const +{ + return domainIsSet_; +} + +void EnableDomainResponse::unsetdomain() +{ + domainIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ForceRedirect.cpp b/cdn/src/v2/model/ForceRedirect.cpp new file mode 100644 index 000000000..3f718e3db --- /dev/null +++ b/cdn/src/v2/model/ForceRedirect.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cdn/v2/model/ForceRedirect.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ForceRedirect::ForceRedirect() +{ + switch_ = 0; + switchIsSet_ = false; + redirectType_ = ""; + redirectTypeIsSet_ = false; +} + +ForceRedirect::~ForceRedirect() = default; + +void ForceRedirect::validate() +{ +} + +web::json::value ForceRedirect::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(switchIsSet_) { + val[utility::conversions::to_string_t("switch")] = ModelBase::toJson(switch_); + } + if(redirectTypeIsSet_) { + val[utility::conversions::to_string_t("redirect_type")] = ModelBase::toJson(redirectType_); + } + + return val; +} +bool ForceRedirect::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("switch"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("switch")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSwitch(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("redirect_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("redirect_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRedirectType(refVal); + } + } + return ok; +} + + +int32_t ForceRedirect::getSwitch() const +{ + return switch_; +} + +void ForceRedirect::setSwitch(int32_t value) +{ + switch_ = value; + switchIsSet_ = true; +} + +bool ForceRedirect::switchIsSet() const +{ + return switchIsSet_; +} + +void ForceRedirect::unsetswitch() +{ + switchIsSet_ = false; +} + +std::string ForceRedirect::getRedirectType() const +{ + return redirectType_; +} + +void ForceRedirect::setRedirectType(const std::string& value) +{ + redirectType_ = value; + redirectTypeIsSet_ = true; +} + +bool ForceRedirect::redirectTypeIsSet() const +{ + return redirectTypeIsSet_; +} + +void ForceRedirect::unsetredirectType() +{ + redirectTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/HttpsDetail.cpp b/cdn/src/v2/model/HttpsDetail.cpp new file mode 100644 index 000000000..0c36bed38 --- /dev/null +++ b/cdn/src/v2/model/HttpsDetail.cpp @@ -0,0 +1,428 @@ + + +#include "huaweicloud/cdn/v2/model/HttpsDetail.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +HttpsDetail::HttpsDetail() +{ + domainId_ = ""; + domainIdIsSet_ = false; + domainName_ = ""; + domainNameIsSet_ = false; + certName_ = ""; + certNameIsSet_ = false; + certificate_ = ""; + certificateIsSet_ = false; + privateKey_ = ""; + privateKeyIsSet_ = false; + certificateType_ = 0; + certificateTypeIsSet_ = false; + expirationTime_ = 0L; + expirationTimeIsSet_ = false; + httpsStatus_ = 0; + httpsStatusIsSet_ = false; + forceRedirectHttps_ = 0; + forceRedirectHttpsIsSet_ = false; + forceRedirectConfigIsSet_ = false; + http2_ = 0; + http2IsSet_ = false; +} + +HttpsDetail::~HttpsDetail() = default; + +void HttpsDetail::validate() +{ +} + +web::json::value HttpsDetail::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(certNameIsSet_) { + val[utility::conversions::to_string_t("cert_name")] = ModelBase::toJson(certName_); + } + if(certificateIsSet_) { + val[utility::conversions::to_string_t("certificate")] = ModelBase::toJson(certificate_); + } + if(privateKeyIsSet_) { + val[utility::conversions::to_string_t("private_key")] = ModelBase::toJson(privateKey_); + } + if(certificateTypeIsSet_) { + val[utility::conversions::to_string_t("certificate_type")] = ModelBase::toJson(certificateType_); + } + if(expirationTimeIsSet_) { + val[utility::conversions::to_string_t("expiration_time")] = ModelBase::toJson(expirationTime_); + } + if(httpsStatusIsSet_) { + val[utility::conversions::to_string_t("https_status")] = ModelBase::toJson(httpsStatus_); + } + if(forceRedirectHttpsIsSet_) { + val[utility::conversions::to_string_t("force_redirect_https")] = ModelBase::toJson(forceRedirectHttps_); + } + if(forceRedirectConfigIsSet_) { + val[utility::conversions::to_string_t("force_redirect_config")] = ModelBase::toJson(forceRedirectConfig_); + } + if(http2IsSet_) { + val[utility::conversions::to_string_t("http2")] = ModelBase::toJson(http2_); + } + + return val; +} +bool HttpsDetail::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cert_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cert_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("certificate"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("certificate")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertificate(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("private_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("private_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPrivateKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("certificate_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("certificate_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertificateType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("expiration_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("expiration_time")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExpirationTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_status")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpsStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("force_redirect_https"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("force_redirect_https")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForceRedirectHttps(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("force_redirect_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("force_redirect_config")); + if(!fieldValue.is_null()) + { + ForceRedirect refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForceRedirectConfig(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("http2"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("http2")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttp2(refVal); + } + } + return ok; +} + + +std::string HttpsDetail::getDomainId() const +{ + return domainId_; +} + +void HttpsDetail::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool HttpsDetail::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void HttpsDetail::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string HttpsDetail::getDomainName() const +{ + return domainName_; +} + +void HttpsDetail::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool HttpsDetail::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void HttpsDetail::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +std::string HttpsDetail::getCertName() const +{ + return certName_; +} + +void HttpsDetail::setCertName(const std::string& value) +{ + certName_ = value; + certNameIsSet_ = true; +} + +bool HttpsDetail::certNameIsSet() const +{ + return certNameIsSet_; +} + +void HttpsDetail::unsetcertName() +{ + certNameIsSet_ = false; +} + +std::string HttpsDetail::getCertificate() const +{ + return certificate_; +} + +void HttpsDetail::setCertificate(const std::string& value) +{ + certificate_ = value; + certificateIsSet_ = true; +} + +bool HttpsDetail::certificateIsSet() const +{ + return certificateIsSet_; +} + +void HttpsDetail::unsetcertificate() +{ + certificateIsSet_ = false; +} + +std::string HttpsDetail::getPrivateKey() const +{ + return privateKey_; +} + +void HttpsDetail::setPrivateKey(const std::string& value) +{ + privateKey_ = value; + privateKeyIsSet_ = true; +} + +bool HttpsDetail::privateKeyIsSet() const +{ + return privateKeyIsSet_; +} + +void HttpsDetail::unsetprivateKey() +{ + privateKeyIsSet_ = false; +} + +int32_t HttpsDetail::getCertificateType() const +{ + return certificateType_; +} + +void HttpsDetail::setCertificateType(int32_t value) +{ + certificateType_ = value; + certificateTypeIsSet_ = true; +} + +bool HttpsDetail::certificateTypeIsSet() const +{ + return certificateTypeIsSet_; +} + +void HttpsDetail::unsetcertificateType() +{ + certificateTypeIsSet_ = false; +} + +int64_t HttpsDetail::getExpirationTime() const +{ + return expirationTime_; +} + +void HttpsDetail::setExpirationTime(int64_t value) +{ + expirationTime_ = value; + expirationTimeIsSet_ = true; +} + +bool HttpsDetail::expirationTimeIsSet() const +{ + return expirationTimeIsSet_; +} + +void HttpsDetail::unsetexpirationTime() +{ + expirationTimeIsSet_ = false; +} + +int32_t HttpsDetail::getHttpsStatus() const +{ + return httpsStatus_; +} + +void HttpsDetail::setHttpsStatus(int32_t value) +{ + httpsStatus_ = value; + httpsStatusIsSet_ = true; +} + +bool HttpsDetail::httpsStatusIsSet() const +{ + return httpsStatusIsSet_; +} + +void HttpsDetail::unsethttpsStatus() +{ + httpsStatusIsSet_ = false; +} + +int32_t HttpsDetail::getForceRedirectHttps() const +{ + return forceRedirectHttps_; +} + +void HttpsDetail::setForceRedirectHttps(int32_t value) +{ + forceRedirectHttps_ = value; + forceRedirectHttpsIsSet_ = true; +} + +bool HttpsDetail::forceRedirectHttpsIsSet() const +{ + return forceRedirectHttpsIsSet_; +} + +void HttpsDetail::unsetforceRedirectHttps() +{ + forceRedirectHttpsIsSet_ = false; +} + +ForceRedirect HttpsDetail::getForceRedirectConfig() const +{ + return forceRedirectConfig_; +} + +void HttpsDetail::setForceRedirectConfig(const ForceRedirect& value) +{ + forceRedirectConfig_ = value; + forceRedirectConfigIsSet_ = true; +} + +bool HttpsDetail::forceRedirectConfigIsSet() const +{ + return forceRedirectConfigIsSet_; +} + +void HttpsDetail::unsetforceRedirectConfig() +{ + forceRedirectConfigIsSet_ = false; +} + +int32_t HttpsDetail::getHttp2() const +{ + return http2_; +} + +void HttpsDetail::setHttp2(int32_t value) +{ + http2_ = value; + http2IsSet_ = true; +} + +bool HttpsDetail::http2IsSet() const +{ + return http2IsSet_; +} + +void HttpsDetail::unsethttp2() +{ + http2IsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowCertificatesHttpsInfoRequest.cpp b/cdn/src/v2/model/ShowCertificatesHttpsInfoRequest.cpp new file mode 100644 index 000000000..d59d43087 --- /dev/null +++ b/cdn/src/v2/model/ShowCertificatesHttpsInfoRequest.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowCertificatesHttpsInfoRequest::ShowCertificatesHttpsInfoRequest() +{ + pageSize_ = 0; + pageSizeIsSet_ = false; + pageNumber_ = 0; + pageNumberIsSet_ = false; + domainName_ = ""; + domainNameIsSet_ = false; + userDomainId_ = ""; + userDomainIdIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +ShowCertificatesHttpsInfoRequest::~ShowCertificatesHttpsInfoRequest() = default; + +void ShowCertificatesHttpsInfoRequest::validate() +{ +} + +web::json::value ShowCertificatesHttpsInfoRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(pageSizeIsSet_) { + val[utility::conversions::to_string_t("page_size")] = ModelBase::toJson(pageSize_); + } + if(pageNumberIsSet_) { + val[utility::conversions::to_string_t("page_number")] = ModelBase::toJson(pageNumber_); + } + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(userDomainIdIsSet_) { + val[utility::conversions::to_string_t("user_domain_id")] = ModelBase::toJson(userDomainId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool ShowCertificatesHttpsInfoRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("page_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_number"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_number")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageNumber(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("user_domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +int32_t ShowCertificatesHttpsInfoRequest::getPageSize() const +{ + return pageSize_; +} + +void ShowCertificatesHttpsInfoRequest::setPageSize(int32_t value) +{ + pageSize_ = value; + pageSizeIsSet_ = true; +} + +bool ShowCertificatesHttpsInfoRequest::pageSizeIsSet() const +{ + return pageSizeIsSet_; +} + +void ShowCertificatesHttpsInfoRequest::unsetpageSize() +{ + pageSizeIsSet_ = false; +} + +int32_t ShowCertificatesHttpsInfoRequest::getPageNumber() const +{ + return pageNumber_; +} + +void ShowCertificatesHttpsInfoRequest::setPageNumber(int32_t value) +{ + pageNumber_ = value; + pageNumberIsSet_ = true; +} + +bool ShowCertificatesHttpsInfoRequest::pageNumberIsSet() const +{ + return pageNumberIsSet_; +} + +void ShowCertificatesHttpsInfoRequest::unsetpageNumber() +{ + pageNumberIsSet_ = false; +} + +std::string ShowCertificatesHttpsInfoRequest::getDomainName() const +{ + return domainName_; +} + +void ShowCertificatesHttpsInfoRequest::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool ShowCertificatesHttpsInfoRequest::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void ShowCertificatesHttpsInfoRequest::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +std::string ShowCertificatesHttpsInfoRequest::getUserDomainId() const +{ + return userDomainId_; +} + +void ShowCertificatesHttpsInfoRequest::setUserDomainId(const std::string& value) +{ + userDomainId_ = value; + userDomainIdIsSet_ = true; +} + +bool ShowCertificatesHttpsInfoRequest::userDomainIdIsSet() const +{ + return userDomainIdIsSet_; +} + +void ShowCertificatesHttpsInfoRequest::unsetuserDomainId() +{ + userDomainIdIsSet_ = false; +} + +std::string ShowCertificatesHttpsInfoRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ShowCertificatesHttpsInfoRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ShowCertificatesHttpsInfoRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ShowCertificatesHttpsInfoRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowCertificatesHttpsInfoResponse.cpp b/cdn/src/v2/model/ShowCertificatesHttpsInfoResponse.cpp new file mode 100644 index 000000000..b14c75afa --- /dev/null +++ b/cdn/src/v2/model/ShowCertificatesHttpsInfoResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cdn/v2/model/ShowCertificatesHttpsInfoResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowCertificatesHttpsInfoResponse::ShowCertificatesHttpsInfoResponse() +{ + total_ = 0; + totalIsSet_ = false; + httpsIsSet_ = false; +} + +ShowCertificatesHttpsInfoResponse::~ShowCertificatesHttpsInfoResponse() = default; + +void ShowCertificatesHttpsInfoResponse::validate() +{ +} + +web::json::value ShowCertificatesHttpsInfoResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(totalIsSet_) { + val[utility::conversions::to_string_t("total")] = ModelBase::toJson(total_); + } + if(httpsIsSet_) { + val[utility::conversions::to_string_t("https")] = ModelBase::toJson(https_); + } + + return val; +} +bool ShowCertificatesHttpsInfoResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("total"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotal(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttps(refVal); + } + } + return ok; +} + + +int32_t ShowCertificatesHttpsInfoResponse::getTotal() const +{ + return total_; +} + +void ShowCertificatesHttpsInfoResponse::setTotal(int32_t value) +{ + total_ = value; + totalIsSet_ = true; +} + +bool ShowCertificatesHttpsInfoResponse::totalIsSet() const +{ + return totalIsSet_; +} + +void ShowCertificatesHttpsInfoResponse::unsettotal() +{ + totalIsSet_ = false; +} + +std::vector& ShowCertificatesHttpsInfoResponse::getHttps() +{ + return https_; +} + +void ShowCertificatesHttpsInfoResponse::setHttps(const std::vector& value) +{ + https_ = value; + httpsIsSet_ = true; +} + +bool ShowCertificatesHttpsInfoResponse::httpsIsSet() const +{ + return httpsIsSet_; +} + +void ShowCertificatesHttpsInfoResponse::unsethttps() +{ + httpsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowDomainDetailByNameResponse.cpp b/cdn/src/v2/model/ShowDomainDetailByNameResponse.cpp index a686273ba..27289d493 100644 --- a/cdn/src/v2/model/ShowDomainDetailByNameResponse.cpp +++ b/cdn/src/v2/model/ShowDomainDetailByNameResponse.cpp @@ -39,7 +39,7 @@ bool ShowDomainDetailByNameResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain")); if(!fieldValue.is_null()) { - DomainsWithPort refVal; + DomainsDetail refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setDomain(refVal); } @@ -48,12 +48,12 @@ bool ShowDomainDetailByNameResponse::fromJson(const web::json::value& val) } -DomainsWithPort ShowDomainDetailByNameResponse::getDomain() const +DomainsDetail ShowDomainDetailByNameResponse::getDomain() const { return domain_; } -void ShowDomainDetailByNameResponse::setDomain(const DomainsWithPort& value) +void ShowDomainDetailByNameResponse::setDomain(const DomainsDetail& value) { domain_ = value; domainIsSet_ = true; diff --git a/cdn/src/v2/model/ShowIpInfoRequest.cpp b/cdn/src/v2/model/ShowIpInfoRequest.cpp new file mode 100644 index 000000000..9a12ea76b --- /dev/null +++ b/cdn/src/v2/model/ShowIpInfoRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cdn/v2/model/ShowIpInfoRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowIpInfoRequest::ShowIpInfoRequest() +{ + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + ips_ = ""; + ipsIsSet_ = false; +} + +ShowIpInfoRequest::~ShowIpInfoRequest() = default; + +void ShowIpInfoRequest::validate() +{ +} + +web::json::value ShowIpInfoRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(ipsIsSet_) { + val[utility::conversions::to_string_t("ips")] = ModelBase::toJson(ips_); + } + + return val; +} +bool ShowIpInfoRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ips")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIps(refVal); + } + } + return ok; +} + + +std::string ShowIpInfoRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ShowIpInfoRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ShowIpInfoRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ShowIpInfoRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string ShowIpInfoRequest::getIps() const +{ + return ips_; +} + +void ShowIpInfoRequest::setIps(const std::string& value) +{ + ips_ = value; + ipsIsSet_ = true; +} + +bool ShowIpInfoRequest::ipsIsSet() const +{ + return ipsIsSet_; +} + +void ShowIpInfoRequest::unsetips() +{ + ipsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowIpInfoResponse.cpp b/cdn/src/v2/model/ShowIpInfoResponse.cpp new file mode 100644 index 000000000..b764ed162 --- /dev/null +++ b/cdn/src/v2/model/ShowIpInfoResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/ShowIpInfoResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowIpInfoResponse::ShowIpInfoResponse() +{ + cdnIpsIsSet_ = false; +} + +ShowIpInfoResponse::~ShowIpInfoResponse() = default; + +void ShowIpInfoResponse::validate() +{ +} + +web::json::value ShowIpInfoResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(cdnIpsIsSet_) { + val[utility::conversions::to_string_t("cdn_ips")] = ModelBase::toJson(cdnIps_); + } + + return val; +} +bool ShowIpInfoResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("cdn_ips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cdn_ips")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCdnIps(refVal); + } + } + return ok; +} + + +std::vector& ShowIpInfoResponse::getCdnIps() +{ + return cdnIps_; +} + +void ShowIpInfoResponse::setCdnIps(const std::vector& value) +{ + cdnIps_ = value; + cdnIpsIsSet_ = true; +} + +bool ShowIpInfoResponse::cdnIpsIsSet() const +{ + return cdnIpsIsSet_; +} + +void ShowIpInfoResponse::unsetcdnIps() +{ + cdnIpsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowTagsRequest.cpp b/cdn/src/v2/model/ShowTagsRequest.cpp new file mode 100644 index 000000000..7610cea0a --- /dev/null +++ b/cdn/src/v2/model/ShowTagsRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cdn/v2/model/ShowTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowTagsRequest::ShowTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; +} + +ShowTagsRequest::~ShowTagsRequest() = default; + +void ShowTagsRequest::validate() +{ +} + +web::json::value ShowTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + + return val; +} +bool ShowTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + return ok; +} + + +std::string ShowTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void ShowTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool ShowTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void ShowTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowTagsResponse.cpp b/cdn/src/v2/model/ShowTagsResponse.cpp new file mode 100644 index 000000000..dab9d4083 --- /dev/null +++ b/cdn/src/v2/model/ShowTagsResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/ShowTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowTagsResponse::ShowTagsResponse() +{ + tagsIsSet_ = false; +} + +ShowTagsResponse::~ShowTagsResponse() = default; + +void ShowTagsResponse::validate() +{ +} + +web::json::value ShowTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool ShowTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::vector& ShowTagsResponse::getTags() +{ + return tags_; +} + +void ShowTagsResponse::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ShowTagsResponse::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ShowTagsResponse::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowVerifyDomainOwnerInfoRequest.cpp b/cdn/src/v2/model/ShowVerifyDomainOwnerInfoRequest.cpp new file mode 100644 index 000000000..ab2dc2724 --- /dev/null +++ b/cdn/src/v2/model/ShowVerifyDomainOwnerInfoRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowVerifyDomainOwnerInfoRequest::ShowVerifyDomainOwnerInfoRequest() +{ + domainName_ = ""; + domainNameIsSet_ = false; +} + +ShowVerifyDomainOwnerInfoRequest::~ShowVerifyDomainOwnerInfoRequest() = default; + +void ShowVerifyDomainOwnerInfoRequest::validate() +{ +} + +web::json::value ShowVerifyDomainOwnerInfoRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + + return val; +} +bool ShowVerifyDomainOwnerInfoRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + return ok; +} + + +std::string ShowVerifyDomainOwnerInfoRequest::getDomainName() const +{ + return domainName_; +} + +void ShowVerifyDomainOwnerInfoRequest::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoRequest::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void ShowVerifyDomainOwnerInfoRequest::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/ShowVerifyDomainOwnerInfoResponse.cpp b/cdn/src/v2/model/ShowVerifyDomainOwnerInfoResponse.cpp new file mode 100644 index 000000000..2f2f27149 --- /dev/null +++ b/cdn/src/v2/model/ShowVerifyDomainOwnerInfoResponse.cpp @@ -0,0 +1,289 @@ + + +#include "huaweicloud/cdn/v2/model/ShowVerifyDomainOwnerInfoResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +ShowVerifyDomainOwnerInfoResponse::ShowVerifyDomainOwnerInfoResponse() +{ + dnsVerifyType_ = ""; + dnsVerifyTypeIsSet_ = false; + dnsVerifyName_ = ""; + dnsVerifyNameIsSet_ = false; + fileVerifyUrl_ = ""; + fileVerifyUrlIsSet_ = false; + domainName_ = ""; + domainNameIsSet_ = false; + verifyDomainName_ = ""; + verifyDomainNameIsSet_ = false; + fileVerifyFilename_ = ""; + fileVerifyFilenameIsSet_ = false; + verifyContent_ = ""; + verifyContentIsSet_ = false; +} + +ShowVerifyDomainOwnerInfoResponse::~ShowVerifyDomainOwnerInfoResponse() = default; + +void ShowVerifyDomainOwnerInfoResponse::validate() +{ +} + +web::json::value ShowVerifyDomainOwnerInfoResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dnsVerifyTypeIsSet_) { + val[utility::conversions::to_string_t("dns_verify_type")] = ModelBase::toJson(dnsVerifyType_); + } + if(dnsVerifyNameIsSet_) { + val[utility::conversions::to_string_t("dns_verify_name")] = ModelBase::toJson(dnsVerifyName_); + } + if(fileVerifyUrlIsSet_) { + val[utility::conversions::to_string_t("file_verify_url")] = ModelBase::toJson(fileVerifyUrl_); + } + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(verifyDomainNameIsSet_) { + val[utility::conversions::to_string_t("verify_domain_name")] = ModelBase::toJson(verifyDomainName_); + } + if(fileVerifyFilenameIsSet_) { + val[utility::conversions::to_string_t("file_verify_filename")] = ModelBase::toJson(fileVerifyFilename_); + } + if(verifyContentIsSet_) { + val[utility::conversions::to_string_t("verify_content")] = ModelBase::toJson(verifyContent_); + } + + return val; +} +bool ShowVerifyDomainOwnerInfoResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dns_verify_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dns_verify_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDnsVerifyType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dns_verify_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dns_verify_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDnsVerifyName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("file_verify_url"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("file_verify_url")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFileVerifyUrl(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("verify_domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("verify_domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVerifyDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("file_verify_filename"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("file_verify_filename")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFileVerifyFilename(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("verify_content"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("verify_content")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVerifyContent(refVal); + } + } + return ok; +} + + +std::string ShowVerifyDomainOwnerInfoResponse::getDnsVerifyType() const +{ + return dnsVerifyType_; +} + +void ShowVerifyDomainOwnerInfoResponse::setDnsVerifyType(const std::string& value) +{ + dnsVerifyType_ = value; + dnsVerifyTypeIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoResponse::dnsVerifyTypeIsSet() const +{ + return dnsVerifyTypeIsSet_; +} + +void ShowVerifyDomainOwnerInfoResponse::unsetdnsVerifyType() +{ + dnsVerifyTypeIsSet_ = false; +} + +std::string ShowVerifyDomainOwnerInfoResponse::getDnsVerifyName() const +{ + return dnsVerifyName_; +} + +void ShowVerifyDomainOwnerInfoResponse::setDnsVerifyName(const std::string& value) +{ + dnsVerifyName_ = value; + dnsVerifyNameIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoResponse::dnsVerifyNameIsSet() const +{ + return dnsVerifyNameIsSet_; +} + +void ShowVerifyDomainOwnerInfoResponse::unsetdnsVerifyName() +{ + dnsVerifyNameIsSet_ = false; +} + +std::string ShowVerifyDomainOwnerInfoResponse::getFileVerifyUrl() const +{ + return fileVerifyUrl_; +} + +void ShowVerifyDomainOwnerInfoResponse::setFileVerifyUrl(const std::string& value) +{ + fileVerifyUrl_ = value; + fileVerifyUrlIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoResponse::fileVerifyUrlIsSet() const +{ + return fileVerifyUrlIsSet_; +} + +void ShowVerifyDomainOwnerInfoResponse::unsetfileVerifyUrl() +{ + fileVerifyUrlIsSet_ = false; +} + +std::string ShowVerifyDomainOwnerInfoResponse::getDomainName() const +{ + return domainName_; +} + +void ShowVerifyDomainOwnerInfoResponse::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoResponse::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void ShowVerifyDomainOwnerInfoResponse::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +std::string ShowVerifyDomainOwnerInfoResponse::getVerifyDomainName() const +{ + return verifyDomainName_; +} + +void ShowVerifyDomainOwnerInfoResponse::setVerifyDomainName(const std::string& value) +{ + verifyDomainName_ = value; + verifyDomainNameIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoResponse::verifyDomainNameIsSet() const +{ + return verifyDomainNameIsSet_; +} + +void ShowVerifyDomainOwnerInfoResponse::unsetverifyDomainName() +{ + verifyDomainNameIsSet_ = false; +} + +std::string ShowVerifyDomainOwnerInfoResponse::getFileVerifyFilename() const +{ + return fileVerifyFilename_; +} + +void ShowVerifyDomainOwnerInfoResponse::setFileVerifyFilename(const std::string& value) +{ + fileVerifyFilename_ = value; + fileVerifyFilenameIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoResponse::fileVerifyFilenameIsSet() const +{ + return fileVerifyFilenameIsSet_; +} + +void ShowVerifyDomainOwnerInfoResponse::unsetfileVerifyFilename() +{ + fileVerifyFilenameIsSet_ = false; +} + +std::string ShowVerifyDomainOwnerInfoResponse::getVerifyContent() const +{ + return verifyContent_; +} + +void ShowVerifyDomainOwnerInfoResponse::setVerifyContent(const std::string& value) +{ + verifyContent_ = value; + verifyContentIsSet_ = true; +} + +bool ShowVerifyDomainOwnerInfoResponse::verifyContentIsSet() const +{ + return verifyContentIsSet_; +} + +void ShowVerifyDomainOwnerInfoResponse::unsetverifyContent() +{ + verifyContentIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/SourceWithPort.cpp b/cdn/src/v2/model/SourceWithPort.cpp new file mode 100644 index 000000000..aa2a7ce43 --- /dev/null +++ b/cdn/src/v2/model/SourceWithPort.cpp @@ -0,0 +1,289 @@ + + +#include "huaweicloud/cdn/v2/model/SourceWithPort.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +SourceWithPort::SourceWithPort() +{ + domainId_ = ""; + domainIdIsSet_ = false; + ipOrDomain_ = ""; + ipOrDomainIsSet_ = false; + originType_ = ""; + originTypeIsSet_ = false; + activeStandby_ = 0; + activeStandbyIsSet_ = false; + enableObsWebHosting_ = 0; + enableObsWebHostingIsSet_ = false; + httpPort_ = 0; + httpPortIsSet_ = false; + httpsPort_ = 0; + httpsPortIsSet_ = false; +} + +SourceWithPort::~SourceWithPort() = default; + +void SourceWithPort::validate() +{ +} + +web::json::value SourceWithPort::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(ipOrDomainIsSet_) { + val[utility::conversions::to_string_t("ip_or_domain")] = ModelBase::toJson(ipOrDomain_); + } + if(originTypeIsSet_) { + val[utility::conversions::to_string_t("origin_type")] = ModelBase::toJson(originType_); + } + if(activeStandbyIsSet_) { + val[utility::conversions::to_string_t("active_standby")] = ModelBase::toJson(activeStandby_); + } + if(enableObsWebHostingIsSet_) { + val[utility::conversions::to_string_t("enable_obs_web_hosting")] = ModelBase::toJson(enableObsWebHosting_); + } + if(httpPortIsSet_) { + val[utility::conversions::to_string_t("http_port")] = ModelBase::toJson(httpPort_); + } + if(httpsPortIsSet_) { + val[utility::conversions::to_string_t("https_port")] = ModelBase::toJson(httpsPort_); + } + + return val; +} +bool SourceWithPort::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_or_domain"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_or_domain")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpOrDomain(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("origin_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("origin_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOriginType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("active_standby"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("active_standby")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setActiveStandby(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enable_obs_web_hosting"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enable_obs_web_hosting")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnableObsWebHosting(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("http_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("http_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpsPort(refVal); + } + } + return ok; +} + + +std::string SourceWithPort::getDomainId() const +{ + return domainId_; +} + +void SourceWithPort::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool SourceWithPort::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void SourceWithPort::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string SourceWithPort::getIpOrDomain() const +{ + return ipOrDomain_; +} + +void SourceWithPort::setIpOrDomain(const std::string& value) +{ + ipOrDomain_ = value; + ipOrDomainIsSet_ = true; +} + +bool SourceWithPort::ipOrDomainIsSet() const +{ + return ipOrDomainIsSet_; +} + +void SourceWithPort::unsetipOrDomain() +{ + ipOrDomainIsSet_ = false; +} + +std::string SourceWithPort::getOriginType() const +{ + return originType_; +} + +void SourceWithPort::setOriginType(const std::string& value) +{ + originType_ = value; + originTypeIsSet_ = true; +} + +bool SourceWithPort::originTypeIsSet() const +{ + return originTypeIsSet_; +} + +void SourceWithPort::unsetoriginType() +{ + originTypeIsSet_ = false; +} + +int32_t SourceWithPort::getActiveStandby() const +{ + return activeStandby_; +} + +void SourceWithPort::setActiveStandby(int32_t value) +{ + activeStandby_ = value; + activeStandbyIsSet_ = true; +} + +bool SourceWithPort::activeStandbyIsSet() const +{ + return activeStandbyIsSet_; +} + +void SourceWithPort::unsetactiveStandby() +{ + activeStandbyIsSet_ = false; +} + +int32_t SourceWithPort::getEnableObsWebHosting() const +{ + return enableObsWebHosting_; +} + +void SourceWithPort::setEnableObsWebHosting(int32_t value) +{ + enableObsWebHosting_ = value; + enableObsWebHostingIsSet_ = true; +} + +bool SourceWithPort::enableObsWebHostingIsSet() const +{ + return enableObsWebHostingIsSet_; +} + +void SourceWithPort::unsetenableObsWebHosting() +{ + enableObsWebHostingIsSet_ = false; +} + +int32_t SourceWithPort::getHttpPort() const +{ + return httpPort_; +} + +void SourceWithPort::setHttpPort(int32_t value) +{ + httpPort_ = value; + httpPortIsSet_ = true; +} + +bool SourceWithPort::httpPortIsSet() const +{ + return httpPortIsSet_; +} + +void SourceWithPort::unsethttpPort() +{ + httpPortIsSet_ = false; +} + +int32_t SourceWithPort::getHttpsPort() const +{ + return httpsPort_; +} + +void SourceWithPort::setHttpsPort(int32_t value) +{ + httpsPort_ = value; + httpsPortIsSet_ = true; +} + +bool SourceWithPort::httpsPortIsSet() const +{ + return httpsPortIsSet_; +} + +void SourceWithPort::unsethttpsPort() +{ + httpsPortIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/TagMap.cpp b/cdn/src/v2/model/TagMap.cpp new file mode 100644 index 000000000..db18fc216 --- /dev/null +++ b/cdn/src/v2/model/TagMap.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cdn/v2/model/TagMap.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +TagMap::TagMap() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +TagMap::~TagMap() = default; + +void TagMap::validate() +{ +} + +web::json::value TagMap::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool TagMap::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string TagMap::getKey() const +{ + return key_; +} + +void TagMap::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool TagMap::keyIsSet() const +{ + return keyIsSet_; +} + +void TagMap::unsetkey() +{ + keyIsSet_ = false; +} + +std::string TagMap::getValue() const +{ + return value_; +} + +void TagMap::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool TagMap::valueIsSet() const +{ + return valueIsSet_; +} + +void TagMap::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdateDomainMultiCertificatesRequest.cpp b/cdn/src/v2/model/UpdateDomainMultiCertificatesRequest.cpp new file mode 100644 index 000000000..823f60211 --- /dev/null +++ b/cdn/src/v2/model/UpdateDomainMultiCertificatesRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdateDomainMultiCertificatesRequest::UpdateDomainMultiCertificatesRequest() +{ + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateDomainMultiCertificatesRequest::~UpdateDomainMultiCertificatesRequest() = default; + +void UpdateDomainMultiCertificatesRequest::validate() +{ +} + +web::json::value UpdateDomainMultiCertificatesRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdateDomainMultiCertificatesRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdateDomainMultiCertificatesRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateDomainMultiCertificatesRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void UpdateDomainMultiCertificatesRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void UpdateDomainMultiCertificatesRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +UpdateDomainMultiCertificatesRequestBody UpdateDomainMultiCertificatesRequest::getBody() const +{ + return body_; +} + +void UpdateDomainMultiCertificatesRequest::setBody(const UpdateDomainMultiCertificatesRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateDomainMultiCertificatesRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdateDomainMultiCertificatesRequestBody.cpp b/cdn/src/v2/model/UpdateDomainMultiCertificatesRequestBody.cpp new file mode 100644 index 000000000..4148c1b8a --- /dev/null +++ b/cdn/src/v2/model/UpdateDomainMultiCertificatesRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdateDomainMultiCertificatesRequestBody::UpdateDomainMultiCertificatesRequestBody() +{ + httpsIsSet_ = false; +} + +UpdateDomainMultiCertificatesRequestBody::~UpdateDomainMultiCertificatesRequestBody() = default; + +void UpdateDomainMultiCertificatesRequestBody::validate() +{ +} + +web::json::value UpdateDomainMultiCertificatesRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(httpsIsSet_) { + val[utility::conversions::to_string_t("https")] = ModelBase::toJson(https_); + } + + return val; +} +bool UpdateDomainMultiCertificatesRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("https"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https")); + if(!fieldValue.is_null()) + { + UpdateDomainMultiCertificatesRequestBodyContent refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttps(refVal); + } + } + return ok; +} + + +UpdateDomainMultiCertificatesRequestBodyContent UpdateDomainMultiCertificatesRequestBody::getHttps() const +{ + return https_; +} + +void UpdateDomainMultiCertificatesRequestBody::setHttps(const UpdateDomainMultiCertificatesRequestBodyContent& value) +{ + https_ = value; + httpsIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBody::httpsIsSet() const +{ + return httpsIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBody::unsethttps() +{ + httpsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.cpp b/cdn/src/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.cpp new file mode 100644 index 000000000..14ed41a3f --- /dev/null +++ b/cdn/src/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.cpp @@ -0,0 +1,393 @@ + + +#include "huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdateDomainMultiCertificatesRequestBodyContent::UpdateDomainMultiCertificatesRequestBodyContent() +{ + domainName_ = ""; + domainNameIsSet_ = false; + httpsSwitch_ = 0; + httpsSwitchIsSet_ = false; + accessOriginWay_ = 0; + accessOriginWayIsSet_ = false; + forceRedirectHttps_ = 0; + forceRedirectHttpsIsSet_ = false; + forceRedirectConfigIsSet_ = false; + http2_ = 0; + http2IsSet_ = false; + certName_ = ""; + certNameIsSet_ = false; + certificate_ = ""; + certificateIsSet_ = false; + privateKey_ = ""; + privateKeyIsSet_ = false; + certificateType_ = 0; + certificateTypeIsSet_ = false; +} + +UpdateDomainMultiCertificatesRequestBodyContent::~UpdateDomainMultiCertificatesRequestBodyContent() = default; + +void UpdateDomainMultiCertificatesRequestBodyContent::validate() +{ +} + +web::json::value UpdateDomainMultiCertificatesRequestBodyContent::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(httpsSwitchIsSet_) { + val[utility::conversions::to_string_t("https_switch")] = ModelBase::toJson(httpsSwitch_); + } + if(accessOriginWayIsSet_) { + val[utility::conversions::to_string_t("access_origin_way")] = ModelBase::toJson(accessOriginWay_); + } + if(forceRedirectHttpsIsSet_) { + val[utility::conversions::to_string_t("force_redirect_https")] = ModelBase::toJson(forceRedirectHttps_); + } + if(forceRedirectConfigIsSet_) { + val[utility::conversions::to_string_t("force_redirect_config")] = ModelBase::toJson(forceRedirectConfig_); + } + if(http2IsSet_) { + val[utility::conversions::to_string_t("http2")] = ModelBase::toJson(http2_); + } + if(certNameIsSet_) { + val[utility::conversions::to_string_t("cert_name")] = ModelBase::toJson(certName_); + } + if(certificateIsSet_) { + val[utility::conversions::to_string_t("certificate")] = ModelBase::toJson(certificate_); + } + if(privateKeyIsSet_) { + val[utility::conversions::to_string_t("private_key")] = ModelBase::toJson(privateKey_); + } + if(certificateTypeIsSet_) { + val[utility::conversions::to_string_t("certificate_type")] = ModelBase::toJson(certificateType_); + } + + return val; +} +bool UpdateDomainMultiCertificatesRequestBodyContent::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https_switch"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_switch")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpsSwitch(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_origin_way"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_origin_way")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessOriginWay(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("force_redirect_https"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("force_redirect_https")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForceRedirectHttps(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("force_redirect_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("force_redirect_config")); + if(!fieldValue.is_null()) + { + ForceRedirect refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForceRedirectConfig(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("http2"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("http2")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttp2(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cert_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cert_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("certificate"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("certificate")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertificate(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("private_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("private_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPrivateKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("certificate_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("certificate_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertificateType(refVal); + } + } + return ok; +} + + +std::string UpdateDomainMultiCertificatesRequestBodyContent::getDomainName() const +{ + return domainName_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesRequestBodyContent::getHttpsSwitch() const +{ + return httpsSwitch_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setHttpsSwitch(int32_t value) +{ + httpsSwitch_ = value; + httpsSwitchIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::httpsSwitchIsSet() const +{ + return httpsSwitchIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsethttpsSwitch() +{ + httpsSwitchIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesRequestBodyContent::getAccessOriginWay() const +{ + return accessOriginWay_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setAccessOriginWay(int32_t value) +{ + accessOriginWay_ = value; + accessOriginWayIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::accessOriginWayIsSet() const +{ + return accessOriginWayIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetaccessOriginWay() +{ + accessOriginWayIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesRequestBodyContent::getForceRedirectHttps() const +{ + return forceRedirectHttps_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setForceRedirectHttps(int32_t value) +{ + forceRedirectHttps_ = value; + forceRedirectHttpsIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::forceRedirectHttpsIsSet() const +{ + return forceRedirectHttpsIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetforceRedirectHttps() +{ + forceRedirectHttpsIsSet_ = false; +} + +ForceRedirect UpdateDomainMultiCertificatesRequestBodyContent::getForceRedirectConfig() const +{ + return forceRedirectConfig_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setForceRedirectConfig(const ForceRedirect& value) +{ + forceRedirectConfig_ = value; + forceRedirectConfigIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::forceRedirectConfigIsSet() const +{ + return forceRedirectConfigIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetforceRedirectConfig() +{ + forceRedirectConfigIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesRequestBodyContent::getHttp2() const +{ + return http2_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setHttp2(int32_t value) +{ + http2_ = value; + http2IsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::http2IsSet() const +{ + return http2IsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsethttp2() +{ + http2IsSet_ = false; +} + +std::string UpdateDomainMultiCertificatesRequestBodyContent::getCertName() const +{ + return certName_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setCertName(const std::string& value) +{ + certName_ = value; + certNameIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::certNameIsSet() const +{ + return certNameIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetcertName() +{ + certNameIsSet_ = false; +} + +std::string UpdateDomainMultiCertificatesRequestBodyContent::getCertificate() const +{ + return certificate_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setCertificate(const std::string& value) +{ + certificate_ = value; + certificateIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::certificateIsSet() const +{ + return certificateIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetcertificate() +{ + certificateIsSet_ = false; +} + +std::string UpdateDomainMultiCertificatesRequestBodyContent::getPrivateKey() const +{ + return privateKey_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setPrivateKey(const std::string& value) +{ + privateKey_ = value; + privateKeyIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::privateKeyIsSet() const +{ + return privateKeyIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetprivateKey() +{ + privateKeyIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesRequestBodyContent::getCertificateType() const +{ + return certificateType_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::setCertificateType(int32_t value) +{ + certificateType_ = value; + certificateTypeIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesRequestBodyContent::certificateTypeIsSet() const +{ + return certificateTypeIsSet_; +} + +void UpdateDomainMultiCertificatesRequestBodyContent::unsetcertificateType() +{ + certificateTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdateDomainMultiCertificatesResponse.cpp b/cdn/src/v2/model/UpdateDomainMultiCertificatesResponse.cpp new file mode 100644 index 000000000..87b4906fe --- /dev/null +++ b/cdn/src/v2/model/UpdateDomainMultiCertificatesResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdateDomainMultiCertificatesResponse::UpdateDomainMultiCertificatesResponse() +{ + httpsIsSet_ = false; +} + +UpdateDomainMultiCertificatesResponse::~UpdateDomainMultiCertificatesResponse() = default; + +void UpdateDomainMultiCertificatesResponse::validate() +{ +} + +web::json::value UpdateDomainMultiCertificatesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(httpsIsSet_) { + val[utility::conversions::to_string_t("https")] = ModelBase::toJson(https_); + } + + return val; +} +bool UpdateDomainMultiCertificatesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("https"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https")); + if(!fieldValue.is_null()) + { + UpdateDomainMultiCertificatesResponseBodyContent refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttps(refVal); + } + } + return ok; +} + + +UpdateDomainMultiCertificatesResponseBodyContent UpdateDomainMultiCertificatesResponse::getHttps() const +{ + return https_; +} + +void UpdateDomainMultiCertificatesResponse::setHttps(const UpdateDomainMultiCertificatesResponseBodyContent& value) +{ + https_ = value; + httpsIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponse::httpsIsSet() const +{ + return httpsIsSet_; +} + +void UpdateDomainMultiCertificatesResponse::unsethttps() +{ + httpsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.cpp b/cdn/src/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.cpp new file mode 100644 index 000000000..7146e8ee0 --- /dev/null +++ b/cdn/src/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.cpp @@ -0,0 +1,393 @@ + + +#include "huaweicloud/cdn/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdateDomainMultiCertificatesResponseBodyContent::UpdateDomainMultiCertificatesResponseBodyContent() +{ + domainName_ = ""; + domainNameIsSet_ = false; + httpsSwitch_ = 0; + httpsSwitchIsSet_ = false; + accessOriginWay_ = 0; + accessOriginWayIsSet_ = false; + forceRedirectHttps_ = 0; + forceRedirectHttpsIsSet_ = false; + forceRedirectConfigIsSet_ = false; + http2_ = 0; + http2IsSet_ = false; + certName_ = ""; + certNameIsSet_ = false; + certificate_ = ""; + certificateIsSet_ = false; + certificateType_ = 0; + certificateTypeIsSet_ = false; + expirationTime_ = 0L; + expirationTimeIsSet_ = false; +} + +UpdateDomainMultiCertificatesResponseBodyContent::~UpdateDomainMultiCertificatesResponseBodyContent() = default; + +void UpdateDomainMultiCertificatesResponseBodyContent::validate() +{ +} + +web::json::value UpdateDomainMultiCertificatesResponseBodyContent::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(httpsSwitchIsSet_) { + val[utility::conversions::to_string_t("https_switch")] = ModelBase::toJson(httpsSwitch_); + } + if(accessOriginWayIsSet_) { + val[utility::conversions::to_string_t("access_origin_way")] = ModelBase::toJson(accessOriginWay_); + } + if(forceRedirectHttpsIsSet_) { + val[utility::conversions::to_string_t("force_redirect_https")] = ModelBase::toJson(forceRedirectHttps_); + } + if(forceRedirectConfigIsSet_) { + val[utility::conversions::to_string_t("force_redirect_config")] = ModelBase::toJson(forceRedirectConfig_); + } + if(http2IsSet_) { + val[utility::conversions::to_string_t("http2")] = ModelBase::toJson(http2_); + } + if(certNameIsSet_) { + val[utility::conversions::to_string_t("cert_name")] = ModelBase::toJson(certName_); + } + if(certificateIsSet_) { + val[utility::conversions::to_string_t("certificate")] = ModelBase::toJson(certificate_); + } + if(certificateTypeIsSet_) { + val[utility::conversions::to_string_t("certificate_type")] = ModelBase::toJson(certificateType_); + } + if(expirationTimeIsSet_) { + val[utility::conversions::to_string_t("expiration_time")] = ModelBase::toJson(expirationTime_); + } + + return val; +} +bool UpdateDomainMultiCertificatesResponseBodyContent::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https_switch"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_switch")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpsSwitch(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_origin_way"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_origin_way")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessOriginWay(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("force_redirect_https"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("force_redirect_https")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForceRedirectHttps(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("force_redirect_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("force_redirect_config")); + if(!fieldValue.is_null()) + { + ForceRedirect refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForceRedirectConfig(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("http2"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("http2")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttp2(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cert_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cert_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("certificate"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("certificate")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertificate(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("certificate_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("certificate_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCertificateType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("expiration_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("expiration_time")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExpirationTime(refVal); + } + } + return ok; +} + + +std::string UpdateDomainMultiCertificatesResponseBodyContent::getDomainName() const +{ + return domainName_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesResponseBodyContent::getHttpsSwitch() const +{ + return httpsSwitch_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setHttpsSwitch(int32_t value) +{ + httpsSwitch_ = value; + httpsSwitchIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::httpsSwitchIsSet() const +{ + return httpsSwitchIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsethttpsSwitch() +{ + httpsSwitchIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesResponseBodyContent::getAccessOriginWay() const +{ + return accessOriginWay_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setAccessOriginWay(int32_t value) +{ + accessOriginWay_ = value; + accessOriginWayIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::accessOriginWayIsSet() const +{ + return accessOriginWayIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetaccessOriginWay() +{ + accessOriginWayIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesResponseBodyContent::getForceRedirectHttps() const +{ + return forceRedirectHttps_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setForceRedirectHttps(int32_t value) +{ + forceRedirectHttps_ = value; + forceRedirectHttpsIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::forceRedirectHttpsIsSet() const +{ + return forceRedirectHttpsIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetforceRedirectHttps() +{ + forceRedirectHttpsIsSet_ = false; +} + +ForceRedirect UpdateDomainMultiCertificatesResponseBodyContent::getForceRedirectConfig() const +{ + return forceRedirectConfig_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setForceRedirectConfig(const ForceRedirect& value) +{ + forceRedirectConfig_ = value; + forceRedirectConfigIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::forceRedirectConfigIsSet() const +{ + return forceRedirectConfigIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetforceRedirectConfig() +{ + forceRedirectConfigIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesResponseBodyContent::getHttp2() const +{ + return http2_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setHttp2(int32_t value) +{ + http2_ = value; + http2IsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::http2IsSet() const +{ + return http2IsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsethttp2() +{ + http2IsSet_ = false; +} + +std::string UpdateDomainMultiCertificatesResponseBodyContent::getCertName() const +{ + return certName_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setCertName(const std::string& value) +{ + certName_ = value; + certNameIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::certNameIsSet() const +{ + return certNameIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetcertName() +{ + certNameIsSet_ = false; +} + +std::string UpdateDomainMultiCertificatesResponseBodyContent::getCertificate() const +{ + return certificate_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setCertificate(const std::string& value) +{ + certificate_ = value; + certificateIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::certificateIsSet() const +{ + return certificateIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetcertificate() +{ + certificateIsSet_ = false; +} + +int32_t UpdateDomainMultiCertificatesResponseBodyContent::getCertificateType() const +{ + return certificateType_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setCertificateType(int32_t value) +{ + certificateType_ = value; + certificateTypeIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::certificateTypeIsSet() const +{ + return certificateTypeIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetcertificateType() +{ + certificateTypeIsSet_ = false; +} + +int64_t UpdateDomainMultiCertificatesResponseBodyContent::getExpirationTime() const +{ + return expirationTime_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::setExpirationTime(int64_t value) +{ + expirationTime_ = value; + expirationTimeIsSet_ = true; +} + +bool UpdateDomainMultiCertificatesResponseBodyContent::expirationTimeIsSet() const +{ + return expirationTimeIsSet_; +} + +void UpdateDomainMultiCertificatesResponseBodyContent::unsetexpirationTime() +{ + expirationTimeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdatePrivateBucketAccessBody.cpp b/cdn/src/v2/model/UpdatePrivateBucketAccessBody.cpp new file mode 100644 index 000000000..008aabca4 --- /dev/null +++ b/cdn/src/v2/model/UpdatePrivateBucketAccessBody.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdatePrivateBucketAccessBody::UpdatePrivateBucketAccessBody() +{ + status_ = false; + statusIsSet_ = false; +} + +UpdatePrivateBucketAccessBody::~UpdatePrivateBucketAccessBody() = default; + +void UpdatePrivateBucketAccessBody::validate() +{ +} + +web::json::value UpdatePrivateBucketAccessBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + + return val; +} +bool UpdatePrivateBucketAccessBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + return ok; +} + + +bool UpdatePrivateBucketAccessBody::isStatus() const +{ + return status_; +} + +void UpdatePrivateBucketAccessBody::setStatus(bool value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool UpdatePrivateBucketAccessBody::statusIsSet() const +{ + return statusIsSet_; +} + +void UpdatePrivateBucketAccessBody::unsetstatus() +{ + statusIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdatePrivateBucketAccessRequest.cpp b/cdn/src/v2/model/UpdatePrivateBucketAccessRequest.cpp new file mode 100644 index 000000000..2ad74a699 --- /dev/null +++ b/cdn/src/v2/model/UpdatePrivateBucketAccessRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdatePrivateBucketAccessRequest::UpdatePrivateBucketAccessRequest() +{ + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdatePrivateBucketAccessRequest::~UpdatePrivateBucketAccessRequest() = default; + +void UpdatePrivateBucketAccessRequest::validate() +{ +} + +web::json::value UpdatePrivateBucketAccessRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdatePrivateBucketAccessRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdatePrivateBucketAccessBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdatePrivateBucketAccessRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void UpdatePrivateBucketAccessRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool UpdatePrivateBucketAccessRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void UpdatePrivateBucketAccessRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string UpdatePrivateBucketAccessRequest::getDomainId() const +{ + return domainId_; +} + +void UpdatePrivateBucketAccessRequest::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool UpdatePrivateBucketAccessRequest::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void UpdatePrivateBucketAccessRequest::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +UpdatePrivateBucketAccessBody UpdatePrivateBucketAccessRequest::getBody() const +{ + return body_; +} + +void UpdatePrivateBucketAccessRequest::setBody(const UpdatePrivateBucketAccessBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdatePrivateBucketAccessRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdatePrivateBucketAccessRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/UpdatePrivateBucketAccessResponse.cpp b/cdn/src/v2/model/UpdatePrivateBucketAccessResponse.cpp new file mode 100644 index 000000000..39c1d9fb1 --- /dev/null +++ b/cdn/src/v2/model/UpdatePrivateBucketAccessResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cdn/v2/model/UpdatePrivateBucketAccessResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +UpdatePrivateBucketAccessResponse::UpdatePrivateBucketAccessResponse() +{ + status_ = false; + statusIsSet_ = false; +} + +UpdatePrivateBucketAccessResponse::~UpdatePrivateBucketAccessResponse() = default; + +void UpdatePrivateBucketAccessResponse::validate() +{ +} + +web::json::value UpdatePrivateBucketAccessResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + + return val; +} +bool UpdatePrivateBucketAccessResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + return ok; +} + + +bool UpdatePrivateBucketAccessResponse::isStatus() const +{ + return status_; +} + +void UpdatePrivateBucketAccessResponse::setStatus(bool value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool UpdatePrivateBucketAccessResponse::statusIsSet() const +{ + return statusIsSet_; +} + +void UpdatePrivateBucketAccessResponse::unsetstatus() +{ + statusIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/VerifyDomainOwnerRequest.cpp b/cdn/src/v2/model/VerifyDomainOwnerRequest.cpp new file mode 100644 index 000000000..870c2dee0 --- /dev/null +++ b/cdn/src/v2/model/VerifyDomainOwnerRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cdn/v2/model/VerifyDomainOwnerRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +VerifyDomainOwnerRequest::VerifyDomainOwnerRequest() +{ + domainName_ = ""; + domainNameIsSet_ = false; + bodyIsSet_ = false; +} + +VerifyDomainOwnerRequest::~VerifyDomainOwnerRequest() = default; + +void VerifyDomainOwnerRequest::validate() +{ +} + +web::json::value VerifyDomainOwnerRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainNameIsSet_) { + val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool VerifyDomainOwnerRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + VerifyDomainOwnerRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string VerifyDomainOwnerRequest::getDomainName() const +{ + return domainName_; +} + +void VerifyDomainOwnerRequest::setDomainName(const std::string& value) +{ + domainName_ = value; + domainNameIsSet_ = true; +} + +bool VerifyDomainOwnerRequest::domainNameIsSet() const +{ + return domainNameIsSet_; +} + +void VerifyDomainOwnerRequest::unsetdomainName() +{ + domainNameIsSet_ = false; +} + +VerifyDomainOwnerRequestBody VerifyDomainOwnerRequest::getBody() const +{ + return body_; +} + +void VerifyDomainOwnerRequest::setBody(const VerifyDomainOwnerRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool VerifyDomainOwnerRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void VerifyDomainOwnerRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/VerifyDomainOwnerRequestBody.cpp b/cdn/src/v2/model/VerifyDomainOwnerRequestBody.cpp new file mode 100644 index 000000000..61940123f --- /dev/null +++ b/cdn/src/v2/model/VerifyDomainOwnerRequestBody.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cdn/v2/model/VerifyDomainOwnerRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +VerifyDomainOwnerRequestBody::VerifyDomainOwnerRequestBody() +{ + verifyType_ = ""; + verifyTypeIsSet_ = false; +} + +VerifyDomainOwnerRequestBody::~VerifyDomainOwnerRequestBody() = default; + +void VerifyDomainOwnerRequestBody::validate() +{ +} + +web::json::value VerifyDomainOwnerRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(verifyTypeIsSet_) { + val[utility::conversions::to_string_t("verify_type")] = ModelBase::toJson(verifyType_); + } + + return val; +} +bool VerifyDomainOwnerRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("verify_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("verify_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVerifyType(refVal); + } + } + return ok; +} + + +std::string VerifyDomainOwnerRequestBody::getVerifyType() const +{ + return verifyType_; +} + +void VerifyDomainOwnerRequestBody::setVerifyType(const std::string& value) +{ + verifyType_ = value; + verifyTypeIsSet_ = true; +} + +bool VerifyDomainOwnerRequestBody::verifyTypeIsSet() const +{ + return verifyTypeIsSet_; +} + +void VerifyDomainOwnerRequestBody::unsetverifyType() +{ + verifyTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cdn/src/v2/model/VerifyDomainOwnerResponse.cpp b/cdn/src/v2/model/VerifyDomainOwnerResponse.cpp new file mode 100644 index 000000000..0b14eff33 --- /dev/null +++ b/cdn/src/v2/model/VerifyDomainOwnerResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cdn/v2/model/VerifyDomainOwnerResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cdn { +namespace V2 { +namespace Model { + + + + +VerifyDomainOwnerResponse::VerifyDomainOwnerResponse() +{ + result_ = false; + resultIsSet_ = false; +} + +VerifyDomainOwnerResponse::~VerifyDomainOwnerResponse() = default; + +void VerifyDomainOwnerResponse::validate() +{ +} + +web::json::value VerifyDomainOwnerResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } + + return val; +} +bool VerifyDomainOwnerResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } + return ok; +} + + +bool VerifyDomainOwnerResponse::isResult() const +{ + return result_; +} + +void VerifyDomainOwnerResponse::setResult(bool value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool VerifyDomainOwnerResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void VerifyDomainOwnerResponse::unsetresult() +{ + resultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/include/huaweicloud/eip/v3/EipClient.h b/eip/include/huaweicloud/eip/v3/EipClient.h index dad9bff64..13f1136b8 100644 --- a/eip/include/huaweicloud/eip/v3/EipClient.h +++ b/eip/include/huaweicloud/eip/v3/EipClient.h @@ -24,6 +24,24 @@ #include #include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include #include #include @@ -146,6 +164,56 @@ class HUAWEICLOUD_EIP_V3_EXPORT EipClient : public Client ShowPublicipPoolRequest &request ); + // 查询GEIP与实例绑定关系的租户列表 + // + // 查询GEIP与实例绑定关系的租户列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listProjectGeipBindings( + ListProjectGeipBindingsRequest &request + ); + + // 创建虚拟igw + // + // 创建虚拟igw + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createTenantVpcIgw( + CreateTenantVpcIgwRequest &request + ); + // 删除虚拟igw + // + // 删除虚拟igw + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteTenantVpcIgw( + DeleteTenantVpcIgwRequest &request + ); + // 查询指定租户下的虚拟igw列表 + // + // 查询指定租户下的虚拟igw列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listTenantVpcIgws( + ListTenantVpcIgwsRequest &request + ); + // 查询虚拟igw详情 + // + // 查询虚拟igw详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showInternalVpcIgw( + ShowInternalVpcIgwRequest &request + ); + // 修改虚拟igw + // + // 修改虚拟igw + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateTenantVpcIgw( + UpdateTenantVpcIgwRequest &request + ); + // 绑定弹性公网IP // // 绑定弹性公网IP diff --git a/eip/include/huaweicloud/eip/v3/EipMeta.h b/eip/include/huaweicloud/eip/v3/EipMeta.h index bc4976af1..23f3a2434 100644 --- a/eip/include/huaweicloud/eip/v3/EipMeta.h +++ b/eip/include/huaweicloud/eip/v3/EipMeta.h @@ -21,6 +21,12 @@ class HUAWEICLOUD_EIP_V3_EXPORT EipMeta { static HttpRequestDef genRequestDefForListPublicipPool(); static HttpRequestDef genRequestDefForListShareBandwidthTypes(); static HttpRequestDef genRequestDefForShowPublicipPool(); + static HttpRequestDef genRequestDefForListProjectGeipBindings(); + static HttpRequestDef genRequestDefForCreateTenantVpcIgw(); + static HttpRequestDef genRequestDefForDeleteTenantVpcIgw(); + static HttpRequestDef genRequestDefForListTenantVpcIgws(); + static HttpRequestDef genRequestDefForShowInternalVpcIgw(); + static HttpRequestDef genRequestDefForUpdateTenantVpcIgw(); static HttpRequestDef genRequestDefForAssociatePublicips(); static HttpRequestDef genRequestDefForAttachBatchPublicIp(); static HttpRequestDef genRequestDefForAttachShareBandwidth(); diff --git a/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequest.h b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequest.h new file mode 100644 index 000000000..ae040326c --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequest_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT CreateTenantVpcIgwRequest + : public ModelBase +{ +public: + CreateTenantVpcIgwRequest(); + virtual ~CreateTenantVpcIgwRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTenantVpcIgwRequest members + + /// + /// 形式为\\\"fields=id&fields=project_id&...\\\",支持字段:id/project_id/vpc_id/created_at/updated_at/name + /// + + std::string getFields() const; + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::string& value); + + /// + /// + /// + + CreateTenantVpcIgwRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateTenantVpcIgwRequestBody& value); + + +protected: + std::string fields_; + bool fieldsIsSet_; + CreateTenantVpcIgwRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateTenantVpcIgwRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequest_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody.h b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody.h new file mode 100644 index 000000000..310872731 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequestBody_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 创建虚拟IGW的请求体 +/// +class HUAWEICLOUD_EIP_V3_EXPORT CreateTenantVpcIgwRequestBody + : public ModelBase +{ +public: + CreateTenantVpcIgwRequestBody(); + virtual ~CreateTenantVpcIgwRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTenantVpcIgwRequestBody members + + /// + /// + /// + + CreateTenantVpcIgwRequestBody_vpc_igw getVpcIgw() const; + bool vpcIgwIsSet() const; + void unsetvpcIgw(); + void setVpcIgw(const CreateTenantVpcIgwRequestBody_vpc_igw& value); + + +protected: + CreateTenantVpcIgwRequestBody_vpc_igw vpcIgw_; + bool vpcIgwIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequestBody_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody_vpc_igw.h b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody_vpc_igw.h new file mode 100644 index 000000000..58b4a9e32 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody_vpc_igw.h @@ -0,0 +1,108 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequestBody_vpc_igw_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequestBody_vpc_igw_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 创建虚拟IGW的请求体 +/// +class HUAWEICLOUD_EIP_V3_EXPORT CreateTenantVpcIgwRequestBody_vpc_igw + : public ModelBase +{ +public: + CreateTenantVpcIgwRequestBody_vpc_igw(); + virtual ~CreateTenantVpcIgwRequestBody_vpc_igw(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTenantVpcIgwRequestBody_vpc_igw members + + /// + /// vpcid + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 创建VPC IGW的network id + /// + + std::string getNetworkId() const; + bool networkIdIsSet() const; + void unsetnetworkId(); + void setNetworkId(const std::string& value); + + /// + /// 是否添加默认路由 + /// + + bool isAddRoute() const; + bool addRouteIsSet() const; + void unsetaddRoute(); + void setAddRoute(bool value); + + /// + /// 是否使能ipv6 + /// + + bool isEnableIpv6() const; + bool enableIpv6IsSet() const; + void unsetenableIpv6(); + void setEnableIpv6(bool value); + + /// + /// 虚拟IGW的名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + +protected: + std::string vpcId_; + bool vpcIdIsSet_; + std::string networkId_; + bool networkIdIsSet_; + bool addRoute_; + bool addRouteIsSet_; + bool enableIpv6_; + bool enableIpv6IsSet_; + std::string name_; + bool nameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwRequestBody_vpc_igw_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwResponse.h b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwResponse.h new file mode 100644 index 000000000..de2aef392 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/CreateTenantVpcIgwResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwResponse_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT CreateTenantVpcIgwResponse + : public ModelBase, public HttpResponse +{ +public: + CreateTenantVpcIgwResponse(); + virtual ~CreateTenantVpcIgwResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTenantVpcIgwResponse members + + /// + /// + /// + + VpcIgwsTenantResp getVpcIgw() const; + bool vpcIgwIsSet() const; + void unsetvpcIgw(); + void setVpcIgw(const VpcIgwsTenantResp& value); + + /// + /// 本次请求编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + +protected: + VpcIgwsTenantResp vpcIgw_; + bool vpcIgwIsSet_; + std::string requestId_; + bool requestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_CreateTenantVpcIgwResponse_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/DeleteTenantVpcIgwRequest.h b/eip/include/huaweicloud/eip/v3/model/DeleteTenantVpcIgwRequest.h new file mode 100644 index 000000000..59408849c --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/DeleteTenantVpcIgwRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_DeleteTenantVpcIgwRequest_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_DeleteTenantVpcIgwRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT DeleteTenantVpcIgwRequest + : public ModelBase +{ +public: + DeleteTenantVpcIgwRequest(); + virtual ~DeleteTenantVpcIgwRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteTenantVpcIgwRequest members + + /// + /// 虚拟igw的uuid + /// + + std::string getVpcIgwId() const; + bool vpcIgwIdIsSet() const; + void unsetvpcIgwId(); + void setVpcIgwId(const std::string& value); + + +protected: + std::string vpcIgwId_; + bool vpcIgwIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteTenantVpcIgwRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_DeleteTenantVpcIgwRequest_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/DeleteTenantVpcIgwResponse.h b/eip/include/huaweicloud/eip/v3/model/DeleteTenantVpcIgwResponse.h new file mode 100644 index 000000000..681f31401 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/DeleteTenantVpcIgwResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_DeleteTenantVpcIgwResponse_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_DeleteTenantVpcIgwResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT DeleteTenantVpcIgwResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteTenantVpcIgwResponse(); + virtual ~DeleteTenantVpcIgwResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteTenantVpcIgwResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_DeleteTenantVpcIgwResponse_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/GeipBindingsInternalResp.h b/eip/include/huaweicloud/eip/v3/model/GeipBindingsInternalResp.h new file mode 100644 index 000000000..af592b2a0 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/GeipBindingsInternalResp.h @@ -0,0 +1,166 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_GeipBindingsInternalResp_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_GeipBindingsInternalResp_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// GEIP绑定关系对象 +/// +class HUAWEICLOUD_EIP_V3_EXPORT GeipBindingsInternalResp + : public ModelBase +{ +public: + GeipBindingsInternalResp(); + virtual ~GeipBindingsInternalResp(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// GeipBindingsInternalResp members + + /// + /// GEIP的uuid + /// + + std::string getGeipId() const; + bool geipIdIsSet() const; + void unsetgeipId(); + void setGeipId(const std::string& value); + + /// + /// GEIP的ip地址 + /// + + std::string getGeipIpAddress() const; + bool geipIpAddressIsSet() const; + void unsetgeipIpAddress(); + void setGeipIpAddress(const std::string& value); + + /// + /// 中心站点or边缘站点,默认展示 + /// + + std::string getPublicBorderGroup() const; + bool publicBorderGroupIsSet() const; + void unsetpublicBorderGroup(); + void setPublicBorderGroup(const std::string& value); + + /// + /// 创建时间 + /// + + std::string getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const std::string& value); + + /// + /// 更新时间 + /// + + std::string getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const std::string& value); + + /// + /// 绑定实例的类型 + /// + + std::string getBindingInstanceType() const; + bool bindingInstanceTypeIsSet() const; + void unsetbindingInstanceType(); + void setBindingInstanceType(const std::string& value); + + /// + /// 绑定实例的id + /// + + std::string getBindingInstanceId() const; + bool bindingInstanceIdIsSet() const; + void unsetbindingInstanceId(); + void setBindingInstanceId(const std::string& value); + + /// + /// 骨干带宽对象 + /// + + Object getGcbandwidth() const; + bool gcbandwidthIsSet() const; + void unsetgcbandwidth(); + void setGcbandwidth(const Object& value); + + /// + /// 实例port的信息 + /// + + Object getVnic() const; + bool vnicIsSet() const; + void unsetvnic(); + void setVnic(const Object& value); + + /// + /// GEIP实例的vn信息 + /// + + std::vector& getVnList(); + bool vnListIsSet() const; + void unsetvnList(); + void setVnList(const std::vector& value); + + +protected: + std::string geipId_; + bool geipIdIsSet_; + std::string geipIpAddress_; + bool geipIpAddressIsSet_; + std::string publicBorderGroup_; + bool publicBorderGroupIsSet_; + std::string createdAt_; + bool createdAtIsSet_; + std::string updatedAt_; + bool updatedAtIsSet_; + std::string bindingInstanceType_; + bool bindingInstanceTypeIsSet_; + std::string bindingInstanceId_; + bool bindingInstanceIdIsSet_; + Object gcbandwidth_; + bool gcbandwidthIsSet_; + Object vnic_; + bool vnicIsSet_; + std::vector vnList_; + bool vnListIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_GeipBindingsInternalResp_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/InstancevirtualListResp.h b/eip/include/huaweicloud/eip/v3/model/InstancevirtualListResp.h new file mode 100644 index 000000000..321662996 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/InstancevirtualListResp.h @@ -0,0 +1,176 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_InstancevirtualListResp_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_InstancevirtualListResp_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// GEIP实例的vn信息 +/// +class HUAWEICLOUD_EIP_V3_EXPORT InstancevirtualListResp + : public ModelBase +{ +public: + InstancevirtualListResp(); + virtual ~InstancevirtualListResp(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// InstancevirtualListResp members + + /// + /// virtualnexthop的uuid + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// virtualnexthop的所有者 + /// + + std::string getOwner() const; + bool ownerIsSet() const; + void unsetowner(); + void setOwner(const std::string& value); + + /// + /// 标识网关所在位置POD、AZ、REGION、GLOBAL + /// + + std::string getLocation() const; + bool locationIsSet() const; + void unsetlocation(); + void setLocation(const std::string& value); + + /// + /// 功能说明:nexthops的转发模式 取值范围:'ACTIVE-ACTIVE'多活模式、'ACTIVE-STANDBY'主备模式 + /// + + std::string getForwardMode() const; + bool forwardModeIsSet() const; + void unsetforwardMode(); + void setForwardMode(const std::string& value); + + /// + /// 功能说明:网关所在集群信息,可为空 取值范围:0-36长度的字符串 + /// + + std::string getClusterId() const; + bool clusterIdIsSet() const; + void unsetclusterId(); + void setClusterId(const std::string& value); + + /// + /// 功能说明:nexthops在底层的负载均衡策略 取值范围:'2_TUPLE'二元组、'3_TUPLE'三元组、'5_TUPLE'五元组 + /// + + std::string getHashMode() const; + bool hashModeIsSet() const; + void unsethashMode(); + void setHashMode(const std::string& value); + + /// + /// 功能说明:下一跳所属网络类型 取值范围:'VXLAN'、'VLAN' + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 功能说明:网络id标识,与type组合使用 取值范围:type=VXLAN时取值0-16777215,type=VLAN时取值0-4095 + /// + + int32_t getVni() const; + bool vniIsSet() const; + void unsetvni(); + void setVni(int32_t value); + + /// + /// 下一跳信息列表 + /// + + std::vector& getNexthops(); + bool nexthopsIsSet() const; + void unsetnexthops(); + void setNexthops(const std::vector& value); + + /// + /// 功能说明:VirtualNexthop对象创建时间,UTC格式 + /// + + std::string getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const std::string& value); + + /// + /// 功能说明:VirtualNexthop对象更新时间,UTC格式 + /// + + std::string getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string owner_; + bool ownerIsSet_; + std::string location_; + bool locationIsSet_; + std::string forwardMode_; + bool forwardModeIsSet_; + std::string clusterId_; + bool clusterIdIsSet_; + std::string hashMode_; + bool hashModeIsSet_; + std::string type_; + bool typeIsSet_; + int32_t vni_; + bool vniIsSet_; + std::vector nexthops_; + bool nexthopsIsSet_; + std::string createdAt_; + bool createdAtIsSet_; + std::string updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_InstancevirtualListResp_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/ListProjectGeipBindingsRequest.h b/eip/include/huaweicloud/eip/v3/model/ListProjectGeipBindingsRequest.h new file mode 100644 index 000000000..a15441a0e --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/ListProjectGeipBindingsRequest.h @@ -0,0 +1,313 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_ListProjectGeipBindingsRequest_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_ListProjectGeipBindingsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT ListProjectGeipBindingsRequest + : public ModelBase +{ +public: + ListProjectGeipBindingsRequest(); + virtual ~ListProjectGeipBindingsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListProjectGeipBindingsRequest members + + /// + /// 形式为\\\"fields=geip_id&fields=geip_ip_address&...\\\",支持字段:geip_id/geip_ip_address/instance_type/instance_id/vnic/vn_list/public_border_group/gcbandwidth/version/created_at/updated_at/instance_vpc_id + /// + + std::string getFields() const; + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::string& value); + + /// + /// GEIP的uuid + /// + + std::string getGeipId() const; + bool geipIdIsSet() const; + void unsetgeipId(); + void setGeipId(const std::string& value); + + /// + /// GEIP的ip地址 + /// + + std::string getGeipIpAddress() const; + bool geipIpAddressIsSet() const; + void unsetgeipIpAddress(); + void setGeipIpAddress(const std::string& value); + + /// + /// GEIP所处的出口位置 + /// + + std::string getPublicBorderGroup() const; + bool publicBorderGroupIsSet() const; + void unsetpublicBorderGroup(); + void setPublicBorderGroup(const std::string& value); + + /// + /// 绑定的实例类型 + /// + + std::string getInstanceType() const; + bool instanceTypeIsSet() const; + void unsetinstanceType(); + void setInstanceType(const std::string& value); + + /// + /// 绑定的实例id + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 绑定的实例vpcid + /// + + std::string getInstanceVpcId() const; + bool instanceVpcIdIsSet() const; + void unsetinstanceVpcId(); + void setInstanceVpcId(const std::string& value); + + /// + /// 骨干带宽的uuid + /// + + std::string getGcbandwidthId() const; + bool gcbandwidthIdIsSet() const; + void unsetgcbandwidthId(); + void setGcbandwidthId(const std::string& value); + + /// + /// 骨干带宽的状态 + /// + + std::string getGcbandwidthAdminStatus() const; + bool gcbandwidthAdminStatusIsSet() const; + void unsetgcbandwidthAdminStatus(); + void setGcbandwidthAdminStatus(const std::string& value); + + /// + /// 骨干带宽的大小 + /// + + int32_t getGcbandwidthSize() const; + bool gcbandwidthSizeIsSet() const; + void unsetgcbandwidthSize(); + void setGcbandwidthSize(int32_t value); + + /// + /// 描述网络等级,从高到低分为铂金、金、银、铜 + /// + + std::string getGcbandwidthSlaLevel() const; + bool gcbandwidthSlaLevelIsSet() const; + void unsetgcbandwidthSlaLevel(); + void setGcbandwidthSlaLevel(const std::string& value); + + /// + /// 线路质量金银铜对应的DSCP值 + /// + + int32_t getGcbandwidthDscp() const; + bool gcbandwidthDscpIsSet() const; + void unsetgcbandwidthDscp(); + void setGcbandwidthDscp(int32_t value); + + /// + /// 绑定实例的ip地址 + /// + + std::string getVnicPrivateIpAddress() const; + bool vnicPrivateIpAddressIsSet() const; + void unsetvnicPrivateIpAddress(); + void setVnicPrivateIpAddress(const std::string& value); + + /// + /// 绑定实例所在的vpcid + /// + + std::string getVnicVpcId() const; + bool vnicVpcIdIsSet() const; + void unsetvnicVpcId(); + void setVnicVpcId(const std::string& value); + + /// + /// 绑定实例port的uuid + /// + + std::string getVnicPortId() const; + bool vnicPortIdIsSet() const; + void unsetvnicPortId(); + void setVnicPortId(const std::string& value); + + /// + /// 绑定实例port对应的实例id + /// + + std::string getVnicDeviceId() const; + bool vnicDeviceIdIsSet() const; + void unsetvnicDeviceId(); + void setVnicDeviceId(const std::string& value); + + /// + /// 绑定实例port对应的实例所有者 + /// + + std::string getVnicDeviceOwner() const; + bool vnicDeviceOwnerIsSet() const; + void unsetvnicDeviceOwner(); + void setVnicDeviceOwner(const std::string& value); + + /// + /// 绑定实例port对应的实例所有者的前缀 + /// + + std::string getVnicDeviceOwnerPrefixlike() const; + bool vnicDeviceOwnerPrefixlikeIsSet() const; + void unsetvnicDeviceOwnerPrefixlike(); + void setVnicDeviceOwnerPrefixlike(const std::string& value); + + /// + /// 绑定实例port对应的实例类型 + /// + + std::string getVnicInstanceType() const; + bool vnicInstanceTypeIsSet() const; + void unsetvnicInstanceType(); + void setVnicInstanceType(const std::string& value); + + /// + /// 绑定实例port对应的实例id + /// + + std::string getVnicInstanceId() const; + bool vnicInstanceIdIsSet() const; + void unsetvnicInstanceId(); + void setVnicInstanceId(const std::string& value); + + /// + /// 排序,形式为\"sort_key=geip_id&sort_dir=asc\" 支持字段:geip_id/version/public_border_group/ geip_ip_address/created_at/updated_at + /// + + std::string getSortKey() const; + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::string& value); + + /// + /// 排序方向 取值范围:asc、desc + /// + + std::string getSortDir() const; + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::string& value); + + /// + /// 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + +protected: + std::string fields_; + bool fieldsIsSet_; + std::string geipId_; + bool geipIdIsSet_; + std::string geipIpAddress_; + bool geipIpAddressIsSet_; + std::string publicBorderGroup_; + bool publicBorderGroupIsSet_; + std::string instanceType_; + bool instanceTypeIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string instanceVpcId_; + bool instanceVpcIdIsSet_; + std::string gcbandwidthId_; + bool gcbandwidthIdIsSet_; + std::string gcbandwidthAdminStatus_; + bool gcbandwidthAdminStatusIsSet_; + int32_t gcbandwidthSize_; + bool gcbandwidthSizeIsSet_; + std::string gcbandwidthSlaLevel_; + bool gcbandwidthSlaLevelIsSet_; + int32_t gcbandwidthDscp_; + bool gcbandwidthDscpIsSet_; + std::string vnicPrivateIpAddress_; + bool vnicPrivateIpAddressIsSet_; + std::string vnicVpcId_; + bool vnicVpcIdIsSet_; + std::string vnicPortId_; + bool vnicPortIdIsSet_; + std::string vnicDeviceId_; + bool vnicDeviceIdIsSet_; + std::string vnicDeviceOwner_; + bool vnicDeviceOwnerIsSet_; + std::string vnicDeviceOwnerPrefixlike_; + bool vnicDeviceOwnerPrefixlikeIsSet_; + std::string vnicInstanceType_; + bool vnicInstanceTypeIsSet_; + std::string vnicInstanceId_; + bool vnicInstanceIdIsSet_; + std::string sortKey_; + bool sortKeyIsSet_; + std::string sortDir_; + bool sortDirIsSet_; + int32_t limit_; + bool limitIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListProjectGeipBindingsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_ListProjectGeipBindingsRequest_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/ListProjectGeipBindingsResponse.h b/eip/include/huaweicloud/eip/v3/model/ListProjectGeipBindingsResponse.h new file mode 100644 index 000000000..69b2ca13a --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/ListProjectGeipBindingsResponse.h @@ -0,0 +1,80 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_ListProjectGeipBindingsResponse_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_ListProjectGeipBindingsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT ListProjectGeipBindingsResponse + : public ModelBase, public HttpResponse +{ +public: + ListProjectGeipBindingsResponse(); + virtual ~ListProjectGeipBindingsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListProjectGeipBindingsResponse members + + /// + /// geip绑定关系对象 + /// + + std::vector& getGeipBindings(); + bool geipBindingsIsSet() const; + void unsetgeipBindings(); + void setGeipBindings(const std::vector& value); + + /// + /// 本次请求编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + +protected: + std::vector geipBindings_; + bool geipBindingsIsSet_; + std::string requestId_; + bool requestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_ListProjectGeipBindingsResponse_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/ListTenantVpcIgwsRequest.h b/eip/include/huaweicloud/eip/v3/model/ListTenantVpcIgwsRequest.h new file mode 100644 index 000000000..07876dd7b --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/ListTenantVpcIgwsRequest.h @@ -0,0 +1,137 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_ListTenantVpcIgwsRequest_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_ListTenantVpcIgwsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT ListTenantVpcIgwsRequest + : public ModelBase +{ +public: + ListTenantVpcIgwsRequest(); + virtual ~ListTenantVpcIgwsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListTenantVpcIgwsRequest members + + /// + /// 形式为\\\"fields=id&fields=project_id&...\\\",支持字段:id/project_id/vpc_id/created_at/updated_at/name + /// + + std::string getFields() const; + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::string& value); + + /// + /// 虚拟IGW的uuid + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 虚拟igw所在的vpcid + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 虚拟igw的名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 排序,形式为\"sort_key=i2a_id&sort_dir=asc\" 支持字段:id/created_at/updated_at + /// + + std::string getSortKey() const; + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::string& value); + + /// + /// 排序方向 取值范围:asc、desc + /// + + std::string getSortDir() const; + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::string& value); + + /// + /// 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + +protected: + std::string fields_; + bool fieldsIsSet_; + std::string id_; + bool idIsSet_; + std::string vpcId_; + bool vpcIdIsSet_; + std::string name_; + bool nameIsSet_; + std::string sortKey_; + bool sortKeyIsSet_; + std::string sortDir_; + bool sortDirIsSet_; + int32_t limit_; + bool limitIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListTenantVpcIgwsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_ListTenantVpcIgwsRequest_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/ListTenantVpcIgwsResponse.h b/eip/include/huaweicloud/eip/v3/model/ListTenantVpcIgwsResponse.h new file mode 100644 index 000000000..f1b3a4de4 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/ListTenantVpcIgwsResponse.h @@ -0,0 +1,80 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_ListTenantVpcIgwsResponse_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_ListTenantVpcIgwsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT ListTenantVpcIgwsResponse + : public ModelBase, public HttpResponse +{ +public: + ListTenantVpcIgwsResponse(); + virtual ~ListTenantVpcIgwsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListTenantVpcIgwsResponse members + + /// + /// 虚拟IGW列表对象 + /// + + std::vector& getVpcIgws(); + bool vpcIgwsIsSet() const; + void unsetvpcIgws(); + void setVpcIgws(const std::vector& value); + + /// + /// 本次请求编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + +protected: + std::vector vpcIgws_; + bool vpcIgwsIsSet_; + std::string requestId_; + bool requestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_ListTenantVpcIgwsResponse_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/NexthopDict.h b/eip/include/huaweicloud/eip/v3/model/NexthopDict.h new file mode 100644 index 000000000..0f12ce512 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/NexthopDict.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_NexthopDict_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_NexthopDict_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 下一跳对象 +/// +class HUAWEICLOUD_EIP_V3_EXPORT NexthopDict + : public ModelBase +{ +public: + NexthopDict(); + virtual ~NexthopDict(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// NexthopDict members + + /// + /// 功能说明:下一跳的实际地址 约束:同一virtualnexthop中的nexthops列表,不同下一跳之间的地址不允许重复 + /// + + std::string getIpAddress() const; + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::string& value); + + /// + /// 功能说明:标识主备模式,与virtualnexthop的forward_mode配合使用 取值范围:'ACTIVE'主、'STANDBY'备 + /// + + std::string getMode() const; + bool modeIsSet() const; + void unsetmode(); + void setMode(const std::string& value); + + +protected: + std::string ipAddress_; + bool ipAddressIsSet_; + std::string mode_; + bool modeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_NexthopDict_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/ShowInternalVpcIgwRequest.h b/eip/include/huaweicloud/eip/v3/model/ShowInternalVpcIgwRequest.h new file mode 100644 index 000000000..b7b850eb3 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/ShowInternalVpcIgwRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_ShowInternalVpcIgwRequest_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_ShowInternalVpcIgwRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT ShowInternalVpcIgwRequest + : public ModelBase +{ +public: + ShowInternalVpcIgwRequest(); + virtual ~ShowInternalVpcIgwRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowInternalVpcIgwRequest members + + /// + /// 形式为\\\"fields=id&fields=project_id&...\\\",支持字段:id/project_id/vpc_id/created_at/updated_at/igw_cluster + /// + + std::string getFields() const; + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::string& value); + + /// + /// 虚拟igw的uuid + /// + + std::string getVpcIgwId() const; + bool vpcIgwIdIsSet() const; + void unsetvpcIgwId(); + void setVpcIgwId(const std::string& value); + + +protected: + std::string fields_; + bool fieldsIsSet_; + std::string vpcIgwId_; + bool vpcIgwIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowInternalVpcIgwRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_ShowInternalVpcIgwRequest_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/ShowInternalVpcIgwResponse.h b/eip/include/huaweicloud/eip/v3/model/ShowInternalVpcIgwResponse.h new file mode 100644 index 000000000..64cfdaa9f --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/ShowInternalVpcIgwResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_ShowInternalVpcIgwResponse_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_ShowInternalVpcIgwResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT ShowInternalVpcIgwResponse + : public ModelBase, public HttpResponse +{ +public: + ShowInternalVpcIgwResponse(); + virtual ~ShowInternalVpcIgwResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowInternalVpcIgwResponse members + + /// + /// + /// + + VpcIgwsTenantResp getVpcIgw() const; + bool vpcIgwIsSet() const; + void unsetvpcIgw(); + void setVpcIgw(const VpcIgwsTenantResp& value); + + /// + /// 本次请求编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + +protected: + VpcIgwsTenantResp vpcIgw_; + bool vpcIgwIsSet_; + std::string requestId_; + bool requestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_ShowInternalVpcIgwResponse_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequest.h b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequest.h new file mode 100644 index 000000000..e951698cc --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequest_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT UpdateTenantVpcIgwRequest + : public ModelBase +{ +public: + UpdateTenantVpcIgwRequest(); + virtual ~UpdateTenantVpcIgwRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateTenantVpcIgwRequest members + + /// + /// 形式为\\\"fields=id&fields=project_id&...\\\",支持字段:id/project_id/vpc_id/created_at/updated_at/name + /// + + std::string getFields() const; + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::string& value); + + /// + /// vpc-igw的uuid + /// + + std::string getVpcIgwId() const; + bool vpcIgwIdIsSet() const; + void unsetvpcIgwId(); + void setVpcIgwId(const std::string& value); + + /// + /// + /// + + UpdateTenantVpcIgwRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateTenantVpcIgwRequestBody& value); + + +protected: + std::string fields_; + bool fieldsIsSet_; + std::string vpcIgwId_; + bool vpcIgwIdIsSet_; + UpdateTenantVpcIgwRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateTenantVpcIgwRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequest_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody.h b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody.h new file mode 100644 index 000000000..3a3dd058a --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequestBody_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 修改虚拟IGW的请求体 +/// +class HUAWEICLOUD_EIP_V3_EXPORT UpdateTenantVpcIgwRequestBody + : public ModelBase +{ +public: + UpdateTenantVpcIgwRequestBody(); + virtual ~UpdateTenantVpcIgwRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateTenantVpcIgwRequestBody members + + /// + /// + /// + + UpdateTenantVpcIgwRequestBody_vpc_igw getVpcIgw() const; + bool vpcIgwIsSet() const; + void unsetvpcIgw(); + void setVpcIgw(const UpdateTenantVpcIgwRequestBody_vpc_igw& value); + + +protected: + UpdateTenantVpcIgwRequestBody_vpc_igw vpcIgw_; + bool vpcIgwIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequestBody_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody_vpc_igw.h b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody_vpc_igw.h new file mode 100644 index 000000000..5a92bf199 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody_vpc_igw.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequestBody_vpc_igw_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequestBody_vpc_igw_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 修改虚拟IGW的请求体 +/// +class HUAWEICLOUD_EIP_V3_EXPORT UpdateTenantVpcIgwRequestBody_vpc_igw + : public ModelBase +{ +public: + UpdateTenantVpcIgwRequestBody_vpc_igw(); + virtual ~UpdateTenantVpcIgwRequestBody_vpc_igw(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateTenantVpcIgwRequestBody_vpc_igw members + + /// + /// 虚拟IGW的名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 是否使能ipv6 + /// + + bool isEnableIpv6() const; + bool enableIpv6IsSet() const; + void unsetenableIpv6(); + void setEnableIpv6(bool value); + + +protected: + std::string name_; + bool nameIsSet_; + bool enableIpv6_; + bool enableIpv6IsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwRequestBody_vpc_igw_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwResponse.h b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwResponse.h new file mode 100644 index 000000000..a7246a607 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/UpdateTenantVpcIgwResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwResponse_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_EIP_V3_EXPORT UpdateTenantVpcIgwResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateTenantVpcIgwResponse(); + virtual ~UpdateTenantVpcIgwResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateTenantVpcIgwResponse members + + /// + /// + /// + + VpcIgwsTenantResp getVpcIgw() const; + bool vpcIgwIsSet() const; + void unsetvpcIgw(); + void setVpcIgw(const VpcIgwsTenantResp& value); + + /// + /// 本次请求编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + +protected: + VpcIgwsTenantResp vpcIgw_; + bool vpcIgwIsSet_; + std::string requestId_; + bool requestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_UpdateTenantVpcIgwResponse_H_ diff --git a/eip/include/huaweicloud/eip/v3/model/VpcIgwsTenantResp.h b/eip/include/huaweicloud/eip/v3/model/VpcIgwsTenantResp.h new file mode 100644 index 000000000..799887e42 --- /dev/null +++ b/eip/include/huaweicloud/eip/v3/model/VpcIgwsTenantResp.h @@ -0,0 +1,141 @@ + +#ifndef HUAWEICLOUD_SDK_EIP_V3_MODEL_VpcIgwsTenantResp_H_ +#define HUAWEICLOUD_SDK_EIP_V3_MODEL_VpcIgwsTenantResp_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 虚拟IGW对象 +/// +class HUAWEICLOUD_EIP_V3_EXPORT VpcIgwsTenantResp + : public ModelBase +{ +public: + VpcIgwsTenantResp(); + virtual ~VpcIgwsTenantResp(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// VpcIgwsTenantResp members + + /// + /// 虚拟IGW的uuid + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 虚拟IGW的租户id + /// + + std::string getProjectId() const; + bool projectIdIsSet() const; + void unsetprojectId(); + void setProjectId(const std::string& value); + + /// + /// 虚拟IGW的vpcid + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 虚拟IGW的名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 创建时间 + /// + + std::string getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const std::string& value); + + /// + /// 更新时间 + /// + + std::string getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const std::string& value); + + /// + /// 创建IGW使用的VPC具体子网 + /// + + std::string getNetworkId() const; + bool networkIdIsSet() const; + void unsetnetworkId(); + void setNetworkId(const std::string& value); + + /// + /// 是否使能IPV6 + /// + + bool isEnableIpv6() const; + bool enableIpv6IsSet() const; + void unsetenableIpv6(); + void setEnableIpv6(bool value); + + +protected: + std::string id_; + bool idIsSet_; + std::string projectId_; + bool projectIdIsSet_; + std::string vpcId_; + bool vpcIdIsSet_; + std::string name_; + bool nameIsSet_; + std::string createdAt_; + bool createdAtIsSet_; + std::string updatedAt_; + bool updatedAtIsSet_; + std::string networkId_; + bool networkIdIsSet_; + bool enableIpv6_; + bool enableIpv6IsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EIP_V3_MODEL_VpcIgwsTenantResp_H_ diff --git a/eip/src/v3/EipClient.cpp b/eip/src/v3/EipClient.cpp index bcacd8001..6ae2a86df 100644 --- a/eip/src/v3/EipClient.cpp +++ b/eip/src/v3/EipClient.cpp @@ -472,6 +472,306 @@ std::shared_ptr EipClient::showPublicipPool(ShowPublic return localVarResult; } +std::shared_ptr EipClient::listProjectGeipBindings(ListProjectGeipBindingsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/geip/bindings"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.geipIdIsSet()) { + localVarQueryParams["geip_id"] = parameterToString(request.getGeipId()); + } + if (request.geipIpAddressIsSet()) { + localVarQueryParams["geip_ip_address"] = parameterToString(request.getGeipIpAddress()); + } + if (request.publicBorderGroupIsSet()) { + localVarQueryParams["public_border_group"] = parameterToString(request.getPublicBorderGroup()); + } + if (request.instanceTypeIsSet()) { + localVarQueryParams["instance_type"] = parameterToString(request.getInstanceType()); + } + if (request.instanceIdIsSet()) { + localVarQueryParams["instance_id"] = parameterToString(request.getInstanceId()); + } + if (request.instanceVpcIdIsSet()) { + localVarQueryParams["instance_vpc_id"] = parameterToString(request.getInstanceVpcId()); + } + if (request.gcbandwidthPeriodidIsSet()) { + localVarQueryParams["gcbandwidth.id"] = parameterToString(request.getGcbandwidthPeriodid()); + } + if (request.gcbandwidthPeriodadminStatusIsSet()) { + localVarQueryParams["gcbandwidth.admin_status"] = parameterToString(request.getGcbandwidthPeriodadminStatus()); + } + if (request.gcbandwidthPeriodsizeIsSet()) { + localVarQueryParams["gcbandwidth.size"] = parameterToString(request.getGcbandwidthPeriodsize()); + } + if (request.gcbandwidthPeriodslaLevelIsSet()) { + localVarQueryParams["gcbandwidth.sla_level"] = parameterToString(request.getGcbandwidthPeriodslaLevel()); + } + if (request.gcbandwidthPerioddscpIsSet()) { + localVarQueryParams["gcbandwidth.dscp"] = parameterToString(request.getGcbandwidthPerioddscp()); + } + if (request.vnicPeriodprivateIpAddressIsSet()) { + localVarQueryParams["vnic.private_ip_address"] = parameterToString(request.getVnicPeriodprivateIpAddress()); + } + if (request.vnicPeriodvpcIdIsSet()) { + localVarQueryParams["vnic.vpc_id"] = parameterToString(request.getVnicPeriodvpcId()); + } + if (request.vnicPeriodportIdIsSet()) { + localVarQueryParams["vnic.port_id"] = parameterToString(request.getVnicPeriodportId()); + } + if (request.vnicPerioddeviceIdIsSet()) { + localVarQueryParams["vnic.device_id"] = parameterToString(request.getVnicPerioddeviceId()); + } + if (request.vnicPerioddeviceOwnerIsSet()) { + localVarQueryParams["vnic.device_owner"] = parameterToString(request.getVnicPerioddeviceOwner()); + } + if (request.vnicPerioddeviceOwnerPrefixlikeIsSet()) { + localVarQueryParams["vnic.device_owner_prefixlike"] = parameterToString(request.getVnicPerioddeviceOwnerPrefixlike()); + } + if (request.vnicPeriodinstanceTypeIsSet()) { + localVarQueryParams["vnic.instance_type"] = parameterToString(request.getVnicPeriodinstanceType()); + } + if (request.vnicPeriodinstanceIdIsSet()) { + localVarQueryParams["vnic.instance_id"] = parameterToString(request.getVnicPeriodinstanceId()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, EipMeta::genRequestDefForListProjectGeipBindings()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr EipClient::createTenantVpcIgw(CreateTenantVpcIgwRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/geip/vpc-igws"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, EipMeta::genRequestDefForCreateTenantVpcIgw()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr EipClient::deleteTenantVpcIgw(DeleteTenantVpcIgwRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/geip/vpc-igws/{vpc_igw_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["vpc_igw_id"] = parameterToString(request.getVpcIgwId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, EipMeta::genRequestDefForDeleteTenantVpcIgw()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr EipClient::listTenantVpcIgws(ListTenantVpcIgwsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/geip/vpc-igws"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.vpcIdIsSet()) { + localVarQueryParams["vpc_id"] = parameterToString(request.getVpcId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, EipMeta::genRequestDefForListTenantVpcIgws()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr EipClient::showInternalVpcIgw(ShowInternalVpcIgwRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/geip/vpc-igws/{vpc_igw_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["vpc_igw_id"] = parameterToString(request.getVpcIgwId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, EipMeta::genRequestDefForShowInternalVpcIgw()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr EipClient::updateTenantVpcIgw(UpdateTenantVpcIgwRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/geip/vpc-igws/{vpc_igw_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["vpc_igw_id"] = parameterToString(request.getVpcIgwId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, EipMeta::genRequestDefForUpdateTenantVpcIgw()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} std::shared_ptr EipClient::associatePublicips(AssociatePublicipsRequest &request) { std::string localVarPath = "/v3/{project_id}/eip/publicips/{publicip_id}/associate-instance"; diff --git a/eip/src/v3/EipMeta.cpp b/eip/src/v3/EipMeta.cpp index de0b4e602..1f5154162 100644 --- a/eip/src/v3/EipMeta.cpp +++ b/eip/src/v3/EipMeta.cpp @@ -255,6 +255,143 @@ HttpRequestDef EipMeta::genRequestDefForShowPublicipPool() { return reqDefBuilder; } +HttpRequestDef EipMeta::genRequestDefForListProjectGeipBindings() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GeipId") + .withJsonTag("geip_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GeipIpAddress") + .withJsonTag("geip_ip_address") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PublicBorderGroup") + .withJsonTag("public_border_group") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InstanceType") + .withJsonTag("instance_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InstanceId") + .withJsonTag("instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InstanceVpcId") + .withJsonTag("instance_vpc_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GcbandwidthPeriodid") + .withJsonTag("gcbandwidth.id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GcbandwidthPeriodadminStatus") + .withJsonTag("gcbandwidth.admin_status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GcbandwidthPeriodsize") + .withJsonTag("gcbandwidth.size") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GcbandwidthPeriodslaLevel") + .withJsonTag("gcbandwidth.sla_level") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GcbandwidthPerioddscp") + .withJsonTag("gcbandwidth.dscp") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPeriodprivateIpAddress") + .withJsonTag("vnic.private_ip_address") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPeriodvpcId") + .withJsonTag("vnic.vpc_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPeriodportId") + .withJsonTag("vnic.port_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPerioddeviceId") + .withJsonTag("vnic.device_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPerioddeviceOwner") + .withJsonTag("vnic.device_owner") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPerioddeviceOwnerPrefixlike") + .withJsonTag("vnic.device_owner_prefixlike") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPeriodinstanceType") + .withJsonTag("vnic.instance_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VnicPeriodinstanceId") + .withJsonTag("vnic.instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef EipMeta::genRequestDefForCreateTenantVpcIgw() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef EipMeta::genRequestDefForDeleteTenantVpcIgw() { + HttpRequestDef reqDefBuilder; + return reqDefBuilder; +} + +HttpRequestDef EipMeta::genRequestDefForListTenantVpcIgws() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VpcId") + .withJsonTag("vpc_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef EipMeta::genRequestDefForShowInternalVpcIgw() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef EipMeta::genRequestDefForUpdateTenantVpcIgw() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef EipMeta::genRequestDefForAssociatePublicips() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; diff --git a/eip/src/v3/model/CreateTenantVpcIgwRequest.cpp b/eip/src/v3/model/CreateTenantVpcIgwRequest.cpp new file mode 100644 index 000000000..f08a75fe7 --- /dev/null +++ b/eip/src/v3/model/CreateTenantVpcIgwRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/eip/v3/model/CreateTenantVpcIgwRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +CreateTenantVpcIgwRequest::CreateTenantVpcIgwRequest() +{ + fields_ = ""; + fieldsIsSet_ = false; + bodyIsSet_ = false; +} + +CreateTenantVpcIgwRequest::~CreateTenantVpcIgwRequest() = default; + +void CreateTenantVpcIgwRequest::validate() +{ +} + +web::json::value CreateTenantVpcIgwRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateTenantVpcIgwRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateTenantVpcIgwRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateTenantVpcIgwRequest::getFields() const +{ + return fields_; +} + +void CreateTenantVpcIgwRequest::setFields(const std::string& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool CreateTenantVpcIgwRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void CreateTenantVpcIgwRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +CreateTenantVpcIgwRequestBody CreateTenantVpcIgwRequest::getBody() const +{ + return body_; +} + +void CreateTenantVpcIgwRequest::setBody(const CreateTenantVpcIgwRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateTenantVpcIgwRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateTenantVpcIgwRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/CreateTenantVpcIgwRequestBody.cpp b/eip/src/v3/model/CreateTenantVpcIgwRequestBody.cpp new file mode 100644 index 000000000..6df7fe51c --- /dev/null +++ b/eip/src/v3/model/CreateTenantVpcIgwRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +CreateTenantVpcIgwRequestBody::CreateTenantVpcIgwRequestBody() +{ + vpcIgwIsSet_ = false; +} + +CreateTenantVpcIgwRequestBody::~CreateTenantVpcIgwRequestBody() = default; + +void CreateTenantVpcIgwRequestBody::validate() +{ +} + +web::json::value CreateTenantVpcIgwRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIgwIsSet_) { + val[utility::conversions::to_string_t("vpc_igw")] = ModelBase::toJson(vpcIgw_); + } + + return val; +} +bool CreateTenantVpcIgwRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_igw"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw")); + if(!fieldValue.is_null()) + { + CreateTenantVpcIgwRequestBody_vpc_igw refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgw(refVal); + } + } + return ok; +} + + +CreateTenantVpcIgwRequestBody_vpc_igw CreateTenantVpcIgwRequestBody::getVpcIgw() const +{ + return vpcIgw_; +} + +void CreateTenantVpcIgwRequestBody::setVpcIgw(const CreateTenantVpcIgwRequestBody_vpc_igw& value) +{ + vpcIgw_ = value; + vpcIgwIsSet_ = true; +} + +bool CreateTenantVpcIgwRequestBody::vpcIgwIsSet() const +{ + return vpcIgwIsSet_; +} + +void CreateTenantVpcIgwRequestBody::unsetvpcIgw() +{ + vpcIgwIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/CreateTenantVpcIgwRequestBody_vpc_igw.cpp b/eip/src/v3/model/CreateTenantVpcIgwRequestBody_vpc_igw.cpp new file mode 100644 index 000000000..46e7e725d --- /dev/null +++ b/eip/src/v3/model/CreateTenantVpcIgwRequestBody_vpc_igw.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/eip/v3/model/CreateTenantVpcIgwRequestBody_vpc_igw.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +CreateTenantVpcIgwRequestBody_vpc_igw::CreateTenantVpcIgwRequestBody_vpc_igw() +{ + vpcId_ = ""; + vpcIdIsSet_ = false; + networkId_ = ""; + networkIdIsSet_ = false; + addRoute_ = false; + addRouteIsSet_ = false; + enableIpv6_ = false; + enableIpv6IsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +CreateTenantVpcIgwRequestBody_vpc_igw::~CreateTenantVpcIgwRequestBody_vpc_igw() = default; + +void CreateTenantVpcIgwRequestBody_vpc_igw::validate() +{ +} + +web::json::value CreateTenantVpcIgwRequestBody_vpc_igw::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(networkIdIsSet_) { + val[utility::conversions::to_string_t("network_id")] = ModelBase::toJson(networkId_); + } + if(addRouteIsSet_) { + val[utility::conversions::to_string_t("add_route")] = ModelBase::toJson(addRoute_); + } + if(enableIpv6IsSet_) { + val[utility::conversions::to_string_t("enable_ipv6")] = ModelBase::toJson(enableIpv6_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + + return val; +} +bool CreateTenantVpcIgwRequestBody_vpc_igw::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("network_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("network_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNetworkId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("add_route"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("add_route")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddRoute(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enable_ipv6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enable_ipv6")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnableIpv6(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + return ok; +} + + +std::string CreateTenantVpcIgwRequestBody_vpc_igw::getVpcId() const +{ + return vpcId_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool CreateTenantVpcIgwRequestBody_vpc_igw::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::string CreateTenantVpcIgwRequestBody_vpc_igw::getNetworkId() const +{ + return networkId_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::setNetworkId(const std::string& value) +{ + networkId_ = value; + networkIdIsSet_ = true; +} + +bool CreateTenantVpcIgwRequestBody_vpc_igw::networkIdIsSet() const +{ + return networkIdIsSet_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::unsetnetworkId() +{ + networkIdIsSet_ = false; +} + +bool CreateTenantVpcIgwRequestBody_vpc_igw::isAddRoute() const +{ + return addRoute_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::setAddRoute(bool value) +{ + addRoute_ = value; + addRouteIsSet_ = true; +} + +bool CreateTenantVpcIgwRequestBody_vpc_igw::addRouteIsSet() const +{ + return addRouteIsSet_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::unsetaddRoute() +{ + addRouteIsSet_ = false; +} + +bool CreateTenantVpcIgwRequestBody_vpc_igw::isEnableIpv6() const +{ + return enableIpv6_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::setEnableIpv6(bool value) +{ + enableIpv6_ = value; + enableIpv6IsSet_ = true; +} + +bool CreateTenantVpcIgwRequestBody_vpc_igw::enableIpv6IsSet() const +{ + return enableIpv6IsSet_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::unsetenableIpv6() +{ + enableIpv6IsSet_ = false; +} + +std::string CreateTenantVpcIgwRequestBody_vpc_igw::getName() const +{ + return name_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateTenantVpcIgwRequestBody_vpc_igw::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateTenantVpcIgwRequestBody_vpc_igw::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/CreateTenantVpcIgwResponse.cpp b/eip/src/v3/model/CreateTenantVpcIgwResponse.cpp new file mode 100644 index 000000000..1b1731f46 --- /dev/null +++ b/eip/src/v3/model/CreateTenantVpcIgwResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/eip/v3/model/CreateTenantVpcIgwResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +CreateTenantVpcIgwResponse::CreateTenantVpcIgwResponse() +{ + vpcIgwIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; +} + +CreateTenantVpcIgwResponse::~CreateTenantVpcIgwResponse() = default; + +void CreateTenantVpcIgwResponse::validate() +{ +} + +web::json::value CreateTenantVpcIgwResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIgwIsSet_) { + val[utility::conversions::to_string_t("vpc_igw")] = ModelBase::toJson(vpcIgw_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + + return val; +} +bool CreateTenantVpcIgwResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_igw"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw")); + if(!fieldValue.is_null()) + { + VpcIgwsTenantResp refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgw(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + return ok; +} + + +VpcIgwsTenantResp CreateTenantVpcIgwResponse::getVpcIgw() const +{ + return vpcIgw_; +} + +void CreateTenantVpcIgwResponse::setVpcIgw(const VpcIgwsTenantResp& value) +{ + vpcIgw_ = value; + vpcIgwIsSet_ = true; +} + +bool CreateTenantVpcIgwResponse::vpcIgwIsSet() const +{ + return vpcIgwIsSet_; +} + +void CreateTenantVpcIgwResponse::unsetvpcIgw() +{ + vpcIgwIsSet_ = false; +} + +std::string CreateTenantVpcIgwResponse::getRequestId() const +{ + return requestId_; +} + +void CreateTenantVpcIgwResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool CreateTenantVpcIgwResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void CreateTenantVpcIgwResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/DeleteTenantVpcIgwRequest.cpp b/eip/src/v3/model/DeleteTenantVpcIgwRequest.cpp new file mode 100644 index 000000000..485f41511 --- /dev/null +++ b/eip/src/v3/model/DeleteTenantVpcIgwRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/eip/v3/model/DeleteTenantVpcIgwRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +DeleteTenantVpcIgwRequest::DeleteTenantVpcIgwRequest() +{ + vpcIgwId_ = ""; + vpcIgwIdIsSet_ = false; +} + +DeleteTenantVpcIgwRequest::~DeleteTenantVpcIgwRequest() = default; + +void DeleteTenantVpcIgwRequest::validate() +{ +} + +web::json::value DeleteTenantVpcIgwRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIgwIdIsSet_) { + val[utility::conversions::to_string_t("vpc_igw_id")] = ModelBase::toJson(vpcIgwId_); + } + + return val; +} +bool DeleteTenantVpcIgwRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_igw_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgwId(refVal); + } + } + return ok; +} + + +std::string DeleteTenantVpcIgwRequest::getVpcIgwId() const +{ + return vpcIgwId_; +} + +void DeleteTenantVpcIgwRequest::setVpcIgwId(const std::string& value) +{ + vpcIgwId_ = value; + vpcIgwIdIsSet_ = true; +} + +bool DeleteTenantVpcIgwRequest::vpcIgwIdIsSet() const +{ + return vpcIgwIdIsSet_; +} + +void DeleteTenantVpcIgwRequest::unsetvpcIgwId() +{ + vpcIgwIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/DeleteTenantVpcIgwResponse.cpp b/eip/src/v3/model/DeleteTenantVpcIgwResponse.cpp new file mode 100644 index 000000000..d058328cb --- /dev/null +++ b/eip/src/v3/model/DeleteTenantVpcIgwResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/eip/v3/model/DeleteTenantVpcIgwResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +DeleteTenantVpcIgwResponse::DeleteTenantVpcIgwResponse() +{ +} + +DeleteTenantVpcIgwResponse::~DeleteTenantVpcIgwResponse() = default; + +void DeleteTenantVpcIgwResponse::validate() +{ +} + +web::json::value DeleteTenantVpcIgwResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool DeleteTenantVpcIgwResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/eip/src/v3/model/GeipBindingsInternalResp.cpp b/eip/src/v3/model/GeipBindingsInternalResp.cpp new file mode 100644 index 000000000..1b0a33153 --- /dev/null +++ b/eip/src/v3/model/GeipBindingsInternalResp.cpp @@ -0,0 +1,391 @@ + + +#include "huaweicloud/eip/v3/model/GeipBindingsInternalResp.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +GeipBindingsInternalResp::GeipBindingsInternalResp() +{ + geipId_ = ""; + geipIdIsSet_ = false; + geipIpAddress_ = ""; + geipIpAddressIsSet_ = false; + publicBorderGroup_ = ""; + publicBorderGroupIsSet_ = false; + createdAt_ = ""; + createdAtIsSet_ = false; + updatedAt_ = ""; + updatedAtIsSet_ = false; + bindingInstanceType_ = ""; + bindingInstanceTypeIsSet_ = false; + bindingInstanceId_ = ""; + bindingInstanceIdIsSet_ = false; + gcbandwidthIsSet_ = false; + vnicIsSet_ = false; + vnListIsSet_ = false; +} + +GeipBindingsInternalResp::~GeipBindingsInternalResp() = default; + +void GeipBindingsInternalResp::validate() +{ +} + +web::json::value GeipBindingsInternalResp::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(geipIdIsSet_) { + val[utility::conversions::to_string_t("geip_id")] = ModelBase::toJson(geipId_); + } + if(geipIpAddressIsSet_) { + val[utility::conversions::to_string_t("geip_ip_address")] = ModelBase::toJson(geipIpAddress_); + } + if(publicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("public_border_group")] = ModelBase::toJson(publicBorderGroup_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(bindingInstanceTypeIsSet_) { + val[utility::conversions::to_string_t("binding_instance_type")] = ModelBase::toJson(bindingInstanceType_); + } + if(bindingInstanceIdIsSet_) { + val[utility::conversions::to_string_t("binding_instance_id")] = ModelBase::toJson(bindingInstanceId_); + } + if(gcbandwidthIsSet_) { + val[utility::conversions::to_string_t("gcbandwidth")] = ModelBase::toJson(gcbandwidth_); + } + if(vnicIsSet_) { + val[utility::conversions::to_string_t("vnic")] = ModelBase::toJson(vnic_); + } + if(vnListIsSet_) { + val[utility::conversions::to_string_t("vn_list")] = ModelBase::toJson(vnList_); + } + + return val; +} +bool GeipBindingsInternalResp::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("geip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_border_group")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("binding_instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("binding_instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBindingInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("binding_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("binding_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBindingInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcbandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcbandwidth")); + if(!fieldValue.is_null()) + { + Object refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic")); + if(!fieldValue.is_null()) + { + Object refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnic(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vn_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vn_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnList(refVal); + } + } + return ok; +} + + +std::string GeipBindingsInternalResp::getGeipId() const +{ + return geipId_; +} + +void GeipBindingsInternalResp::setGeipId(const std::string& value) +{ + geipId_ = value; + geipIdIsSet_ = true; +} + +bool GeipBindingsInternalResp::geipIdIsSet() const +{ + return geipIdIsSet_; +} + +void GeipBindingsInternalResp::unsetgeipId() +{ + geipIdIsSet_ = false; +} + +std::string GeipBindingsInternalResp::getGeipIpAddress() const +{ + return geipIpAddress_; +} + +void GeipBindingsInternalResp::setGeipIpAddress(const std::string& value) +{ + geipIpAddress_ = value; + geipIpAddressIsSet_ = true; +} + +bool GeipBindingsInternalResp::geipIpAddressIsSet() const +{ + return geipIpAddressIsSet_; +} + +void GeipBindingsInternalResp::unsetgeipIpAddress() +{ + geipIpAddressIsSet_ = false; +} + +std::string GeipBindingsInternalResp::getPublicBorderGroup() const +{ + return publicBorderGroup_; +} + +void GeipBindingsInternalResp::setPublicBorderGroup(const std::string& value) +{ + publicBorderGroup_ = value; + publicBorderGroupIsSet_ = true; +} + +bool GeipBindingsInternalResp::publicBorderGroupIsSet() const +{ + return publicBorderGroupIsSet_; +} + +void GeipBindingsInternalResp::unsetpublicBorderGroup() +{ + publicBorderGroupIsSet_ = false; +} + +std::string GeipBindingsInternalResp::getCreatedAt() const +{ + return createdAt_; +} + +void GeipBindingsInternalResp::setCreatedAt(const std::string& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool GeipBindingsInternalResp::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void GeipBindingsInternalResp::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +std::string GeipBindingsInternalResp::getUpdatedAt() const +{ + return updatedAt_; +} + +void GeipBindingsInternalResp::setUpdatedAt(const std::string& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool GeipBindingsInternalResp::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void GeipBindingsInternalResp::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +std::string GeipBindingsInternalResp::getBindingInstanceType() const +{ + return bindingInstanceType_; +} + +void GeipBindingsInternalResp::setBindingInstanceType(const std::string& value) +{ + bindingInstanceType_ = value; + bindingInstanceTypeIsSet_ = true; +} + +bool GeipBindingsInternalResp::bindingInstanceTypeIsSet() const +{ + return bindingInstanceTypeIsSet_; +} + +void GeipBindingsInternalResp::unsetbindingInstanceType() +{ + bindingInstanceTypeIsSet_ = false; +} + +std::string GeipBindingsInternalResp::getBindingInstanceId() const +{ + return bindingInstanceId_; +} + +void GeipBindingsInternalResp::setBindingInstanceId(const std::string& value) +{ + bindingInstanceId_ = value; + bindingInstanceIdIsSet_ = true; +} + +bool GeipBindingsInternalResp::bindingInstanceIdIsSet() const +{ + return bindingInstanceIdIsSet_; +} + +void GeipBindingsInternalResp::unsetbindingInstanceId() +{ + bindingInstanceIdIsSet_ = false; +} + +Object GeipBindingsInternalResp::getGcbandwidth() const +{ + return gcbandwidth_; +} + +void GeipBindingsInternalResp::setGcbandwidth(const Object& value) +{ + gcbandwidth_ = value; + gcbandwidthIsSet_ = true; +} + +bool GeipBindingsInternalResp::gcbandwidthIsSet() const +{ + return gcbandwidthIsSet_; +} + +void GeipBindingsInternalResp::unsetgcbandwidth() +{ + gcbandwidthIsSet_ = false; +} + +Object GeipBindingsInternalResp::getVnic() const +{ + return vnic_; +} + +void GeipBindingsInternalResp::setVnic(const Object& value) +{ + vnic_ = value; + vnicIsSet_ = true; +} + +bool GeipBindingsInternalResp::vnicIsSet() const +{ + return vnicIsSet_; +} + +void GeipBindingsInternalResp::unsetvnic() +{ + vnicIsSet_ = false; +} + +std::vector& GeipBindingsInternalResp::getVnList() +{ + return vnList_; +} + +void GeipBindingsInternalResp::setVnList(const std::vector& value) +{ + vnList_ = value; + vnListIsSet_ = true; +} + +bool GeipBindingsInternalResp::vnListIsSet() const +{ + return vnListIsSet_; +} + +void GeipBindingsInternalResp::unsetvnList() +{ + vnListIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/InstancevirtualListResp.cpp b/eip/src/v3/model/InstancevirtualListResp.cpp new file mode 100644 index 000000000..d37a85ba7 --- /dev/null +++ b/eip/src/v3/model/InstancevirtualListResp.cpp @@ -0,0 +1,428 @@ + + +#include "huaweicloud/eip/v3/model/InstancevirtualListResp.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +InstancevirtualListResp::InstancevirtualListResp() +{ + id_ = ""; + idIsSet_ = false; + owner_ = ""; + ownerIsSet_ = false; + location_ = ""; + locationIsSet_ = false; + forwardMode_ = ""; + forwardModeIsSet_ = false; + clusterId_ = ""; + clusterIdIsSet_ = false; + hashMode_ = ""; + hashModeIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + vni_ = 0; + vniIsSet_ = false; + nexthopsIsSet_ = false; + createdAt_ = ""; + createdAtIsSet_ = false; + updatedAt_ = ""; + updatedAtIsSet_ = false; +} + +InstancevirtualListResp::~InstancevirtualListResp() = default; + +void InstancevirtualListResp::validate() +{ +} + +web::json::value InstancevirtualListResp::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(ownerIsSet_) { + val[utility::conversions::to_string_t("owner")] = ModelBase::toJson(owner_); + } + if(locationIsSet_) { + val[utility::conversions::to_string_t("location")] = ModelBase::toJson(location_); + } + if(forwardModeIsSet_) { + val[utility::conversions::to_string_t("forward_mode")] = ModelBase::toJson(forwardMode_); + } + if(clusterIdIsSet_) { + val[utility::conversions::to_string_t("cluster_id")] = ModelBase::toJson(clusterId_); + } + if(hashModeIsSet_) { + val[utility::conversions::to_string_t("hash_mode")] = ModelBase::toJson(hashMode_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(vniIsSet_) { + val[utility::conversions::to_string_t("vni")] = ModelBase::toJson(vni_); + } + if(nexthopsIsSet_) { + val[utility::conversions::to_string_t("nexthops")] = ModelBase::toJson(nexthops_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool InstancevirtualListResp::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("owner"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("owner")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOwner(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("location"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("location")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLocation(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("forward_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("forward_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForwardMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cluster_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cluster_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setClusterId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("hash_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hash_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHashMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vni"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vni")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVni(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("nexthops"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("nexthops")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNexthops(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string InstancevirtualListResp::getId() const +{ + return id_; +} + +void InstancevirtualListResp::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool InstancevirtualListResp::idIsSet() const +{ + return idIsSet_; +} + +void InstancevirtualListResp::unsetid() +{ + idIsSet_ = false; +} + +std::string InstancevirtualListResp::getOwner() const +{ + return owner_; +} + +void InstancevirtualListResp::setOwner(const std::string& value) +{ + owner_ = value; + ownerIsSet_ = true; +} + +bool InstancevirtualListResp::ownerIsSet() const +{ + return ownerIsSet_; +} + +void InstancevirtualListResp::unsetowner() +{ + ownerIsSet_ = false; +} + +std::string InstancevirtualListResp::getLocation() const +{ + return location_; +} + +void InstancevirtualListResp::setLocation(const std::string& value) +{ + location_ = value; + locationIsSet_ = true; +} + +bool InstancevirtualListResp::locationIsSet() const +{ + return locationIsSet_; +} + +void InstancevirtualListResp::unsetlocation() +{ + locationIsSet_ = false; +} + +std::string InstancevirtualListResp::getForwardMode() const +{ + return forwardMode_; +} + +void InstancevirtualListResp::setForwardMode(const std::string& value) +{ + forwardMode_ = value; + forwardModeIsSet_ = true; +} + +bool InstancevirtualListResp::forwardModeIsSet() const +{ + return forwardModeIsSet_; +} + +void InstancevirtualListResp::unsetforwardMode() +{ + forwardModeIsSet_ = false; +} + +std::string InstancevirtualListResp::getClusterId() const +{ + return clusterId_; +} + +void InstancevirtualListResp::setClusterId(const std::string& value) +{ + clusterId_ = value; + clusterIdIsSet_ = true; +} + +bool InstancevirtualListResp::clusterIdIsSet() const +{ + return clusterIdIsSet_; +} + +void InstancevirtualListResp::unsetclusterId() +{ + clusterIdIsSet_ = false; +} + +std::string InstancevirtualListResp::getHashMode() const +{ + return hashMode_; +} + +void InstancevirtualListResp::setHashMode(const std::string& value) +{ + hashMode_ = value; + hashModeIsSet_ = true; +} + +bool InstancevirtualListResp::hashModeIsSet() const +{ + return hashModeIsSet_; +} + +void InstancevirtualListResp::unsethashMode() +{ + hashModeIsSet_ = false; +} + +std::string InstancevirtualListResp::getType() const +{ + return type_; +} + +void InstancevirtualListResp::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool InstancevirtualListResp::typeIsSet() const +{ + return typeIsSet_; +} + +void InstancevirtualListResp::unsettype() +{ + typeIsSet_ = false; +} + +int32_t InstancevirtualListResp::getVni() const +{ + return vni_; +} + +void InstancevirtualListResp::setVni(int32_t value) +{ + vni_ = value; + vniIsSet_ = true; +} + +bool InstancevirtualListResp::vniIsSet() const +{ + return vniIsSet_; +} + +void InstancevirtualListResp::unsetvni() +{ + vniIsSet_ = false; +} + +std::vector& InstancevirtualListResp::getNexthops() +{ + return nexthops_; +} + +void InstancevirtualListResp::setNexthops(const std::vector& value) +{ + nexthops_ = value; + nexthopsIsSet_ = true; +} + +bool InstancevirtualListResp::nexthopsIsSet() const +{ + return nexthopsIsSet_; +} + +void InstancevirtualListResp::unsetnexthops() +{ + nexthopsIsSet_ = false; +} + +std::string InstancevirtualListResp::getCreatedAt() const +{ + return createdAt_; +} + +void InstancevirtualListResp::setCreatedAt(const std::string& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool InstancevirtualListResp::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void InstancevirtualListResp::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +std::string InstancevirtualListResp::getUpdatedAt() const +{ + return updatedAt_; +} + +void InstancevirtualListResp::setUpdatedAt(const std::string& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool InstancevirtualListResp::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void InstancevirtualListResp::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/ListProjectGeipBindingsRequest.cpp b/eip/src/v3/model/ListProjectGeipBindingsRequest.cpp new file mode 100644 index 000000000..0a658d372 --- /dev/null +++ b/eip/src/v3/model/ListProjectGeipBindingsRequest.cpp @@ -0,0 +1,849 @@ + + +#include "huaweicloud/eip/v3/model/ListProjectGeipBindingsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +ListProjectGeipBindingsRequest::ListProjectGeipBindingsRequest() +{ + fields_ = ""; + fieldsIsSet_ = false; + geipId_ = ""; + geipIdIsSet_ = false; + geipIpAddress_ = ""; + geipIpAddressIsSet_ = false; + publicBorderGroup_ = ""; + publicBorderGroupIsSet_ = false; + instanceType_ = ""; + instanceTypeIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + instanceVpcId_ = ""; + instanceVpcIdIsSet_ = false; + gcbandwidthId_ = ""; + gcbandwidthIdIsSet_ = false; + gcbandwidthAdminStatus_ = ""; + gcbandwidthAdminStatusIsSet_ = false; + gcbandwidthSize_ = 0; + gcbandwidthSizeIsSet_ = false; + gcbandwidthSlaLevel_ = ""; + gcbandwidthSlaLevelIsSet_ = false; + gcbandwidthDscp_ = 0; + gcbandwidthDscpIsSet_ = false; + vnicPrivateIpAddress_ = ""; + vnicPrivateIpAddressIsSet_ = false; + vnicVpcId_ = ""; + vnicVpcIdIsSet_ = false; + vnicPortId_ = ""; + vnicPortIdIsSet_ = false; + vnicDeviceId_ = ""; + vnicDeviceIdIsSet_ = false; + vnicDeviceOwner_ = ""; + vnicDeviceOwnerIsSet_ = false; + vnicDeviceOwnerPrefixlike_ = ""; + vnicDeviceOwnerPrefixlikeIsSet_ = false; + vnicInstanceType_ = ""; + vnicInstanceTypeIsSet_ = false; + vnicInstanceId_ = ""; + vnicInstanceIdIsSet_ = false; + sortKey_ = ""; + sortKeyIsSet_ = false; + sortDir_ = ""; + sortDirIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; +} + +ListProjectGeipBindingsRequest::~ListProjectGeipBindingsRequest() = default; + +void ListProjectGeipBindingsRequest::validate() +{ +} + +web::json::value ListProjectGeipBindingsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(geipIdIsSet_) { + val[utility::conversions::to_string_t("geip_id")] = ModelBase::toJson(geipId_); + } + if(geipIpAddressIsSet_) { + val[utility::conversions::to_string_t("geip_ip_address")] = ModelBase::toJson(geipIpAddress_); + } + if(publicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("public_border_group")] = ModelBase::toJson(publicBorderGroup_); + } + if(instanceTypeIsSet_) { + val[utility::conversions::to_string_t("instance_type")] = ModelBase::toJson(instanceType_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(instanceVpcIdIsSet_) { + val[utility::conversions::to_string_t("instance_vpc_id")] = ModelBase::toJson(instanceVpcId_); + } + if(gcbandwidthIdIsSet_) { + val[utility::conversions::to_string_t("gcbandwidth.id")] = ModelBase::toJson(gcbandwidthId_); + } + if(gcbandwidthAdminStatusIsSet_) { + val[utility::conversions::to_string_t("gcbandwidth.admin_status")] = ModelBase::toJson(gcbandwidthAdminStatus_); + } + if(gcbandwidthSizeIsSet_) { + val[utility::conversions::to_string_t("gcbandwidth.size")] = ModelBase::toJson(gcbandwidthSize_); + } + if(gcbandwidthSlaLevelIsSet_) { + val[utility::conversions::to_string_t("gcbandwidth.sla_level")] = ModelBase::toJson(gcbandwidthSlaLevel_); + } + if(gcbandwidthDscpIsSet_) { + val[utility::conversions::to_string_t("gcbandwidth.dscp")] = ModelBase::toJson(gcbandwidthDscp_); + } + if(vnicPrivateIpAddressIsSet_) { + val[utility::conversions::to_string_t("vnic.private_ip_address")] = ModelBase::toJson(vnicPrivateIpAddress_); + } + if(vnicVpcIdIsSet_) { + val[utility::conversions::to_string_t("vnic.vpc_id")] = ModelBase::toJson(vnicVpcId_); + } + if(vnicPortIdIsSet_) { + val[utility::conversions::to_string_t("vnic.port_id")] = ModelBase::toJson(vnicPortId_); + } + if(vnicDeviceIdIsSet_) { + val[utility::conversions::to_string_t("vnic.device_id")] = ModelBase::toJson(vnicDeviceId_); + } + if(vnicDeviceOwnerIsSet_) { + val[utility::conversions::to_string_t("vnic.device_owner")] = ModelBase::toJson(vnicDeviceOwner_); + } + if(vnicDeviceOwnerPrefixlikeIsSet_) { + val[utility::conversions::to_string_t("vnic.device_owner_prefixlike")] = ModelBase::toJson(vnicDeviceOwnerPrefixlike_); + } + if(vnicInstanceTypeIsSet_) { + val[utility::conversions::to_string_t("vnic.instance_type")] = ModelBase::toJson(vnicInstanceType_); + } + if(vnicInstanceIdIsSet_) { + val[utility::conversions::to_string_t("vnic.instance_id")] = ModelBase::toJson(vnicInstanceId_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + + return val; +} +bool ListProjectGeipBindingsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_border_group")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcbandwidth.id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcbandwidth.id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcbandwidth.admin_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcbandwidth.admin_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbandwidthAdminStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcbandwidth.size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcbandwidth.size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbandwidthSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcbandwidth.sla_level"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcbandwidth.sla_level")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbandwidthSlaLevel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcbandwidth.dscp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcbandwidth.dscp")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbandwidthDscp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.private_ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.private_ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicPrivateIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.port_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.port_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicPortId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.device_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.device_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicDeviceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.device_owner"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.device_owner")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicDeviceOwner(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.device_owner_prefixlike"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.device_owner_prefixlike")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicDeviceOwnerPrefixlike(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vnic.instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vnic.instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVnicInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + return ok; +} + + +std::string ListProjectGeipBindingsRequest::getFields() const +{ + return fields_; +} + +void ListProjectGeipBindingsRequest::setFields(const std::string& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getGeipId() const +{ + return geipId_; +} + +void ListProjectGeipBindingsRequest::setGeipId(const std::string& value) +{ + geipId_ = value; + geipIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::geipIdIsSet() const +{ + return geipIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetgeipId() +{ + geipIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getGeipIpAddress() const +{ + return geipIpAddress_; +} + +void ListProjectGeipBindingsRequest::setGeipIpAddress(const std::string& value) +{ + geipIpAddress_ = value; + geipIpAddressIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::geipIpAddressIsSet() const +{ + return geipIpAddressIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetgeipIpAddress() +{ + geipIpAddressIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getPublicBorderGroup() const +{ + return publicBorderGroup_; +} + +void ListProjectGeipBindingsRequest::setPublicBorderGroup(const std::string& value) +{ + publicBorderGroup_ = value; + publicBorderGroupIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::publicBorderGroupIsSet() const +{ + return publicBorderGroupIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetpublicBorderGroup() +{ + publicBorderGroupIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getInstanceType() const +{ + return instanceType_; +} + +void ListProjectGeipBindingsRequest::setInstanceType(const std::string& value) +{ + instanceType_ = value; + instanceTypeIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::instanceTypeIsSet() const +{ + return instanceTypeIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetinstanceType() +{ + instanceTypeIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListProjectGeipBindingsRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getInstanceVpcId() const +{ + return instanceVpcId_; +} + +void ListProjectGeipBindingsRequest::setInstanceVpcId(const std::string& value) +{ + instanceVpcId_ = value; + instanceVpcIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::instanceVpcIdIsSet() const +{ + return instanceVpcIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetinstanceVpcId() +{ + instanceVpcIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getGcbandwidthId() const +{ + return gcbandwidthId_; +} + +void ListProjectGeipBindingsRequest::setGcbandwidthId(const std::string& value) +{ + gcbandwidthId_ = value; + gcbandwidthIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::gcbandwidthIdIsSet() const +{ + return gcbandwidthIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetgcbandwidthId() +{ + gcbandwidthIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getGcbandwidthAdminStatus() const +{ + return gcbandwidthAdminStatus_; +} + +void ListProjectGeipBindingsRequest::setGcbandwidthAdminStatus(const std::string& value) +{ + gcbandwidthAdminStatus_ = value; + gcbandwidthAdminStatusIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::gcbandwidthAdminStatusIsSet() const +{ + return gcbandwidthAdminStatusIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetgcbandwidthAdminStatus() +{ + gcbandwidthAdminStatusIsSet_ = false; +} + +int32_t ListProjectGeipBindingsRequest::getGcbandwidthSize() const +{ + return gcbandwidthSize_; +} + +void ListProjectGeipBindingsRequest::setGcbandwidthSize(int32_t value) +{ + gcbandwidthSize_ = value; + gcbandwidthSizeIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::gcbandwidthSizeIsSet() const +{ + return gcbandwidthSizeIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetgcbandwidthSize() +{ + gcbandwidthSizeIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getGcbandwidthSlaLevel() const +{ + return gcbandwidthSlaLevel_; +} + +void ListProjectGeipBindingsRequest::setGcbandwidthSlaLevel(const std::string& value) +{ + gcbandwidthSlaLevel_ = value; + gcbandwidthSlaLevelIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::gcbandwidthSlaLevelIsSet() const +{ + return gcbandwidthSlaLevelIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetgcbandwidthSlaLevel() +{ + gcbandwidthSlaLevelIsSet_ = false; +} + +int32_t ListProjectGeipBindingsRequest::getGcbandwidthDscp() const +{ + return gcbandwidthDscp_; +} + +void ListProjectGeipBindingsRequest::setGcbandwidthDscp(int32_t value) +{ + gcbandwidthDscp_ = value; + gcbandwidthDscpIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::gcbandwidthDscpIsSet() const +{ + return gcbandwidthDscpIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetgcbandwidthDscp() +{ + gcbandwidthDscpIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicPrivateIpAddress() const +{ + return vnicPrivateIpAddress_; +} + +void ListProjectGeipBindingsRequest::setVnicPrivateIpAddress(const std::string& value) +{ + vnicPrivateIpAddress_ = value; + vnicPrivateIpAddressIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicPrivateIpAddressIsSet() const +{ + return vnicPrivateIpAddressIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicPrivateIpAddress() +{ + vnicPrivateIpAddressIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicVpcId() const +{ + return vnicVpcId_; +} + +void ListProjectGeipBindingsRequest::setVnicVpcId(const std::string& value) +{ + vnicVpcId_ = value; + vnicVpcIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicVpcIdIsSet() const +{ + return vnicVpcIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicVpcId() +{ + vnicVpcIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicPortId() const +{ + return vnicPortId_; +} + +void ListProjectGeipBindingsRequest::setVnicPortId(const std::string& value) +{ + vnicPortId_ = value; + vnicPortIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicPortIdIsSet() const +{ + return vnicPortIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicPortId() +{ + vnicPortIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicDeviceId() const +{ + return vnicDeviceId_; +} + +void ListProjectGeipBindingsRequest::setVnicDeviceId(const std::string& value) +{ + vnicDeviceId_ = value; + vnicDeviceIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicDeviceIdIsSet() const +{ + return vnicDeviceIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicDeviceId() +{ + vnicDeviceIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicDeviceOwner() const +{ + return vnicDeviceOwner_; +} + +void ListProjectGeipBindingsRequest::setVnicDeviceOwner(const std::string& value) +{ + vnicDeviceOwner_ = value; + vnicDeviceOwnerIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicDeviceOwnerIsSet() const +{ + return vnicDeviceOwnerIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicDeviceOwner() +{ + vnicDeviceOwnerIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicDeviceOwnerPrefixlike() const +{ + return vnicDeviceOwnerPrefixlike_; +} + +void ListProjectGeipBindingsRequest::setVnicDeviceOwnerPrefixlike(const std::string& value) +{ + vnicDeviceOwnerPrefixlike_ = value; + vnicDeviceOwnerPrefixlikeIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicDeviceOwnerPrefixlikeIsSet() const +{ + return vnicDeviceOwnerPrefixlikeIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicDeviceOwnerPrefixlike() +{ + vnicDeviceOwnerPrefixlikeIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicInstanceType() const +{ + return vnicInstanceType_; +} + +void ListProjectGeipBindingsRequest::setVnicInstanceType(const std::string& value) +{ + vnicInstanceType_ = value; + vnicInstanceTypeIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicInstanceTypeIsSet() const +{ + return vnicInstanceTypeIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicInstanceType() +{ + vnicInstanceTypeIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getVnicInstanceId() const +{ + return vnicInstanceId_; +} + +void ListProjectGeipBindingsRequest::setVnicInstanceId(const std::string& value) +{ + vnicInstanceId_ = value; + vnicInstanceIdIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::vnicInstanceIdIsSet() const +{ + return vnicInstanceIdIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetvnicInstanceId() +{ + vnicInstanceIdIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getSortKey() const +{ + return sortKey_; +} + +void ListProjectGeipBindingsRequest::setSortKey(const std::string& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::string ListProjectGeipBindingsRequest::getSortDir() const +{ + return sortDir_; +} + +void ListProjectGeipBindingsRequest::setSortDir(const std::string& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +int32_t ListProjectGeipBindingsRequest::getLimit() const +{ + return limit_; +} + +void ListProjectGeipBindingsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListProjectGeipBindingsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListProjectGeipBindingsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/ListProjectGeipBindingsResponse.cpp b/eip/src/v3/model/ListProjectGeipBindingsResponse.cpp new file mode 100644 index 000000000..b799a3077 --- /dev/null +++ b/eip/src/v3/model/ListProjectGeipBindingsResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/eip/v3/model/ListProjectGeipBindingsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +ListProjectGeipBindingsResponse::ListProjectGeipBindingsResponse() +{ + geipBindingsIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; +} + +ListProjectGeipBindingsResponse::~ListProjectGeipBindingsResponse() = default; + +void ListProjectGeipBindingsResponse::validate() +{ +} + +web::json::value ListProjectGeipBindingsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(geipBindingsIsSet_) { + val[utility::conversions::to_string_t("geip_bindings")] = ModelBase::toJson(geipBindings_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + + return val; +} +bool ListProjectGeipBindingsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("geip_bindings"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_bindings")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipBindings(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + return ok; +} + + +std::vector& ListProjectGeipBindingsResponse::getGeipBindings() +{ + return geipBindings_; +} + +void ListProjectGeipBindingsResponse::setGeipBindings(const std::vector& value) +{ + geipBindings_ = value; + geipBindingsIsSet_ = true; +} + +bool ListProjectGeipBindingsResponse::geipBindingsIsSet() const +{ + return geipBindingsIsSet_; +} + +void ListProjectGeipBindingsResponse::unsetgeipBindings() +{ + geipBindingsIsSet_ = false; +} + +std::string ListProjectGeipBindingsResponse::getRequestId() const +{ + return requestId_; +} + +void ListProjectGeipBindingsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListProjectGeipBindingsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListProjectGeipBindingsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/ListTenantVpcIgwsRequest.cpp b/eip/src/v3/model/ListTenantVpcIgwsRequest.cpp new file mode 100644 index 000000000..e2ef383ce --- /dev/null +++ b/eip/src/v3/model/ListTenantVpcIgwsRequest.cpp @@ -0,0 +1,289 @@ + + +#include "huaweicloud/eip/v3/model/ListTenantVpcIgwsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +ListTenantVpcIgwsRequest::ListTenantVpcIgwsRequest() +{ + fields_ = ""; + fieldsIsSet_ = false; + id_ = ""; + idIsSet_ = false; + vpcId_ = ""; + vpcIdIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + sortKey_ = ""; + sortKeyIsSet_ = false; + sortDir_ = ""; + sortDirIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; +} + +ListTenantVpcIgwsRequest::~ListTenantVpcIgwsRequest() = default; + +void ListTenantVpcIgwsRequest::validate() +{ +} + +web::json::value ListTenantVpcIgwsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + + return val; +} +bool ListTenantVpcIgwsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + return ok; +} + + +std::string ListTenantVpcIgwsRequest::getFields() const +{ + return fields_; +} + +void ListTenantVpcIgwsRequest::setFields(const std::string& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListTenantVpcIgwsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListTenantVpcIgwsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::string ListTenantVpcIgwsRequest::getId() const +{ + return id_; +} + +void ListTenantVpcIgwsRequest::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListTenantVpcIgwsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListTenantVpcIgwsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::string ListTenantVpcIgwsRequest::getVpcId() const +{ + return vpcId_; +} + +void ListTenantVpcIgwsRequest::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool ListTenantVpcIgwsRequest::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void ListTenantVpcIgwsRequest::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::string ListTenantVpcIgwsRequest::getName() const +{ + return name_; +} + +void ListTenantVpcIgwsRequest::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListTenantVpcIgwsRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void ListTenantVpcIgwsRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListTenantVpcIgwsRequest::getSortKey() const +{ + return sortKey_; +} + +void ListTenantVpcIgwsRequest::setSortKey(const std::string& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListTenantVpcIgwsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListTenantVpcIgwsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::string ListTenantVpcIgwsRequest::getSortDir() const +{ + return sortDir_; +} + +void ListTenantVpcIgwsRequest::setSortDir(const std::string& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListTenantVpcIgwsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListTenantVpcIgwsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +int32_t ListTenantVpcIgwsRequest::getLimit() const +{ + return limit_; +} + +void ListTenantVpcIgwsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListTenantVpcIgwsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListTenantVpcIgwsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/ListTenantVpcIgwsResponse.cpp b/eip/src/v3/model/ListTenantVpcIgwsResponse.cpp new file mode 100644 index 000000000..6760712ee --- /dev/null +++ b/eip/src/v3/model/ListTenantVpcIgwsResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/eip/v3/model/ListTenantVpcIgwsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +ListTenantVpcIgwsResponse::ListTenantVpcIgwsResponse() +{ + vpcIgwsIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; +} + +ListTenantVpcIgwsResponse::~ListTenantVpcIgwsResponse() = default; + +void ListTenantVpcIgwsResponse::validate() +{ +} + +web::json::value ListTenantVpcIgwsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIgwsIsSet_) { + val[utility::conversions::to_string_t("vpc_igws")] = ModelBase::toJson(vpcIgws_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + + return val; +} +bool ListTenantVpcIgwsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_igws"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igws")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgws(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + return ok; +} + + +std::vector& ListTenantVpcIgwsResponse::getVpcIgws() +{ + return vpcIgws_; +} + +void ListTenantVpcIgwsResponse::setVpcIgws(const std::vector& value) +{ + vpcIgws_ = value; + vpcIgwsIsSet_ = true; +} + +bool ListTenantVpcIgwsResponse::vpcIgwsIsSet() const +{ + return vpcIgwsIsSet_; +} + +void ListTenantVpcIgwsResponse::unsetvpcIgws() +{ + vpcIgwsIsSet_ = false; +} + +std::string ListTenantVpcIgwsResponse::getRequestId() const +{ + return requestId_; +} + +void ListTenantVpcIgwsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListTenantVpcIgwsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListTenantVpcIgwsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/NexthopDict.cpp b/eip/src/v3/model/NexthopDict.cpp new file mode 100644 index 000000000..7699ddceb --- /dev/null +++ b/eip/src/v3/model/NexthopDict.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/eip/v3/model/NexthopDict.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +NexthopDict::NexthopDict() +{ + ipAddress_ = ""; + ipAddressIsSet_ = false; + mode_ = ""; + modeIsSet_ = false; +} + +NexthopDict::~NexthopDict() = default; + +void NexthopDict::validate() +{ +} + +web::json::value NexthopDict::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(modeIsSet_) { + val[utility::conversions::to_string_t("mode")] = ModelBase::toJson(mode_); + } + + return val; +} +bool NexthopDict::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMode(refVal); + } + } + return ok; +} + + +std::string NexthopDict::getIpAddress() const +{ + return ipAddress_; +} + +void NexthopDict::setIpAddress(const std::string& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool NexthopDict::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void NexthopDict::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::string NexthopDict::getMode() const +{ + return mode_; +} + +void NexthopDict::setMode(const std::string& value) +{ + mode_ = value; + modeIsSet_ = true; +} + +bool NexthopDict::modeIsSet() const +{ + return modeIsSet_; +} + +void NexthopDict::unsetmode() +{ + modeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/ShowInternalVpcIgwRequest.cpp b/eip/src/v3/model/ShowInternalVpcIgwRequest.cpp new file mode 100644 index 000000000..a113ac1a7 --- /dev/null +++ b/eip/src/v3/model/ShowInternalVpcIgwRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/eip/v3/model/ShowInternalVpcIgwRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +ShowInternalVpcIgwRequest::ShowInternalVpcIgwRequest() +{ + fields_ = ""; + fieldsIsSet_ = false; + vpcIgwId_ = ""; + vpcIgwIdIsSet_ = false; +} + +ShowInternalVpcIgwRequest::~ShowInternalVpcIgwRequest() = default; + +void ShowInternalVpcIgwRequest::validate() +{ +} + +web::json::value ShowInternalVpcIgwRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(vpcIgwIdIsSet_) { + val[utility::conversions::to_string_t("vpc_igw_id")] = ModelBase::toJson(vpcIgwId_); + } + + return val; +} +bool ShowInternalVpcIgwRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_igw_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgwId(refVal); + } + } + return ok; +} + + +std::string ShowInternalVpcIgwRequest::getFields() const +{ + return fields_; +} + +void ShowInternalVpcIgwRequest::setFields(const std::string& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ShowInternalVpcIgwRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ShowInternalVpcIgwRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::string ShowInternalVpcIgwRequest::getVpcIgwId() const +{ + return vpcIgwId_; +} + +void ShowInternalVpcIgwRequest::setVpcIgwId(const std::string& value) +{ + vpcIgwId_ = value; + vpcIgwIdIsSet_ = true; +} + +bool ShowInternalVpcIgwRequest::vpcIgwIdIsSet() const +{ + return vpcIgwIdIsSet_; +} + +void ShowInternalVpcIgwRequest::unsetvpcIgwId() +{ + vpcIgwIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/ShowInternalVpcIgwResponse.cpp b/eip/src/v3/model/ShowInternalVpcIgwResponse.cpp new file mode 100644 index 000000000..bce6b7a55 --- /dev/null +++ b/eip/src/v3/model/ShowInternalVpcIgwResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/eip/v3/model/ShowInternalVpcIgwResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +ShowInternalVpcIgwResponse::ShowInternalVpcIgwResponse() +{ + vpcIgwIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; +} + +ShowInternalVpcIgwResponse::~ShowInternalVpcIgwResponse() = default; + +void ShowInternalVpcIgwResponse::validate() +{ +} + +web::json::value ShowInternalVpcIgwResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIgwIsSet_) { + val[utility::conversions::to_string_t("vpc_igw")] = ModelBase::toJson(vpcIgw_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + + return val; +} +bool ShowInternalVpcIgwResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_igw"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw")); + if(!fieldValue.is_null()) + { + VpcIgwsTenantResp refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgw(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + return ok; +} + + +VpcIgwsTenantResp ShowInternalVpcIgwResponse::getVpcIgw() const +{ + return vpcIgw_; +} + +void ShowInternalVpcIgwResponse::setVpcIgw(const VpcIgwsTenantResp& value) +{ + vpcIgw_ = value; + vpcIgwIsSet_ = true; +} + +bool ShowInternalVpcIgwResponse::vpcIgwIsSet() const +{ + return vpcIgwIsSet_; +} + +void ShowInternalVpcIgwResponse::unsetvpcIgw() +{ + vpcIgwIsSet_ = false; +} + +std::string ShowInternalVpcIgwResponse::getRequestId() const +{ + return requestId_; +} + +void ShowInternalVpcIgwResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowInternalVpcIgwResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowInternalVpcIgwResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/UpdateTenantVpcIgwRequest.cpp b/eip/src/v3/model/UpdateTenantVpcIgwRequest.cpp new file mode 100644 index 000000000..397fe3cd3 --- /dev/null +++ b/eip/src/v3/model/UpdateTenantVpcIgwRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +UpdateTenantVpcIgwRequest::UpdateTenantVpcIgwRequest() +{ + fields_ = ""; + fieldsIsSet_ = false; + vpcIgwId_ = ""; + vpcIgwIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateTenantVpcIgwRequest::~UpdateTenantVpcIgwRequest() = default; + +void UpdateTenantVpcIgwRequest::validate() +{ +} + +web::json::value UpdateTenantVpcIgwRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(vpcIgwIdIsSet_) { + val[utility::conversions::to_string_t("vpc_igw_id")] = ModelBase::toJson(vpcIgwId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdateTenantVpcIgwRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_igw_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgwId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdateTenantVpcIgwRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateTenantVpcIgwRequest::getFields() const +{ + return fields_; +} + +void UpdateTenantVpcIgwRequest::setFields(const std::string& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool UpdateTenantVpcIgwRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void UpdateTenantVpcIgwRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::string UpdateTenantVpcIgwRequest::getVpcIgwId() const +{ + return vpcIgwId_; +} + +void UpdateTenantVpcIgwRequest::setVpcIgwId(const std::string& value) +{ + vpcIgwId_ = value; + vpcIgwIdIsSet_ = true; +} + +bool UpdateTenantVpcIgwRequest::vpcIgwIdIsSet() const +{ + return vpcIgwIdIsSet_; +} + +void UpdateTenantVpcIgwRequest::unsetvpcIgwId() +{ + vpcIgwIdIsSet_ = false; +} + +UpdateTenantVpcIgwRequestBody UpdateTenantVpcIgwRequest::getBody() const +{ + return body_; +} + +void UpdateTenantVpcIgwRequest::setBody(const UpdateTenantVpcIgwRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateTenantVpcIgwRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateTenantVpcIgwRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/UpdateTenantVpcIgwRequestBody.cpp b/eip/src/v3/model/UpdateTenantVpcIgwRequestBody.cpp new file mode 100644 index 000000000..0007de5bd --- /dev/null +++ b/eip/src/v3/model/UpdateTenantVpcIgwRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +UpdateTenantVpcIgwRequestBody::UpdateTenantVpcIgwRequestBody() +{ + vpcIgwIsSet_ = false; +} + +UpdateTenantVpcIgwRequestBody::~UpdateTenantVpcIgwRequestBody() = default; + +void UpdateTenantVpcIgwRequestBody::validate() +{ +} + +web::json::value UpdateTenantVpcIgwRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIgwIsSet_) { + val[utility::conversions::to_string_t("vpc_igw")] = ModelBase::toJson(vpcIgw_); + } + + return val; +} +bool UpdateTenantVpcIgwRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_igw"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw")); + if(!fieldValue.is_null()) + { + UpdateTenantVpcIgwRequestBody_vpc_igw refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgw(refVal); + } + } + return ok; +} + + +UpdateTenantVpcIgwRequestBody_vpc_igw UpdateTenantVpcIgwRequestBody::getVpcIgw() const +{ + return vpcIgw_; +} + +void UpdateTenantVpcIgwRequestBody::setVpcIgw(const UpdateTenantVpcIgwRequestBody_vpc_igw& value) +{ + vpcIgw_ = value; + vpcIgwIsSet_ = true; +} + +bool UpdateTenantVpcIgwRequestBody::vpcIgwIsSet() const +{ + return vpcIgwIsSet_; +} + +void UpdateTenantVpcIgwRequestBody::unsetvpcIgw() +{ + vpcIgwIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/UpdateTenantVpcIgwRequestBody_vpc_igw.cpp b/eip/src/v3/model/UpdateTenantVpcIgwRequestBody_vpc_igw.cpp new file mode 100644 index 000000000..bb4c7a418 --- /dev/null +++ b/eip/src/v3/model/UpdateTenantVpcIgwRequestBody_vpc_igw.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/eip/v3/model/UpdateTenantVpcIgwRequestBody_vpc_igw.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +UpdateTenantVpcIgwRequestBody_vpc_igw::UpdateTenantVpcIgwRequestBody_vpc_igw() +{ + name_ = ""; + nameIsSet_ = false; + enableIpv6_ = false; + enableIpv6IsSet_ = false; +} + +UpdateTenantVpcIgwRequestBody_vpc_igw::~UpdateTenantVpcIgwRequestBody_vpc_igw() = default; + +void UpdateTenantVpcIgwRequestBody_vpc_igw::validate() +{ +} + +web::json::value UpdateTenantVpcIgwRequestBody_vpc_igw::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(enableIpv6IsSet_) { + val[utility::conversions::to_string_t("enable_ipv6")] = ModelBase::toJson(enableIpv6_); + } + + return val; +} +bool UpdateTenantVpcIgwRequestBody_vpc_igw::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enable_ipv6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enable_ipv6")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnableIpv6(refVal); + } + } + return ok; +} + + +std::string UpdateTenantVpcIgwRequestBody_vpc_igw::getName() const +{ + return name_; +} + +void UpdateTenantVpcIgwRequestBody_vpc_igw::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool UpdateTenantVpcIgwRequestBody_vpc_igw::nameIsSet() const +{ + return nameIsSet_; +} + +void UpdateTenantVpcIgwRequestBody_vpc_igw::unsetname() +{ + nameIsSet_ = false; +} + +bool UpdateTenantVpcIgwRequestBody_vpc_igw::isEnableIpv6() const +{ + return enableIpv6_; +} + +void UpdateTenantVpcIgwRequestBody_vpc_igw::setEnableIpv6(bool value) +{ + enableIpv6_ = value; + enableIpv6IsSet_ = true; +} + +bool UpdateTenantVpcIgwRequestBody_vpc_igw::enableIpv6IsSet() const +{ + return enableIpv6IsSet_; +} + +void UpdateTenantVpcIgwRequestBody_vpc_igw::unsetenableIpv6() +{ + enableIpv6IsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/UpdateTenantVpcIgwResponse.cpp b/eip/src/v3/model/UpdateTenantVpcIgwResponse.cpp new file mode 100644 index 000000000..5a77f7dc2 --- /dev/null +++ b/eip/src/v3/model/UpdateTenantVpcIgwResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/eip/v3/model/UpdateTenantVpcIgwResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +UpdateTenantVpcIgwResponse::UpdateTenantVpcIgwResponse() +{ + vpcIgwIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; +} + +UpdateTenantVpcIgwResponse::~UpdateTenantVpcIgwResponse() = default; + +void UpdateTenantVpcIgwResponse::validate() +{ +} + +web::json::value UpdateTenantVpcIgwResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIgwIsSet_) { + val[utility::conversions::to_string_t("vpc_igw")] = ModelBase::toJson(vpcIgw_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + + return val; +} +bool UpdateTenantVpcIgwResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_igw"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_igw")); + if(!fieldValue.is_null()) + { + VpcIgwsTenantResp refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcIgw(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + return ok; +} + + +VpcIgwsTenantResp UpdateTenantVpcIgwResponse::getVpcIgw() const +{ + return vpcIgw_; +} + +void UpdateTenantVpcIgwResponse::setVpcIgw(const VpcIgwsTenantResp& value) +{ + vpcIgw_ = value; + vpcIgwIsSet_ = true; +} + +bool UpdateTenantVpcIgwResponse::vpcIgwIsSet() const +{ + return vpcIgwIsSet_; +} + +void UpdateTenantVpcIgwResponse::unsetvpcIgw() +{ + vpcIgwIsSet_ = false; +} + +std::string UpdateTenantVpcIgwResponse::getRequestId() const +{ + return requestId_; +} + +void UpdateTenantVpcIgwResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool UpdateTenantVpcIgwResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void UpdateTenantVpcIgwResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/eip/src/v3/model/VpcIgwsTenantResp.cpp b/eip/src/v3/model/VpcIgwsTenantResp.cpp new file mode 100644 index 000000000..418939ac8 --- /dev/null +++ b/eip/src/v3/model/VpcIgwsTenantResp.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/eip/v3/model/VpcIgwsTenantResp.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Eip { +namespace V3 { +namespace Model { + + + + +VpcIgwsTenantResp::VpcIgwsTenantResp() +{ + id_ = ""; + idIsSet_ = false; + projectId_ = ""; + projectIdIsSet_ = false; + vpcId_ = ""; + vpcIdIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + createdAt_ = ""; + createdAtIsSet_ = false; + updatedAt_ = ""; + updatedAtIsSet_ = false; + networkId_ = ""; + networkIdIsSet_ = false; + enableIpv6_ = false; + enableIpv6IsSet_ = false; +} + +VpcIgwsTenantResp::~VpcIgwsTenantResp() = default; + +void VpcIgwsTenantResp::validate() +{ +} + +web::json::value VpcIgwsTenantResp::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(projectIdIsSet_) { + val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); + } + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(networkIdIsSet_) { + val[utility::conversions::to_string_t("network_id")] = ModelBase::toJson(networkId_); + } + if(enableIpv6IsSet_) { + val[utility::conversions::to_string_t("enable_ipv6")] = ModelBase::toJson(enableIpv6_); + } + + return val; +} +bool VpcIgwsTenantResp::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("network_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("network_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNetworkId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enable_ipv6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enable_ipv6")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnableIpv6(refVal); + } + } + return ok; +} + + +std::string VpcIgwsTenantResp::getId() const +{ + return id_; +} + +void VpcIgwsTenantResp::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool VpcIgwsTenantResp::idIsSet() const +{ + return idIsSet_; +} + +void VpcIgwsTenantResp::unsetid() +{ + idIsSet_ = false; +} + +std::string VpcIgwsTenantResp::getProjectId() const +{ + return projectId_; +} + +void VpcIgwsTenantResp::setProjectId(const std::string& value) +{ + projectId_ = value; + projectIdIsSet_ = true; +} + +bool VpcIgwsTenantResp::projectIdIsSet() const +{ + return projectIdIsSet_; +} + +void VpcIgwsTenantResp::unsetprojectId() +{ + projectIdIsSet_ = false; +} + +std::string VpcIgwsTenantResp::getVpcId() const +{ + return vpcId_; +} + +void VpcIgwsTenantResp::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool VpcIgwsTenantResp::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void VpcIgwsTenantResp::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::string VpcIgwsTenantResp::getName() const +{ + return name_; +} + +void VpcIgwsTenantResp::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool VpcIgwsTenantResp::nameIsSet() const +{ + return nameIsSet_; +} + +void VpcIgwsTenantResp::unsetname() +{ + nameIsSet_ = false; +} + +std::string VpcIgwsTenantResp::getCreatedAt() const +{ + return createdAt_; +} + +void VpcIgwsTenantResp::setCreatedAt(const std::string& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool VpcIgwsTenantResp::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void VpcIgwsTenantResp::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +std::string VpcIgwsTenantResp::getUpdatedAt() const +{ + return updatedAt_; +} + +void VpcIgwsTenantResp::setUpdatedAt(const std::string& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool VpcIgwsTenantResp::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void VpcIgwsTenantResp::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +std::string VpcIgwsTenantResp::getNetworkId() const +{ + return networkId_; +} + +void VpcIgwsTenantResp::setNetworkId(const std::string& value) +{ + networkId_ = value; + networkIdIsSet_ = true; +} + +bool VpcIgwsTenantResp::networkIdIsSet() const +{ + return networkIdIsSet_; +} + +void VpcIgwsTenantResp::unsetnetworkId() +{ + networkIdIsSet_ = false; +} + +bool VpcIgwsTenantResp::isEnableIpv6() const +{ + return enableIpv6_; +} + +void VpcIgwsTenantResp::setEnableIpv6(bool value) +{ + enableIpv6_ = value; + enableIpv6IsSet_ = true; +} + +bool VpcIgwsTenantResp::enableIpv6IsSet() const +{ + return enableIpv6IsSet_; +} + +void VpcIgwsTenantResp::unsetenableIpv6() +{ + enableIpv6IsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h index dd5d4da2b..b9604aee7 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h @@ -285,6 +285,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -1207,6 +1210,14 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client std::shared_ptr updateInstanceMonitor( UpdateInstanceMonitorRequest &request ); + // 开启或关闭新增节点自动加入该Proxy + // + // 开启或关闭新增节点自动加入该Proxy。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateNewNodeAutoAddSwitch( + UpdateNewNodeAutoAddSwitchRequest &request + ); // 更改数据库代理连接池类型 // // 更改数据库代理连接池类型。 diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h index 77bc89c04..3a6683361 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h @@ -121,6 +121,7 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBMeta { static HttpRequestDef genRequestDefForUpdateGaussMySqlQuotas(); static HttpRequestDef genRequestDefForUpdateInstanceConfigurations(); static HttpRequestDef genRequestDefForUpdateInstanceMonitor(); + static HttpRequestDef genRequestDefForUpdateNewNodeAutoAddSwitch(); static HttpRequestDef genRequestDefForUpdateProxyConnectionPoolType(); static HttpRequestDef genRequestDefForUpdateProxyNewConfigurations(); static HttpRequestDef genRequestDefForUpdateProxyPort(); diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/MysqlProxyV3.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/MysqlProxyV3.h index a2ff35e07..83617d5a1 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/model/MysqlProxyV3.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/MysqlProxyV3.h @@ -247,6 +247,24 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT MysqlProxyV3 void unsetsslOption(); void setSslOption(const std::string& value); + /// + /// 新增节点是否自动加入该Proxy。 取值范围: - ON:自动加入。 - OFF:不自动加入。 + /// + + std::string getNewNodeAutoAddStatus() const; + bool newNodeAutoAddStatusIsSet() const; + void unsetnewNodeAutoAddStatus(); + void setNewNodeAutoAddStatus(const std::string& value); + + /// + /// 新增节点的读权重。 + /// + + int32_t getNewNodeWeight() const; + bool newNodeWeightIsSet() const; + void unsetnewNodeWeight(); + void setNewNodeWeight(int32_t value); + protected: std::string poolId_; @@ -295,6 +313,10 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT MysqlProxyV3 bool subnetIdIsSet_; std::string sslOption_; bool sslOptionIsSet_; + std::string newNodeAutoAddStatus_; + bool newNodeAutoAddStatusIsSet_; + int32_t newNodeWeight_; + bool newNodeWeightIsSet_; }; diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/OpenMysqlProxyRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/OpenMysqlProxyRequestBody.h index 236482a1e..a0263ba4b 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/model/OpenMysqlProxyRequestBody.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/OpenMysqlProxyRequestBody.h @@ -103,6 +103,24 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT OpenMysqlProxyRequestBody void unsetsubnetId(); void setSubnetId(const std::string& value); + /// + /// 是否开启新增节点自动加入该Proxy。如果需要设置是否开启新增节点自动加入该Proxy,请联系客服人员添加白名单,加入白名单后,方可输入该字段。 取值范围: - ON:开启。 - OFF:关闭。 + /// + + std::string getNewNodeAutoAddStatus() const; + bool newNodeAutoAddStatusIsSet() const; + void unsetnewNodeAutoAddStatus(); + void setNewNodeAutoAddStatus(const std::string& value); + + /// + /// 新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 + /// + + int32_t getNewNodeWeight() const; + bool newNodeWeightIsSet() const; + void unsetnewNodeWeight(); + void setNewNodeWeight(int32_t value); + protected: std::string flavorRef_; @@ -119,6 +137,10 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT OpenMysqlProxyRequestBody bool nodesReadWeightIsSet_; std::string subnetId_; bool subnetIdIsSet_; + std::string newNodeAutoAddStatus_; + bool newNodeAutoAddStatusIsSet_; + int32_t newNodeWeight_; + bool newNodeWeightIsSet_; }; diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequest.h new file mode 100644 index 000000000..1dfbc5d41 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequest.h @@ -0,0 +1,105 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateNewNodeAutoAddSwitchRequest + : public ModelBase +{ +public: + UpdateNewNodeAutoAddSwitchRequest(); + virtual ~UpdateNewNodeAutoAddSwitchRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateNewNodeAutoAddSwitchRequest members + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 数据库代理ID,严格匹配UUID规则。 + /// + + std::string getProxyId() const; + bool proxyIdIsSet() const; + void unsetproxyId(); + void setProxyId(const std::string& value); + + /// + /// + /// + + UpdateNewNodeAutoAddSwitchRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateNewNodeAutoAddSwitchRequestBody& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string proxyId_; + bool proxyIdIsSet_; + UpdateNewNodeAutoAddSwitchRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateNewNodeAutoAddSwitchRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequestBody.h new file mode 100644 index 000000000..3768772d2 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequestBody.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 开启或关闭新增节点自动加入该Proxy请求体。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateNewNodeAutoAddSwitchRequestBody + : public ModelBase +{ +public: + UpdateNewNodeAutoAddSwitchRequestBody(); + virtual ~UpdateNewNodeAutoAddSwitchRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateNewNodeAutoAddSwitchRequestBody members + + /// + /// 是否开启新增节点自动加入该Proxy。 取值范围: - ON:开启。 - OFF:关闭。 + /// + + std::string getSwitchStatus() const; + bool switchStatusIsSet() const; + void unsetswitchStatus(); + void setSwitchStatus(const std::string& value); + + /// + /// 新增节点的读权重: - 新增节点自动加入为ON,取值为0~1000。 - 新增节点自动加入为OFF,则可不输入读权重。 + /// + + int32_t getWeight() const; + bool weightIsSet() const; + void unsetweight(); + void setWeight(int32_t value); + + +protected: + std::string switchStatus_; + bool switchStatusIsSet_; + int32_t weight_; + bool weightIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchResponse.h new file mode 100644 index 000000000..1adcdedc0 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateNewNodeAutoAddSwitchResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateNewNodeAutoAddSwitchResponse(); + virtual ~UpdateNewNodeAutoAddSwitchResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateNewNodeAutoAddSwitchResponse members + + /// + /// 开启或关闭新增节点自动加入该Proxy的操作结果。 + /// + + std::string getResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(const std::string& value); + + +protected: + std::string result_; + bool resultIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateNewNodeAutoAddSwitchResponse_H_ diff --git a/gaussdb/src/v3/GaussDBClient.cpp b/gaussdb/src/v3/GaussDBClient.cpp index ba1bd570b..313246fb5 100644 --- a/gaussdb/src/v3/GaussDBClient.cpp +++ b/gaussdb/src/v3/GaussDBClient.cpp @@ -4607,6 +4607,52 @@ std::shared_ptr GaussDBClient::updateInstanceMoni return localVarResult; } +std::shared_ptr GaussDBClient::updateNewNodeAutoAddSwitch(UpdateNewNodeAutoAddSwitchRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/new-node-auto-add"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["proxy_id"] = parameterToString(request.getProxyId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForUpdateNewNodeAutoAddSwitch()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} std::shared_ptr GaussDBClient::updateProxyConnectionPoolType(UpdateProxyConnectionPoolTypeRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/connection-pool-type"; diff --git a/gaussdb/src/v3/GaussDBMeta.cpp b/gaussdb/src/v3/GaussDBMeta.cpp index c4d80028a..4bb8ba8e4 100644 --- a/gaussdb/src/v3/GaussDBMeta.cpp +++ b/gaussdb/src/v3/GaussDBMeta.cpp @@ -1626,6 +1626,20 @@ HttpRequestDef GaussDBMeta::genRequestDefForUpdateInstanceMonitor() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForUpdateNewNodeAutoAddSwitch() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBMeta::genRequestDefForUpdateProxyConnectionPoolType() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; diff --git a/gaussdb/src/v3/model/MysqlProxyV3.cpp b/gaussdb/src/v3/model/MysqlProxyV3.cpp index 950e8f69a..d3c7b9d79 100644 --- a/gaussdb/src/v3/model/MysqlProxyV3.cpp +++ b/gaussdb/src/v3/model/MysqlProxyV3.cpp @@ -57,6 +57,10 @@ MysqlProxyV3::MysqlProxyV3() subnetIdIsSet_ = false; sslOption_ = ""; sslOptionIsSet_ = false; + newNodeAutoAddStatus_ = ""; + newNodeAutoAddStatusIsSet_ = false; + newNodeWeight_ = 0; + newNodeWeightIsSet_ = false; } MysqlProxyV3::~MysqlProxyV3() = default; @@ -138,6 +142,12 @@ web::json::value MysqlProxyV3::toJson() const if(sslOptionIsSet_) { val[utility::conversions::to_string_t("ssl_option")] = ModelBase::toJson(sslOption_); } + if(newNodeAutoAddStatusIsSet_) { + val[utility::conversions::to_string_t("new_node_auto_add_status")] = ModelBase::toJson(newNodeAutoAddStatus_); + } + if(newNodeWeightIsSet_) { + val[utility::conversions::to_string_t("new_node_weight")] = ModelBase::toJson(newNodeWeight_); + } return val; } @@ -352,6 +362,24 @@ bool MysqlProxyV3::fromJson(const web::json::value& val) setSslOption(refVal); } } + if(val.has_field(utility::conversions::to_string_t("new_node_auto_add_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_node_auto_add_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewNodeAutoAddStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("new_node_weight"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_node_weight")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewNodeWeight(refVal); + } + } return ok; } @@ -839,6 +867,48 @@ void MysqlProxyV3::unsetsslOption() sslOptionIsSet_ = false; } +std::string MysqlProxyV3::getNewNodeAutoAddStatus() const +{ + return newNodeAutoAddStatus_; +} + +void MysqlProxyV3::setNewNodeAutoAddStatus(const std::string& value) +{ + newNodeAutoAddStatus_ = value; + newNodeAutoAddStatusIsSet_ = true; +} + +bool MysqlProxyV3::newNodeAutoAddStatusIsSet() const +{ + return newNodeAutoAddStatusIsSet_; +} + +void MysqlProxyV3::unsetnewNodeAutoAddStatus() +{ + newNodeAutoAddStatusIsSet_ = false; +} + +int32_t MysqlProxyV3::getNewNodeWeight() const +{ + return newNodeWeight_; +} + +void MysqlProxyV3::setNewNodeWeight(int32_t value) +{ + newNodeWeight_ = value; + newNodeWeightIsSet_ = true; +} + +bool MysqlProxyV3::newNodeWeightIsSet() const +{ + return newNodeWeightIsSet_; +} + +void MysqlProxyV3::unsetnewNodeWeight() +{ + newNodeWeightIsSet_ = false; +} + } } } diff --git a/gaussdb/src/v3/model/OpenMysqlProxyRequestBody.cpp b/gaussdb/src/v3/model/OpenMysqlProxyRequestBody.cpp index 779007524..c398a9150 100644 --- a/gaussdb/src/v3/model/OpenMysqlProxyRequestBody.cpp +++ b/gaussdb/src/v3/model/OpenMysqlProxyRequestBody.cpp @@ -25,6 +25,10 @@ OpenMysqlProxyRequestBody::OpenMysqlProxyRequestBody() nodesReadWeightIsSet_ = false; subnetId_ = ""; subnetIdIsSet_ = false; + newNodeAutoAddStatus_ = ""; + newNodeAutoAddStatusIsSet_ = false; + newNodeWeight_ = 0; + newNodeWeightIsSet_ = false; } OpenMysqlProxyRequestBody::~OpenMysqlProxyRequestBody() = default; @@ -58,6 +62,12 @@ web::json::value OpenMysqlProxyRequestBody::toJson() const if(subnetIdIsSet_) { val[utility::conversions::to_string_t("subnet_id")] = ModelBase::toJson(subnetId_); } + if(newNodeAutoAddStatusIsSet_) { + val[utility::conversions::to_string_t("new_node_auto_add_status")] = ModelBase::toJson(newNodeAutoAddStatus_); + } + if(newNodeWeightIsSet_) { + val[utility::conversions::to_string_t("new_node_weight")] = ModelBase::toJson(newNodeWeight_); + } return val; } @@ -128,6 +138,24 @@ bool OpenMysqlProxyRequestBody::fromJson(const web::json::value& val) setSubnetId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("new_node_auto_add_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_node_auto_add_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewNodeAutoAddStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("new_node_weight"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_node_weight")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewNodeWeight(refVal); + } + } return ok; } @@ -279,6 +307,48 @@ void OpenMysqlProxyRequestBody::unsetsubnetId() subnetIdIsSet_ = false; } +std::string OpenMysqlProxyRequestBody::getNewNodeAutoAddStatus() const +{ + return newNodeAutoAddStatus_; +} + +void OpenMysqlProxyRequestBody::setNewNodeAutoAddStatus(const std::string& value) +{ + newNodeAutoAddStatus_ = value; + newNodeAutoAddStatusIsSet_ = true; +} + +bool OpenMysqlProxyRequestBody::newNodeAutoAddStatusIsSet() const +{ + return newNodeAutoAddStatusIsSet_; +} + +void OpenMysqlProxyRequestBody::unsetnewNodeAutoAddStatus() +{ + newNodeAutoAddStatusIsSet_ = false; +} + +int32_t OpenMysqlProxyRequestBody::getNewNodeWeight() const +{ + return newNodeWeight_; +} + +void OpenMysqlProxyRequestBody::setNewNodeWeight(int32_t value) +{ + newNodeWeight_ = value; + newNodeWeightIsSet_ = true; +} + +bool OpenMysqlProxyRequestBody::newNodeWeightIsSet() const +{ + return newNodeWeightIsSet_; +} + +void OpenMysqlProxyRequestBody::unsetnewNodeWeight() +{ + newNodeWeightIsSet_ = false; +} + } } } diff --git a/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchRequest.cpp b/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchRequest.cpp new file mode 100644 index 000000000..e2bcd5f56 --- /dev/null +++ b/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchRequest.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateNewNodeAutoAddSwitchRequest::UpdateNewNodeAutoAddSwitchRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + proxyId_ = ""; + proxyIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateNewNodeAutoAddSwitchRequest::~UpdateNewNodeAutoAddSwitchRequest() = default; + +void UpdateNewNodeAutoAddSwitchRequest::validate() +{ +} + +web::json::value UpdateNewNodeAutoAddSwitchRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(proxyIdIsSet_) { + val[utility::conversions::to_string_t("proxy_id")] = ModelBase::toJson(proxyId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdateNewNodeAutoAddSwitchRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Language"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Language")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXLanguage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("proxy_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("proxy_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProxyId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdateNewNodeAutoAddSwitchRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateNewNodeAutoAddSwitchRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdateNewNodeAutoAddSwitchRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdateNewNodeAutoAddSwitchRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdateNewNodeAutoAddSwitchRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string UpdateNewNodeAutoAddSwitchRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateNewNodeAutoAddSwitchRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateNewNodeAutoAddSwitchRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateNewNodeAutoAddSwitchRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string UpdateNewNodeAutoAddSwitchRequest::getProxyId() const +{ + return proxyId_; +} + +void UpdateNewNodeAutoAddSwitchRequest::setProxyId(const std::string& value) +{ + proxyId_ = value; + proxyIdIsSet_ = true; +} + +bool UpdateNewNodeAutoAddSwitchRequest::proxyIdIsSet() const +{ + return proxyIdIsSet_; +} + +void UpdateNewNodeAutoAddSwitchRequest::unsetproxyId() +{ + proxyIdIsSet_ = false; +} + +UpdateNewNodeAutoAddSwitchRequestBody UpdateNewNodeAutoAddSwitchRequest::getBody() const +{ + return body_; +} + +void UpdateNewNodeAutoAddSwitchRequest::setBody(const UpdateNewNodeAutoAddSwitchRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateNewNodeAutoAddSwitchRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateNewNodeAutoAddSwitchRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchRequestBody.cpp b/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchRequestBody.cpp new file mode 100644 index 000000000..7329c9846 --- /dev/null +++ b/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchRequestBody.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateNewNodeAutoAddSwitchRequestBody::UpdateNewNodeAutoAddSwitchRequestBody() +{ + switchStatus_ = ""; + switchStatusIsSet_ = false; + weight_ = 0; + weightIsSet_ = false; +} + +UpdateNewNodeAutoAddSwitchRequestBody::~UpdateNewNodeAutoAddSwitchRequestBody() = default; + +void UpdateNewNodeAutoAddSwitchRequestBody::validate() +{ +} + +web::json::value UpdateNewNodeAutoAddSwitchRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(switchStatusIsSet_) { + val[utility::conversions::to_string_t("switch_status")] = ModelBase::toJson(switchStatus_); + } + if(weightIsSet_) { + val[utility::conversions::to_string_t("weight")] = ModelBase::toJson(weight_); + } + + return val; +} +bool UpdateNewNodeAutoAddSwitchRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("switch_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("switch_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSwitchStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("weight"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("weight")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setWeight(refVal); + } + } + return ok; +} + + +std::string UpdateNewNodeAutoAddSwitchRequestBody::getSwitchStatus() const +{ + return switchStatus_; +} + +void UpdateNewNodeAutoAddSwitchRequestBody::setSwitchStatus(const std::string& value) +{ + switchStatus_ = value; + switchStatusIsSet_ = true; +} + +bool UpdateNewNodeAutoAddSwitchRequestBody::switchStatusIsSet() const +{ + return switchStatusIsSet_; +} + +void UpdateNewNodeAutoAddSwitchRequestBody::unsetswitchStatus() +{ + switchStatusIsSet_ = false; +} + +int32_t UpdateNewNodeAutoAddSwitchRequestBody::getWeight() const +{ + return weight_; +} + +void UpdateNewNodeAutoAddSwitchRequestBody::setWeight(int32_t value) +{ + weight_ = value; + weightIsSet_ = true; +} + +bool UpdateNewNodeAutoAddSwitchRequestBody::weightIsSet() const +{ + return weightIsSet_; +} + +void UpdateNewNodeAutoAddSwitchRequestBody::unsetweight() +{ + weightIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchResponse.cpp b/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchResponse.cpp new file mode 100644 index 000000000..1948a26aa --- /dev/null +++ b/gaussdb/src/v3/model/UpdateNewNodeAutoAddSwitchResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateNewNodeAutoAddSwitchResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateNewNodeAutoAddSwitchResponse::UpdateNewNodeAutoAddSwitchResponse() +{ + result_ = ""; + resultIsSet_ = false; +} + +UpdateNewNodeAutoAddSwitchResponse::~UpdateNewNodeAutoAddSwitchResponse() = default; + +void UpdateNewNodeAutoAddSwitchResponse::validate() +{ +} + +web::json::value UpdateNewNodeAutoAddSwitchResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } + + return val; +} +bool UpdateNewNodeAutoAddSwitchResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } + return ok; +} + + +std::string UpdateNewNodeAutoAddSwitchResponse::getResult() const +{ + return result_; +} + +void UpdateNewNodeAutoAddSwitchResponse::setResult(const std::string& value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool UpdateNewNodeAutoAddSwitchResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void UpdateNewNodeAutoAddSwitchResponse::unsetresult() +{ + resultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h index 232f79de6..30cc5a1f5 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h @@ -173,6 +173,8 @@ #include #include #include +#include +#include #include #include #include @@ -758,6 +760,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr showSslCertDownloadLink( ShowSslCertDownloadLinkRequest &request ); + // 停止备份 + // + // 停止进行中的备份,包括全备和差备。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr stopBackup( + StopBackupRequest &request + ); // 应用参数模板 // // 指定实例变更参数模板。 diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h index e077bf6d5..f365db078 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h @@ -81,6 +81,7 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussMeta { static HttpRequestDef genRequestDefForShowProjectQuotas(); static HttpRequestDef genRequestDefForShowRecyclePolicy(); static HttpRequestDef genRequestDefForShowSslCertDownloadLink(); + static HttpRequestDef genRequestDefForStopBackup(); static HttpRequestDef genRequestDefForSwitchConfiguration(); static HttpRequestDef genRequestDefForSwitchShard(); static HttpRequestDef genRequestDefForUpdateInstanceConfiguration(); diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopBackupRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopBackupRequest.h new file mode 100644 index 000000000..c08b01894 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopBackupRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopBackupRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopBackupRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT StopBackupRequest + : public ModelBase +{ +public: + StopBackupRequest(); + virtual ~StopBackupRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StopBackupRequest members + + /// + /// 语言 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + StopBackupRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopBackupRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopBackupResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopBackupResponse.h new file mode 100644 index 000000000..1274d34da --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopBackupResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopBackupResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopBackupResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT StopBackupResponse + : public ModelBase, public HttpResponse +{ +public: + StopBackupResponse(); + virtual ~StopBackupResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StopBackupResponse members + + /// + /// 任务id。 + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopBackupResponse_H_ diff --git a/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp b/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp index 7b2d86abb..13cfaed22 100644 --- a/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp +++ b/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp @@ -2774,6 +2774,39 @@ std::shared_ptr GaussDBforopenGaussClient::show return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::stopBackup(StopBackupRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/backups/stop"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForStopBackup()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforopenGaussClient::switchConfiguration(SwitchConfigurationRequest &request) { std::string localVarPath = "/v3/{project_id}/configurations/{config_id}/apply"; diff --git a/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp b/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp index 25fb82668..8e4067ad1 100644 --- a/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp +++ b/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp @@ -1052,6 +1052,16 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForShowSslCertDownloadLink( return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForStopBackup() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForSwitchConfiguration() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; diff --git a/gaussdbforopengauss/src/v3/model/StopBackupRequest.cpp b/gaussdbforopengauss/src/v3/model/StopBackupRequest.cpp new file mode 100644 index 000000000..b2fe3c633 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StopBackupRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StopBackupRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StopBackupRequest::StopBackupRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; +} + +StopBackupRequest::~StopBackupRequest() = default; + +void StopBackupRequest::validate() +{ +} + +web::json::value StopBackupRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + + return val; +} +bool StopBackupRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Language"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Language")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXLanguage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + return ok; +} + + +std::string StopBackupRequest::getXLanguage() const +{ + return xLanguage_; +} + +void StopBackupRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool StopBackupRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void StopBackupRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string StopBackupRequest::getInstanceId() const +{ + return instanceId_; +} + +void StopBackupRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool StopBackupRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void StopBackupRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/StopBackupResponse.cpp b/gaussdbforopengauss/src/v3/model/StopBackupResponse.cpp new file mode 100644 index 000000000..451b3e92a --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StopBackupResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StopBackupResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StopBackupResponse::StopBackupResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +StopBackupResponse::~StopBackupResponse() = default; + +void StopBackupResponse::validate() +{ +} + +web::json::value StopBackupResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + + return val; +} +bool StopBackupResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + return ok; +} + + +std::string StopBackupResponse::getJobId() const +{ + return jobId_; +} + +void StopBackupResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool StopBackupResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void StopBackupResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/include/huaweicloud/geip/v3/GeipClient.h b/geip/include/huaweicloud/geip/v3/GeipClient.h new file mode 100644 index 000000000..f35ef2773 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/GeipClient.h @@ -0,0 +1,775 @@ +#ifndef HUAWEICLOUD_SDK_GEIP_V3_GeipClient_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_GeipClient_H_ + +#include +#include +#include + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#undef U +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { + +using namespace HuaweiCloud::Sdk::Core; +using namespace HuaweiCloud::Sdk::Geip::V3::Model; + +class HUAWEICLOUD_GEIP_V3_EXPORT GeipClient : public Client +{ +public: + + GeipClient(); + + virtual ~GeipClient(); + + static ClientBuilder newBuilder(); + + // 添加全域公网带宽标签 + // + // 添加全域公网带宽标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr addInternetBandwidthTags( + AddInternetBandwidthTagsRequest &request + ); + // 批量创建全域公网带宽 + // + // 批量创建全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchCreateInternetBandwidth( + BatchCreateInternetBandwidthRequest &request + ); + // 批量添加全域公网带宽标签 + // + // 批量添加全域公网带宽标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchCreateInternetBandwidthTags( + BatchCreateInternetBandwidthTagsRequest &request + ); + // 批量删除全域公网带宽标签 + // + // 批量删除全域公网带宽标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchDeleteInternetBandwidthTags( + BatchDeleteInternetBandwidthTagsRequest &request + ); + // 查询全域公网带宽个数 + // + // 查询全域公网带宽个数 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr countInternetBandwidth( + CountInternetBandwidthRequest &request + ); + // 创建全域公网带宽 + // + // 创建全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createInternetBandwidth( + CreateInternetBandwidthRequest &request + ); + // 创建租户签署免责条款 + // + // 创建租户签署免责条款 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createUserDisclaimer( + CreateUserDisclaimerRequest &request + ); + // 删除全域公网带宽 + // + // 删除全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteInternetBandwidth( + DeleteInternetBandwidthRequest &request + ); + // 删除全域公网带宽标签 + // + // 删除全域公网带宽标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteInternetBandwidthTag( + DeleteInternetBandwidthTagRequest &request + ); + // 删除租户撤销免责条款 + // + // 删除租户撤销免责条款 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteUserDisclaimer( + DeleteUserDisclaimerRequest &request + ); + // 查询接入点列表 + // + // 查询接入点列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listAccessSites( + ListAccessSitesRequest &request + ); + // 查询租户全域弹性公网IP配额 + // + // 查询租户全域弹性公网IP配额 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGeipResourceQuotas( + ListGeipResourceQuotasRequest &request + ); + // 查询资源实例列表数目 + // + // 查询资源实例列表数目 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listInternetBandwidthCountFilterTags( + ListInternetBandwidthCountFilterTagsRequest &request + ); + // 查询全域公网带宽项目标签 + // + // 查询全域公网带宽项目标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listInternetBandwidthDomainTags( + ListInternetBandwidthDomainTagsRequest &request + ); + // 查询资源实例列表 + // + // 查询资源实例列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listInternetBandwidthFilterTags( + ListInternetBandwidthFilterTagsRequest &request + ); + // 全域公网带宽限制列表 + // + // 查询全域公网带宽限制列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listInternetBandwidthLimits( + ListInternetBandwidthLimitsRequest &request + ); + // 查询全域公网带宽列表 + // + // 查询全域公网带宽列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listInternetBandwidths( + ListInternetBandwidthsRequest &request + ); + // 查询全域弹性公网IP段支持的掩码列表 + // + // 查询全域弹性公网IP段支持的掩码列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listSupportMasks( + ListSupportMasksRequest &request + ); + // 查询全域公网带宽详情 + // + // 查询全域公网带宽详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showInternetBandwidth( + ShowInternetBandwidthRequest &request + ); + // 查询全域公网带宽标签 + // + // 查询全域公网带宽标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showInternetBandwidthTags( + ShowInternetBandwidthTagsRequest &request + ); + // 查询租户签署免责条款详情 + // + // 查询租户签署免责条款详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showUserDisclaimer( + ShowUserDisclaimerRequest &request + ); + // 更新全域公网带宽 + // + // 更新全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateInternetBandwidth( + UpdateInternetBandwidthRequest &request + ); + + // 添加全域弹性公网IP段标签 + // + // 添加全域弹性公网IP段的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr addGeipSegmentTags( + AddGeipSegmentTagsRequest &request + ); + // 添加全域弹性公网IP标签 + // + // 添加全域弹性公网IP的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr addGlobalEipTags( + AddGlobalEipTagsRequest &request + ); + // 全域弹性公网IP段绑定后端实例 + // + // 全域弹性公网IP段绑定后端实例 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr associateGeipSegmentInstance( + AssociateGeipSegmentInstanceRequest &request + ); + // 绑定后端实例 + // + // 绑定后端实例 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr associateInstance( + AssociateInstanceRequest &request + ); + // 绑定全域公网带宽 + // + // 绑定全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr attachInternetBandwidth( + AttachInternetBandwidthRequest &request + ); + // 全域弹性公网IP段批量绑定全域公网带宽 + // + // 全域弹性公网IP段批量绑定全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchAttachGeipSegmentInternetBandwidth( + BatchAttachGeipSegmentInternetBandwidthRequest &request + ); + // 批量绑定全域公网带宽 + // + // 批量绑定全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchAttachInternetBandwidth( + BatchAttachInternetBandwidthRequest &request + ); + // 批量添加全域弹性公网IP段标签 + // + // 批量添加全域弹性公网IP段的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchCreateGeipSegmentTags( + BatchCreateGeipSegmentTagsRequest &request + ); + // 批量创建全域弹性公网IP + // + // 批量创建全域弹性公网IP + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchCreateGlobalEip( + BatchCreateGlobalEipRequest &request + ); + // 批量添加全域弹性公网IP标签 + // + // 批量添加全域弹性公网IP的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchCreateGlobalEipTags( + BatchCreateGlobalEipTagsRequest &request + ); + // 批量删除全域弹性公网IP段标签 + // + // 批量删除全域弹性公网IP段的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchDeleteGeipSegmentTags( + BatchDeleteGeipSegmentTagsRequest &request + ); + // 批量删除全域弹性公网IP标签 + // + // 批量删除全域弹性公网IP的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchDeleteGlobalEipTags( + BatchDeleteGlobalEipTagsRequest &request + ); + // 全域弹性公网IP段批量解绑全域公网带宽 + // + // 全域弹性公网IP段批量解绑全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchDetachGeipSegmentInternetBandwidth( + BatchDetachGeipSegmentInternetBandwidthRequest &request + ); + // 批量解绑全域公网带宽 + // + // 批量解绑全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchDetachInternetBandwidth( + BatchDetachInternetBandwidthRequest &request + ); + // 查询全域弹性公网IP段个数 + // + // 查询全域弹性公网IP段个数 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr countGlobalEipSegment( + CountGlobalEipSegmentRequest &request + ); + // 查询全域弹性公网IP个数 + // + // 查询全域弹性公网IP个数 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr countGlobalEips( + CountGlobalEipsRequest &request + ); + // 创建全域弹性公网IP + // + // 创建全域弹性公网IP + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createGlobalEip( + CreateGlobalEipRequest &request + ); + // 创建全域弹性公网IP段 + // + // 创建全域弹性公网IP段 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createGlobalEipSegment( + CreateGlobalEipSegmentRequest &request + ); + // 删除全域弹性公网IP段标签 + // + // 删除全域弹性公网IP段的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteGeipSegmentTag( + DeleteGeipSegmentTagRequest &request + ); + // 删除全域弹性公网IP + // + // 删除全域弹性公网IP + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteGlobalEip( + DeleteGlobalEipRequest &request + ); + // 删除全域弹性公网IP段 + // + // 删除全域弹性公网IP段 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteGlobalEipSegment( + DeleteGlobalEipSegmentRequest &request + ); + // 删除全域弹性公网IP标签 + // + // 删除全域弹性公网IP的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteGlobalEipTag( + DeleteGlobalEipTagRequest &request + ); + // 解绑全域公网带宽 + // + // 解绑全域公网带宽 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr detachInternetBandwidth( + DetachInternetBandwidthRequest &request + ); + // 全域弹性公网IP段解绑后端实例 + // + // 全域弹性公网IP段解绑后端实例 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr disassociateGeipSegmentInstance( + DisassociateGeipSegmentInstanceRequest &request + ); + // 解绑后端实例 + // + // 解绑后端实例 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr disassociateInstance( + DisassociateInstanceRequest &request + ); + // 查询全域弹性公网IP池列表 + // + // 查询全域弹性公网IP池列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGeipPools( + ListGeipPoolsRequest &request + ); + // 查询资源实例列表数目 + // + // 查询资源实例列表的数目 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGeipSegmentCountFilterTags( + ListGeipSegmentCountFilterTagsRequest &request + ); + // 查询全域弹性公网IP段项目标签 + // + // 查询全域弹性公网IP段的项目标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGeipSegmentDomainTags( + ListGeipSegmentDomainTagsRequest &request + ); + // 查询资源实例列表 + // + // 查询资源实例的列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGeipSegmentFilterTags( + ListGeipSegmentFilterTagsRequest &request + ); + // 查询资源实例列表数目 + // + // 查询资源实例列表数目 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGlobalEipCountFilterTags( + ListGlobalEipCountFilterTagsRequest &request + ); + // 查询全域弹性公网IP项目标签 + // + // 查询全域弹性公网IP的项目标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGlobalEipDomainTags( + ListGlobalEipDomainTagsRequest &request + ); + // 查询资源实例列表 + // + // 查询资源实例列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGlobalEipFilterTags( + ListGlobalEipFilterTagsRequest &request + ); + // 查询全域弹性公网IP段列表 + // + // 查询全域弹性公网IP段列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGlobalEipSegments( + ListGlobalEipSegmentsRequest &request + ); + // 查询全域弹性公网IP列表 + // + // 查询全域弹性公网IP列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listGlobalEips( + ListGlobalEipsRequest &request + ); + // 查询全域弹性公网IP段标签 + // + // 查询全域弹性公网IP段的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showGeipSegmentTags( + ShowGeipSegmentTagsRequest &request + ); + // 查询全域弹性公网IP详情 + // + // 查询全域弹性公网IP详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showGlobalEip( + ShowGlobalEipRequest &request + ); + // 查询全域弹性公网IP段详情 + // + // 查询全域弹性公网IP段详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showGlobalEipSegment( + ShowGlobalEipSegmentRequest &request + ); + // 查询全域弹性公网IP标签 + // + // 查询全域弹性公网IP的标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showGlobalEipTags( + ShowGlobalEipTagsRequest &request + ); + // 更新全域弹性公网IP信息 + // + // 更新全域弹性公网IP信息 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateGlobalEip( + UpdateGlobalEipRequest &request + ); + // 更新全域弹性公网IP段 + // + // 更新全域弹性公网IP段 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateGlobalEipSegment( + UpdateGlobalEipSegmentRequest &request + ); + + // 查询Job列表 + // + // 查询Job列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listJobs( + ListJobsRequest &request + ); + // 查询Job详情 + // + // 查询Job详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showJobs( + ShowJobsRequest &request + ); + + // 全域弹性公网IP支持绑定的Region限制 + // + // 全域弹性公网IP支持绑定的Region限制 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listSupportRegions( + ListSupportRegionsRequest &request + ); + // 查询指定站点允许绑定的Region信息 + // + // console通过此接口获取指定pop点的全域弹性公网IP允许绑定的region实例信息 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listTenantGeipSupportInstances( + ListTenantGeipSupportInstancesRequest &request + ); + + +private: +#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) + std::string parameterToString(utility::string_t value); +#endif + std::string parameterToString(std::string value); + std::string parameterToString(int32_t value); + std::string parameterToString(int64_t value); + std::string parameterToString(float value); + std::string parameterToString(double value); + std::string parameterToString(const Object& obj); + std::string parameterToString(const utility::datetime &value); + + template + std::string parameterToString(const std::vector &value) + { + std::stringstream ss; + for( size_t i = 0; i < value.size(); i++) + { + if (i > 0) { + ss << ", "; + } + ss << parameterToString(value[i]); + } + + return ss.str(); + } + + template + std::string parameterToString(const std::shared_ptr &value) + { + return parameterToString(*value.get()); + } + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + +} +} +} +} + +template class HUAWEICLOUD_GEIP_V3_EXPORT ::HuaweiCloud::Sdk::Core::ClientBuilder<::HuaweiCloud::Sdk::Geip::V3::GeipClient>; + +#endif // HUAWEICLOUD_SDK_GEIP_V3_GeipClient_H_ + diff --git a/geip/include/huaweicloud/geip/v3/GeipExport.h b/geip/include/huaweicloud/geip/v3/GeipExport.h new file mode 100644 index 000000000..373cf036d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/GeipExport.h @@ -0,0 +1,16 @@ +#ifndef HUAWEICLOUD_SDK_GEIP_V3_GeipExport_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_GeipExport_H_ + +#include + +#if defined(HUAWEICLOUD_SHARED) +# if defined(HUAWEICLOUD_GEIP_V3_SHARED) +# define HUAWEICLOUD_GEIP_V3_EXPORT HUAWEICLOUD_EXPORT +# else +# define HUAWEICLOUD_GEIP_V3_EXPORT HUAWEICLOUD_IMPORT +# endif +#else +# define HUAWEICLOUD_GEIP_V3_EXPORT +#endif + +#endif // !HUAWEICLOUD_SDK_GEIP_V3_GeipExport_H_ \ No newline at end of file diff --git a/geip/include/huaweicloud/geip/v3/GeipMeta.h b/geip/include/huaweicloud/geip/v3/GeipMeta.h new file mode 100644 index 000000000..ed48e8b6e --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/GeipMeta.h @@ -0,0 +1,89 @@ +#ifndef HUAWEICLOUD_SDK_GEIP_V3_GeipMeta_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_GeipMeta_H_ + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { + +using namespace HuaweiCloud::Sdk::Core::Http; + +class HUAWEICLOUD_GEIP_V3_EXPORT GeipMeta { +public: + static HttpRequestDef genRequestDefForAddInternetBandwidthTags(); + static HttpRequestDef genRequestDefForBatchCreateInternetBandwidth(); + static HttpRequestDef genRequestDefForBatchCreateInternetBandwidthTags(); + static HttpRequestDef genRequestDefForBatchDeleteInternetBandwidthTags(); + static HttpRequestDef genRequestDefForCountInternetBandwidth(); + static HttpRequestDef genRequestDefForCreateInternetBandwidth(); + static HttpRequestDef genRequestDefForCreateUserDisclaimer(); + static HttpRequestDef genRequestDefForDeleteInternetBandwidth(); + static HttpRequestDef genRequestDefForDeleteInternetBandwidthTag(); + static HttpRequestDef genRequestDefForDeleteUserDisclaimer(); + static HttpRequestDef genRequestDefForListAccessSites(); + static HttpRequestDef genRequestDefForListGeipResourceQuotas(); + static HttpRequestDef genRequestDefForListInternetBandwidthCountFilterTags(); + static HttpRequestDef genRequestDefForListInternetBandwidthDomainTags(); + static HttpRequestDef genRequestDefForListInternetBandwidthFilterTags(); + static HttpRequestDef genRequestDefForListInternetBandwidthLimits(); + static HttpRequestDef genRequestDefForListInternetBandwidths(); + static HttpRequestDef genRequestDefForListSupportMasks(); + static HttpRequestDef genRequestDefForShowInternetBandwidth(); + static HttpRequestDef genRequestDefForShowInternetBandwidthTags(); + static HttpRequestDef genRequestDefForShowUserDisclaimer(); + static HttpRequestDef genRequestDefForUpdateInternetBandwidth(); + static HttpRequestDef genRequestDefForAddGeipSegmentTags(); + static HttpRequestDef genRequestDefForAddGlobalEipTags(); + static HttpRequestDef genRequestDefForAssociateGeipSegmentInstance(); + static HttpRequestDef genRequestDefForAssociateInstance(); + static HttpRequestDef genRequestDefForAttachInternetBandwidth(); + static HttpRequestDef genRequestDefForBatchAttachGeipSegmentInternetBandwidth(); + static HttpRequestDef genRequestDefForBatchAttachInternetBandwidth(); + static HttpRequestDef genRequestDefForBatchCreateGeipSegmentTags(); + static HttpRequestDef genRequestDefForBatchCreateGlobalEip(); + static HttpRequestDef genRequestDefForBatchCreateGlobalEipTags(); + static HttpRequestDef genRequestDefForBatchDeleteGeipSegmentTags(); + static HttpRequestDef genRequestDefForBatchDeleteGlobalEipTags(); + static HttpRequestDef genRequestDefForBatchDetachGeipSegmentInternetBandwidth(); + static HttpRequestDef genRequestDefForBatchDetachInternetBandwidth(); + static HttpRequestDef genRequestDefForCountGlobalEipSegment(); + static HttpRequestDef genRequestDefForCountGlobalEips(); + static HttpRequestDef genRequestDefForCreateGlobalEip(); + static HttpRequestDef genRequestDefForCreateGlobalEipSegment(); + static HttpRequestDef genRequestDefForDeleteGeipSegmentTag(); + static HttpRequestDef genRequestDefForDeleteGlobalEip(); + static HttpRequestDef genRequestDefForDeleteGlobalEipSegment(); + static HttpRequestDef genRequestDefForDeleteGlobalEipTag(); + static HttpRequestDef genRequestDefForDetachInternetBandwidth(); + static HttpRequestDef genRequestDefForDisassociateGeipSegmentInstance(); + static HttpRequestDef genRequestDefForDisassociateInstance(); + static HttpRequestDef genRequestDefForListGeipPools(); + static HttpRequestDef genRequestDefForListGeipSegmentCountFilterTags(); + static HttpRequestDef genRequestDefForListGeipSegmentDomainTags(); + static HttpRequestDef genRequestDefForListGeipSegmentFilterTags(); + static HttpRequestDef genRequestDefForListGlobalEipCountFilterTags(); + static HttpRequestDef genRequestDefForListGlobalEipDomainTags(); + static HttpRequestDef genRequestDefForListGlobalEipFilterTags(); + static HttpRequestDef genRequestDefForListGlobalEipSegments(); + static HttpRequestDef genRequestDefForListGlobalEips(); + static HttpRequestDef genRequestDefForShowGeipSegmentTags(); + static HttpRequestDef genRequestDefForShowGlobalEip(); + static HttpRequestDef genRequestDefForShowGlobalEipSegment(); + static HttpRequestDef genRequestDefForShowGlobalEipTags(); + static HttpRequestDef genRequestDefForUpdateGlobalEip(); + static HttpRequestDef genRequestDefForUpdateGlobalEipSegment(); + static HttpRequestDef genRequestDefForListJobs(); + static HttpRequestDef genRequestDefForShowJobs(); + static HttpRequestDef genRequestDefForListSupportRegions(); + static HttpRequestDef genRequestDefForListTenantGeipSupportInstances(); +}; + +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_GeipMeta_H_ diff --git a/geip/include/huaweicloud/geip/v3/GeipRegion.h b/geip/include/huaweicloud/geip/v3/GeipRegion.h new file mode 100644 index 000000000..5d9c497a4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/GeipRegion.h @@ -0,0 +1,40 @@ +#ifndef HUAWEICLOUD_SDK_GEIP_V3_GeipRegion_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_GeipRegion_H_ + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +using namespace HuaweiCloud::Sdk::Core::Auth; + +class HUAWEICLOUD_GEIP_V3_EXPORT GeipRegion { +public: + GeipRegion(); + virtual ~GeipRegion(); + + static Region valueOf(std::string regionId); + + static std::map initRegions() { + std::map regions; + regions["cn-north-4"] = Region("cn-north-4", + { + "https://eip.myhuaweicloud.com" + }); + return regions; + } +private: + static std::map regions; +}; + +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_GeipRegion_H_ \ No newline at end of file diff --git a/geip/include/huaweicloud/geip/v3/model/AddGeipSegmentTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/AddGeipSegmentTagsRequest.h new file mode 100644 index 000000000..25ef77d3c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AddGeipSegmentTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGeipSegmentTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGeipSegmentTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AddGeipSegmentTagsRequest + : public ModelBase +{ +public: + AddGeipSegmentTagsRequest(); + virtual ~AddGeipSegmentTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddGeipSegmentTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + CreateV2TagRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateV2TagRequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + CreateV2TagRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + AddGeipSegmentTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGeipSegmentTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AddGeipSegmentTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/AddGeipSegmentTagsResponse.h new file mode 100644 index 000000000..27f6b3663 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AddGeipSegmentTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGeipSegmentTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGeipSegmentTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AddGeipSegmentTagsResponse + : public ModelBase, public HttpResponse +{ +public: + AddGeipSegmentTagsResponse(); + virtual ~AddGeipSegmentTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddGeipSegmentTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGeipSegmentTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AddGlobalEipTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/AddGlobalEipTagsRequest.h new file mode 100644 index 000000000..1a4450300 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AddGlobalEipTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGlobalEipTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGlobalEipTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AddGlobalEipTagsRequest + : public ModelBase +{ +public: + AddGlobalEipTagsRequest(); + virtual ~AddGlobalEipTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddGlobalEipTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + CreateV2TagRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateV2TagRequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + CreateV2TagRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + AddGlobalEipTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGlobalEipTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AddGlobalEipTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/AddGlobalEipTagsResponse.h new file mode 100644 index 000000000..311de1888 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AddGlobalEipTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGlobalEipTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGlobalEipTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AddGlobalEipTagsResponse + : public ModelBase, public HttpResponse +{ +public: + AddGlobalEipTagsResponse(); + virtual ~AddGlobalEipTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddGlobalEipTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddGlobalEipTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AddInternetBandwidthTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/AddInternetBandwidthTagsRequest.h new file mode 100644 index 000000000..b31e91752 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AddInternetBandwidthTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddInternetBandwidthTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddInternetBandwidthTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AddInternetBandwidthTagsRequest + : public ModelBase +{ +public: + AddInternetBandwidthTagsRequest(); + virtual ~AddInternetBandwidthTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddInternetBandwidthTagsRequest members + + /// + /// 全域公网带宽的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + CreateV2TagRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateV2TagRequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + CreateV2TagRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + AddInternetBandwidthTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddInternetBandwidthTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AddInternetBandwidthTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/AddInternetBandwidthTagsResponse.h new file mode 100644 index 000000000..a63f22670 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AddInternetBandwidthTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddInternetBandwidthTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddInternetBandwidthTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AddInternetBandwidthTagsResponse + : public ModelBase, public HttpResponse +{ +public: + AddInternetBandwidthTagsResponse(); + virtual ~AddInternetBandwidthTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddInternetBandwidthTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AddInternetBandwidthTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AllowedBandwidthTypes.h b/geip/include/huaweicloud/geip/v3/model/AllowedBandwidthTypes.h new file mode 100644 index 000000000..7a0a272b5 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AllowedBandwidthTypes.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AllowedBandwidthTypes_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AllowedBandwidthTypes_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 地址池支持的全域公网带宽类型资源 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AllowedBandwidthTypes + : public ModelBase +{ +public: + AllowedBandwidthTypes(); + virtual ~AllowedBandwidthTypes(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AllowedBandwidthTypes members + + /// + /// 全域公网带宽类型名称 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 中文名称 + /// + + std::string getCnName() const; + bool cnNameIsSet() const; + void unsetcnName(); + void setCnName(const std::string& value); + + /// + /// 英文名称 + /// + + std::string getEnName() const; + bool enNameIsSet() const; + void unsetenName(); + void setEnName(const std::string& value); + + +protected: + std::string type_; + bool typeIsSet_; + std::string cnName_; + bool cnNameIsSet_; + std::string enName_; + bool enNameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AllowedBandwidthTypes_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceRequest.h b/geip/include/huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceRequest.h new file mode 100644 index 000000000..26f59f3c3 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateGeipSegmentInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateGeipSegmentInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateGeipSegmentInstanceRequest + : public ModelBase +{ +public: + AssociateGeipSegmentInstanceRequest(); + virtual ~AssociateGeipSegmentInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateGeipSegmentInstanceRequest members + + /// + /// global_eip_segment_id + /// + + std::string getGlobalEipSegmentId() const; + bool globalEipSegmentIdIsSet() const; + void unsetglobalEipSegmentId(); + void setGlobalEipSegmentId(const std::string& value); + + /// + /// + /// + + AssociateInstanceGlobalEipSegmentRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const AssociateInstanceGlobalEipSegmentRequestBody& value); + + +protected: + std::string globalEipSegmentId_; + bool globalEipSegmentIdIsSet_; + AssociateInstanceGlobalEipSegmentRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + AssociateGeipSegmentInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateGeipSegmentInstanceRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceResponse.h b/geip/include/huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceResponse.h new file mode 100644 index 000000000..b60110767 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateGeipSegmentInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateGeipSegmentInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateGeipSegmentInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + AssociateGeipSegmentInstanceResponse(); + virtual ~AssociateGeipSegmentInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateGeipSegmentInstanceResponse members + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + ShortGlobalEipSegment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const ShortGlobalEipSegment& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + ShortGlobalEipSegment globalEipSegment_; + bool globalEipSegmentIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateGeipSegmentInstanceResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody.h new file mode 100644 index 000000000..838674e3a --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceGlobalEipRequestBody + : public ModelBase +{ +public: + AssociateInstanceGlobalEipRequestBody(); + virtual ~AssociateInstanceGlobalEipRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceGlobalEipRequestBody members + + /// + /// + /// + + bool isDryRun() const; + bool dryRunIsSet() const; + void unsetdryRun(); + void setDryRun(bool value); + + /// + /// + /// + + AssociateInstanceGlobalEipRequestBody_global_eip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const AssociateInstanceGlobalEipRequestBody_global_eip& value); + + +protected: + bool dryRun_; + bool dryRunIsSet_; + AssociateInstanceGlobalEipRequestBody_global_eip globalEip_; + bool globalEipIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip.h new file mode 100644 index 000000000..8d69c6792 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 绑定后端实例请求体对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceGlobalEipRequestBody_global_eip + : public ModelBase +{ +public: + AssociateInstanceGlobalEipRequestBody_global_eip(); + virtual ~AssociateInstanceGlobalEipRequestBody_global_eip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceGlobalEipRequestBody_global_eip members + + /// + /// + /// + + AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info getAssociateInstanceInfo() const; + bool associateInstanceInfoIsSet() const; + void unsetassociateInstanceInfo(); + void setAssociateInstanceInfo(const AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info& value); + + /// + /// + /// + + AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info getGcBandwidthInfo() const; + bool gcBandwidthInfoIsSet() const; + void unsetgcBandwidthInfo(); + void setGcBandwidthInfo(const AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info& value); + + +protected: + AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info associateInstanceInfo_; + bool associateInstanceInfoIsSet_; + AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info gcBandwidthInfo_; + bool gcBandwidthInfoIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info.h new file mode 100644 index 000000000..2a56dbcef --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info.h @@ -0,0 +1,119 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info + : public ModelBase +{ +public: + AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info(); + virtual ~AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info members + + /// + /// region + /// + + std::string getRegion() const; + bool regionIsSet() const; + void unsetregion(); + void setRegion(const std::string& value); + + /// + /// 支持绑定的实例类型 + /// + + std::string getInstanceType() const; + bool instanceTypeIsSet() const; + void unsetinstanceType(); + void setInstanceType(const std::string& value); + + /// + /// 实例ID + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + std::string getProjectId() const; + bool projectIdIsSet() const; + void unsetprojectId(); + void setProjectId(const std::string& value); + + /// + /// 服务id + /// + + std::string getServiceId() const; + bool serviceIdIsSet() const; + void unsetserviceId(); + void setServiceId(const std::string& value); + + /// + /// 服务类型 + /// + + std::string getServiceType() const; + bool serviceTypeIsSet() const; + void unsetserviceType(); + void setServiceType(const std::string& value); + + +protected: + std::string region_; + bool regionIsSet_; + std::string instanceType_; + bool instanceTypeIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string projectId_; + bool projectIdIsSet_; + std::string serviceId_; + bool serviceIdIsSet_; + std::string serviceType_; + bool serviceTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info.h new file mode 100644 index 000000000..0c5f3fbe9 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info.h @@ -0,0 +1,176 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info + : public ModelBase +{ +public: + AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info(); + virtual ~AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// + /// + + int32_t getBandwidth() const; + bool bandwidthIsSet() const; + void unsetbandwidth(); + void setBandwidth(int32_t value); + + /// + /// 大小 + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 骨干带宽的两端之一:A点 + /// + + std::string getLocalArea() const; + bool localAreaIsSet() const; + void unsetlocalArea(); + void setLocalArea(const std::string& value); + + /// + /// 骨干带宽的两端之一:B点 + /// + + std::string getRemoteArea() const; + bool remoteAreaIsSet() const; + void unsetremoteArea(); + void setRemoteArea(const std::string& value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string type_; + bool typeIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t bandwidth_; + bool bandwidthIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string localArea_; + bool localAreaIsSet_; + std::string remoteArea_; + bool remoteAreaIsSet_; + std::vector tags_; + bool tagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags.h new file mode 100644 index 000000000..0c943d31b --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags + : public ModelBase +{ +public: + AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags(); + virtual ~AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags members + + /// + /// + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody.h new file mode 100644 index 000000000..7f8d4eb3b --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipSegmentRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipSegmentRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceGlobalEipSegmentRequestBody + : public ModelBase +{ +public: + AssociateInstanceGlobalEipSegmentRequestBody(); + virtual ~AssociateInstanceGlobalEipSegmentRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceGlobalEipSegmentRequestBody members + + /// + /// + /// + + AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment& value); + + +protected: + AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment globalEipSegment_; + bool globalEipSegmentIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipSegmentRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment.h new file mode 100644 index 000000000..59ca4a5c9 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment.h @@ -0,0 +1,119 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 请求对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment + : public ModelBase +{ +public: + AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment(); + virtual ~AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment members + + /// + /// region + /// + + std::string getRegion() const; + bool regionIsSet() const; + void unsetregion(); + void setRegion(const std::string& value); + + /// + /// 支持绑定的实例类型 + /// + + std::string getInstanceType() const; + bool instanceTypeIsSet() const; + void unsetinstanceType(); + void setInstanceType(const std::string& value); + + /// + /// 实例ID + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 项目ID + /// + + std::string getProjectId() const; + bool projectIdIsSet() const; + void unsetprojectId(); + void setProjectId(const std::string& value); + + /// + /// 服务id + /// + + std::string getServiceId() const; + bool serviceIdIsSet() const; + void unsetserviceId(); + void setServiceId(const std::string& value); + + /// + /// 服务类型 + /// + + std::string getServiceType() const; + bool serviceTypeIsSet() const; + void unsetserviceType(); + void setServiceType(const std::string& value); + + +protected: + std::string region_; + bool regionIsSet_; + std::string instanceType_; + bool instanceTypeIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string projectId_; + bool projectIdIsSet_; + std::string serviceId_; + bool serviceIdIsSet_; + std::string serviceType_; + bool serviceTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceRequest.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceRequest.h new file mode 100644 index 000000000..1d92a391a --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceRequest + : public ModelBase +{ +public: + AssociateInstanceRequest(); + virtual ~AssociateInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceRequest members + + /// + /// 绑定接口可以加,标识请求是从哪个服务调过来的 + /// + + std::string getBindingInstanceService() const; + bool bindingInstanceServiceIsSet() const; + void unsetbindingInstanceService(); + void setBindingInstanceService(const std::string& value); + + /// + /// global_eip_id + /// + + std::string getGlobalEipId() const; + bool globalEipIdIsSet() const; + void unsetglobalEipId(); + void setGlobalEipId(const std::string& value); + + /// + /// + /// + + AssociateInstanceGlobalEipRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const AssociateInstanceGlobalEipRequestBody& value); + + +protected: + std::string bindingInstanceService_; + bool bindingInstanceServiceIsSet_; + std::string globalEipId_; + bool globalEipIdIsSet_; + AssociateInstanceGlobalEipRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + AssociateInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AssociateInstanceResponse.h b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceResponse.h new file mode 100644 index 000000000..6fb9c38c6 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AssociateInstanceResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AssociateInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + AssociateInstanceResponse(); + virtual ~AssociateInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AssociateInstanceResponse members + + /// + /// + /// + + UpdateGlobalEip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const UpdateGlobalEip& value); + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + UpdateGlobalEip globalEip_; + bool globalEipIsSet_; + std::string jobId_; + bool jobIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AssociateInstanceResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidth.h b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidth.h new file mode 100644 index 000000000..ec79a107c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidth.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidth_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AttachInternetBandwidth + : public ModelBase +{ +public: + AttachInternetBandwidth(); + virtual ~AttachInternetBandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AttachInternetBandwidth members + + /// + /// + /// + + std::string getGlobalEipSegmentId() const; + bool globalEipSegmentIdIsSet() const; + void unsetglobalEipSegmentId(); + void setGlobalEipSegmentId(const std::string& value); + + /// + /// 全域公网带宽的ID + /// + + std::string getInternetBandwidthId() const; + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::string& value); + + +protected: + std::string globalEipSegmentId_; + bool globalEipSegmentIdIsSet_; + std::string internetBandwidthId_; + bool internetBandwidthIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEip.h b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEip.h new file mode 100644 index 000000000..81bbeb9b6 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEip.h @@ -0,0 +1,312 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEip_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AttachInternetBandwidthGlobalEip + : public ModelBase +{ +public: + AttachInternetBandwidthGlobalEip(); + virtual ~AttachInternetBandwidthGlobalEip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AttachInternetBandwidthGlobalEip members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// IPv4地址 + /// + + std::string getIpAddress() const; + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::string& value); + + /// + /// IPv6地址 + /// + + std::string getIpv6Address() const; + bool ipv6AddressIsSet() const; + void unsetipv6Address(); + void setIpv6Address(const std::string& value); + + /// + /// 是否冻结 + /// + + bool isFreezen() const; + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(bool value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 是否污染 + /// + + bool isPolluted() const; + bool pollutedIsSet() const; + void unsetpolluted(); + void setPolluted(bool value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + InternetBandwidthInfo getInternetBandwidthInfo() const; + bool internetBandwidthInfoIsSet() const; + void unsetinternetBandwidthInfo(); + void setInternetBandwidthInfo(const InternetBandwidthInfo& value); + + /// + /// + /// + + GlobalConnectionBandwidthInfo getGlobalConnectionBandwidthInfo() const; + bool globalConnectionBandwidthInfoIsSet() const; + void unsetglobalConnectionBandwidthInfo(); + void setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value); + + /// + /// + /// + + InstanceInfo getAssociateInstanceInfo() const; + bool associateInstanceInfoIsSet() const; + void unsetassociateInstanceInfo(); + void setAssociateInstanceInfo(const InstanceInfo& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string ipAddress_; + bool ipAddressIsSet_; + std::string ipv6Address_; + bool ipv6AddressIsSet_; + bool freezen_; + bool freezenIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + bool polluted_; + bool pollutedIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + InternetBandwidthInfo internetBandwidthInfo_; + bool internetBandwidthInfoIsSet_; + GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo_; + bool globalConnectionBandwidthInfoIsSet_; + InstanceInfo associateInstanceInfo_; + bool associateInstanceInfoIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody.h b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody.h new file mode 100644 index 000000000..759c45a74 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEipRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEipRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AttachInternetBandwidthGlobalEipRequestBody + : public ModelBase +{ +public: + AttachInternetBandwidthGlobalEipRequestBody(); + virtual ~AttachInternetBandwidthGlobalEipRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AttachInternetBandwidthGlobalEipRequestBody members + + /// + /// + /// + + bool isDryRun() const; + bool dryRunIsSet() const; + void unsetdryRun(); + void setDryRun(bool value); + + /// + /// + /// + + AttachInternetBandwidthGlobalEipRequestBody_global_eip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const AttachInternetBandwidthGlobalEipRequestBody_global_eip& value); + + +protected: + bool dryRun_; + bool dryRunIsSet_; + AttachInternetBandwidthGlobalEipRequestBody_global_eip globalEip_; + bool globalEipIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEipRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody_global_eip.h b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody_global_eip.h new file mode 100644 index 000000000..8a87c502d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody_global_eip.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEipRequestBody_global_eip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEipRequestBody_global_eip_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 请求参数对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AttachInternetBandwidthGlobalEipRequestBody_global_eip + : public ModelBase +{ +public: + AttachInternetBandwidthGlobalEipRequestBody_global_eip(); + virtual ~AttachInternetBandwidthGlobalEipRequestBody_global_eip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AttachInternetBandwidthGlobalEipRequestBody_global_eip members + + /// + /// 全域公网带宽的ID + /// + + std::string getInternetBandwidthId() const; + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::string& value); + + +protected: + std::string internetBandwidthId_; + bool internetBandwidthIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthGlobalEipRequestBody_global_eip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthRequest.h new file mode 100644 index 000000000..428d59013 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AttachInternetBandwidthRequest + : public ModelBase +{ +public: + AttachInternetBandwidthRequest(); + virtual ~AttachInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AttachInternetBandwidthRequest members + + /// + /// global_eip_id + /// + + std::string getGlobalEipId() const; + bool globalEipIdIsSet() const; + void unsetglobalEipId(); + void setGlobalEipId(const std::string& value); + + /// + /// + /// + + AttachInternetBandwidthGlobalEipRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const AttachInternetBandwidthGlobalEipRequestBody& value); + + +protected: + std::string globalEipId_; + bool globalEipIdIsSet_; + AttachInternetBandwidthGlobalEipRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + AttachInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthResponse.h new file mode 100644 index 000000000..c66a5abbf --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/AttachInternetBandwidthResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT AttachInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + AttachInternetBandwidthResponse(); + virtual ~AttachInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AttachInternetBandwidthResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + AttachInternetBandwidthGlobalEip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const AttachInternetBandwidthGlobalEip& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + AttachInternetBandwidthGlobalEip globalEip_; + bool globalEipIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_AttachInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthRequest.h new file mode 100644 index 000000000..3ed707522 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachGeipSegmentInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachGeipSegmentInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchAttachGeipSegmentInternetBandwidthRequest + : public ModelBase +{ +public: + BatchAttachGeipSegmentInternetBandwidthRequest(); + virtual ~BatchAttachGeipSegmentInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchAttachGeipSegmentInternetBandwidthRequest members + + /// + /// + /// + + BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody& value); + + +protected: + BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchAttachGeipSegmentInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachGeipSegmentInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthResponse.h new file mode 100644 index 000000000..d24d640eb --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthResponse.h @@ -0,0 +1,78 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachGeipSegmentInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachGeipSegmentInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchAttachGeipSegmentInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + BatchAttachGeipSegmentInternetBandwidthResponse(); + virtual ~BatchAttachGeipSegmentInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchAttachGeipSegmentInternetBandwidthResponse members + + /// + /// 异步任务,返回的任务ID + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachGeipSegmentInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthRequest.h new file mode 100644 index 000000000..a17085732 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchAttachInternetBandwidthRequest + : public ModelBase +{ +public: + BatchAttachInternetBandwidthRequest(); + virtual ~BatchAttachInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchAttachInternetBandwidthRequest members + + /// + /// + /// + + BatchAttachInternetBandwidthsGlobalEipRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchAttachInternetBandwidthsGlobalEipRequestBody& value); + + +protected: + BatchAttachInternetBandwidthsGlobalEipRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchAttachInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthResponse.h new file mode 100644 index 000000000..ba8a927f3 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthResponse.h @@ -0,0 +1,78 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchAttachInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + BatchAttachInternetBandwidthResponse(); + virtual ~BatchAttachInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchAttachInternetBandwidthResponse members + + /// + /// + /// + + std::string getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string body_; + bool bodyIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipRequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipRequestBody.h new file mode 100644 index 000000000..fec059f02 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthsGlobalEipRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthsGlobalEipRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 批量绑定全域公网带宽请求体对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchAttachInternetBandwidthsGlobalEipRequestBody + : public ModelBase +{ +public: + BatchAttachInternetBandwidthsGlobalEipRequestBody(); + virtual ~BatchAttachInternetBandwidthsGlobalEipRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchAttachInternetBandwidthsGlobalEipRequestBody members + + /// + /// 批量绑定全域公网带宽请求体对象 + /// + + std::vector& getGlobalEips(); + bool globalEipsIsSet() const; + void unsetglobalEips(); + void setGlobalEips(const std::vector& value); + + +protected: + std::vector globalEips_; + bool globalEipsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthsGlobalEipRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.h new file mode 100644 index 000000000..9c89b9504 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody + : public ModelBase +{ +public: + BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody(); + virtual ~BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody members + + /// + /// 请求列表 + /// + + std::vector& getGlobalEipSegments(); + bool globalEipSegmentsIsSet() const; + void unsetglobalEipSegments(); + void setGlobalEipSegments(const std::vector& value); + + +protected: + std::vector globalEipSegments_; + bool globalEipSegmentsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsRequest.h new file mode 100644 index 000000000..116d3209a --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGeipSegmentTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGeipSegmentTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGeipSegmentTagsRequest + : public ModelBase +{ +public: + BatchCreateGeipSegmentTagsRequest(); + virtual ~BatchCreateGeipSegmentTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGeipSegmentTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + BatchCreateV2RequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchCreateV2RequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + BatchCreateV2RequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchCreateGeipSegmentTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGeipSegmentTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsResponse.h new file mode 100644 index 000000000..5c6c2ae58 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGeipSegmentTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGeipSegmentTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGeipSegmentTagsResponse + : public ModelBase, public HttpResponse +{ +public: + BatchCreateGeipSegmentTagsResponse(); + virtual ~BatchCreateGeipSegmentTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGeipSegmentTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGeipSegmentTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEip.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEip.h new file mode 100644 index 000000000..82af381ac --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEip.h @@ -0,0 +1,312 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEip_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEip + : public ModelBase +{ +public: + BatchCreateGlobalEip(); + virtual ~BatchCreateGlobalEip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEip members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// IPv4地址 + /// + + std::string getIpAddress() const; + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::string& value); + + /// + /// IPv6地址 + /// + + std::string getIpv6Address() const; + bool ipv6AddressIsSet() const; + void unsetipv6Address(); + void setIpv6Address(const std::string& value); + + /// + /// 是否冻结 + /// + + bool isFreezen() const; + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(bool value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 是否污染 + /// + + bool isPolluted() const; + bool pollutedIsSet() const; + void unsetpolluted(); + void setPolluted(bool value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + InternetBandwidthInfo getInternetBandwidthInfo() const; + bool internetBandwidthInfoIsSet() const; + void unsetinternetBandwidthInfo(); + void setInternetBandwidthInfo(const InternetBandwidthInfo& value); + + /// + /// + /// + + GlobalConnectionBandwidthInfo getGlobalConnectionBandwidthInfo() const; + bool globalConnectionBandwidthInfoIsSet() const; + void unsetglobalConnectionBandwidthInfo(); + void setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value); + + /// + /// + /// + + InstanceInfo getAssociateInstanceInfo() const; + bool associateInstanceInfoIsSet() const; + void unsetassociateInstanceInfo(); + void setAssociateInstanceInfo(const InstanceInfo& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string ipAddress_; + bool ipAddressIsSet_; + std::string ipv6Address_; + bool ipv6AddressIsSet_; + bool freezen_; + bool freezenIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + bool polluted_; + bool pollutedIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + InternetBandwidthInfo internetBandwidthInfo_; + bool internetBandwidthInfoIsSet_; + GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo_; + bool globalConnectionBandwidthInfoIsSet_; + InstanceInfo associateInstanceInfo_; + bool associateInstanceInfoIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequest.h new file mode 100644 index 000000000..d963feb3d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEipRequest + : public ModelBase +{ +public: + BatchCreateGlobalEipRequest(); + virtual ~BatchCreateGlobalEipRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEipRequest members + + /// + /// + /// + + BatchCreateGlobalEipRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchCreateGlobalEipRequestBody& value); + + +protected: + BatchCreateGlobalEipRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchCreateGlobalEipRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody.h new file mode 100644 index 000000000..dded070b2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEipRequestBody + : public ModelBase +{ +public: + BatchCreateGlobalEipRequestBody(); + virtual ~BatchCreateGlobalEipRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEipRequestBody members + + /// + /// + /// + + bool isDryRun() const; + bool dryRunIsSet() const; + void unsetdryRun(); + void setDryRun(bool value); + + /// + /// + /// + + BatchCreateGlobalEipRequestBody_global_eip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const BatchCreateGlobalEipRequestBody_global_eip& value); + + +protected: + bool dryRun_; + bool dryRunIsSet_; + BatchCreateGlobalEipRequestBody_global_eip globalEip_; + bool globalEipIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip.h new file mode 100644 index 000000000..0424c0af4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip.h @@ -0,0 +1,144 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_global_eip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_global_eip_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 批量创建全域弹性公网IP请求体对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEipRequestBody_global_eip + : public ModelBase +{ +public: + BatchCreateGlobalEipRequestBody_global_eip(); + virtual ~BatchCreateGlobalEipRequestBody_global_eip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEipRequestBody_global_eip members + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// + /// + + BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info getInternetBandwidthInfo() const; + bool internetBandwidthInfoIsSet() const; + void unsetinternetBandwidthInfo(); + void setInternetBandwidthInfo(const BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info& value); + + /// + /// 批创个数 + /// + + int32_t getCount() const; + bool countIsSet() const; + void unsetcount(); + void setCount(int32_t value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info internetBandwidthInfo_; + bool internetBandwidthInfoIsSet_; + int32_t count_; + bool countIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_global_eip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info.h new file mode 100644 index 000000000..2d7d0e99a --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info.h @@ -0,0 +1,132 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info + : public ModelBase +{ +public: + BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info(); + virtual ~BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string name_; + bool nameIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string type_; + bool typeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipResponse.h new file mode 100644 index 000000000..9d2997602 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEipResponse + : public ModelBase, public HttpResponse +{ +public: + BatchCreateGlobalEipResponse(); + virtual ~BatchCreateGlobalEipResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEipResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + BatchCreateGlobalEip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const BatchCreateGlobalEip& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + BatchCreateGlobalEip globalEip_; + bool globalEipIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsRequest.h new file mode 100644 index 000000000..4cf05f73f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEipTagsRequest + : public ModelBase +{ +public: + BatchCreateGlobalEipTagsRequest(); + virtual ~BatchCreateGlobalEipTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEipTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + BatchCreateV2RequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchCreateV2RequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + BatchCreateV2RequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchCreateGlobalEipTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsResponse.h new file mode 100644 index 000000000..cbeeaf767 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateGlobalEipTagsResponse + : public ModelBase, public HttpResponse +{ +public: + BatchCreateGlobalEipTagsResponse(); + virtual ~BatchCreateGlobalEipTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateGlobalEipTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateGlobalEipTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidth.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidth.h new file mode 100644 index 000000000..2ea7f2257 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidth.h @@ -0,0 +1,255 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidth_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateInternetBandwidth + : public ModelBase +{ +public: + BatchCreateInternetBandwidth(); + virtual ~BatchCreateInternetBandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateInternetBandwidth members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// 是否创建成功标识,取值:successful、failed。 + /// + + std::string getRetStatus() const; + bool retStatusIsSet() const; + void unsetretStatus(); + void setRetStatus(const std::string& value); + + /// + /// 全域公网带宽标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 全域公网带宽资源的锁状态 + /// + + std::vector& getLockInfos(); + bool lockInfosIsSet() const; + void unsetlockInfos(); + void setLockInfos(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + std::string retStatus_; + bool retStatusIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string type_; + bool typeIsSet_; + std::vector lockInfos_; + bool lockInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequest.h new file mode 100644 index 000000000..0435318ca --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateInternetBandwidthRequest + : public ModelBase +{ +public: + BatchCreateInternetBandwidthRequest(); + virtual ~BatchCreateInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateInternetBandwidthRequest members + + /// + /// + /// + + BatchCreateInternetBandwidthRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchCreateInternetBandwidthRequestBody& value); + + +protected: + BatchCreateInternetBandwidthRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchCreateInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody.h new file mode 100644 index 000000000..e7ee7d7fb --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateInternetBandwidthRequestBody + : public ModelBase +{ +public: + BatchCreateInternetBandwidthRequestBody(); + virtual ~BatchCreateInternetBandwidthRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateInternetBandwidthRequestBody members + + /// + /// + /// + + BatchCreateInternetBandwidthRequestBody_internet_bandwidth getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const BatchCreateInternetBandwidthRequestBody_internet_bandwidth& value); + + +protected: + BatchCreateInternetBandwidthRequestBody_internet_bandwidth internetBandwidth_; + bool internetBandwidthIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody_internet_bandwidth.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody_internet_bandwidth.h new file mode 100644 index 000000000..3e5e21d16 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody_internet_bandwidth.h @@ -0,0 +1,176 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequestBody_internet_bandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequestBody_internet_bandwidth_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 批量创建全域公网带宽请求体对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateInternetBandwidthRequestBody_internet_bandwidth + : public ModelBase +{ +public: + BatchCreateInternetBandwidthRequestBody_internet_bandwidth(); + virtual ~BatchCreateInternetBandwidthRequestBody_internet_bandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateInternetBandwidthRequestBody_internet_bandwidth members + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 批创个数 + /// + + int32_t getCount() const; + bool countIsSet() const; + void unsetcount(); + void setCount(int32_t value); + + /// + /// 全域公网带宽标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + +protected: + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + std::string isp_; + bool ispIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + int32_t count_; + bool countIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string type_; + bool typeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthRequestBody_internet_bandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthResponse.h new file mode 100644 index 000000000..5f36ec222 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthResponse.h @@ -0,0 +1,91 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + BatchCreateInternetBandwidthResponse(); + virtual ~BatchCreateInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateInternetBandwidthResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 创建成功响应体对象 + /// + + std::vector& getInternetBandwidths(); + bool internetBandwidthsIsSet() const; + void unsetinternetBandwidths(); + void setInternetBandwidths(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector internetBandwidths_; + bool internetBandwidthsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsRequest.h new file mode 100644 index 000000000..78bccf353 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateInternetBandwidthTagsRequest + : public ModelBase +{ +public: + BatchCreateInternetBandwidthTagsRequest(); + virtual ~BatchCreateInternetBandwidthTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateInternetBandwidthTagsRequest members + + /// + /// 全域公网带宽的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + BatchCreateV2RequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchCreateV2RequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + BatchCreateV2RequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchCreateInternetBandwidthTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsResponse.h new file mode 100644 index 000000000..bd08ef91c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateInternetBandwidthTagsResponse + : public ModelBase, public HttpResponse +{ +public: + BatchCreateInternetBandwidthTagsResponse(); + virtual ~BatchCreateInternetBandwidthTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateInternetBandwidthTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateInternetBandwidthTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody.h new file mode 100644 index 000000000..45cf204d4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody.h @@ -0,0 +1,77 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateV2RequestBody + : public ModelBase +{ +public: + BatchCreateV2RequestBody(); + virtual ~BatchCreateV2RequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateV2RequestBody members + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody_sys_tags.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody_sys_tags.h new file mode 100644 index 000000000..914b5f61b --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody_sys_tags.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_sys_tags_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_sys_tags_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateV2RequestBody_sys_tags + : public ModelBase +{ +public: + BatchCreateV2RequestBody_sys_tags(); + virtual ~BatchCreateV2RequestBody_sys_tags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateV2RequestBody_sys_tags members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_sys_tags_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody_tags.h b/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody_tags.h new file mode 100644 index 000000000..766dc34ff --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchCreateV2RequestBody_tags.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_tags_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_tags_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchCreateV2RequestBody_tags + : public ModelBase +{ +public: + BatchCreateV2RequestBody_tags(); + virtual ~BatchCreateV2RequestBody_tags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchCreateV2RequestBody_tags members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchCreateV2RequestBody_tags_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsRequest.h new file mode 100644 index 000000000..e163004fc --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGeipSegmentTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGeipSegmentTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteGeipSegmentTagsRequest + : public ModelBase +{ +public: + BatchDeleteGeipSegmentTagsRequest(); + virtual ~BatchDeleteGeipSegmentTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteGeipSegmentTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + BatchDeleteV2RequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchDeleteV2RequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + BatchDeleteV2RequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchDeleteGeipSegmentTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGeipSegmentTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsResponse.h new file mode 100644 index 000000000..eb4168250 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGeipSegmentTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGeipSegmentTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteGeipSegmentTagsResponse + : public ModelBase, public HttpResponse +{ +public: + BatchDeleteGeipSegmentTagsResponse(); + virtual ~BatchDeleteGeipSegmentTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteGeipSegmentTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGeipSegmentTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsRequest.h new file mode 100644 index 000000000..17027612a --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGlobalEipTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGlobalEipTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteGlobalEipTagsRequest + : public ModelBase +{ +public: + BatchDeleteGlobalEipTagsRequest(); + virtual ~BatchDeleteGlobalEipTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteGlobalEipTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + BatchDeleteV2RequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchDeleteV2RequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + BatchDeleteV2RequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchDeleteGlobalEipTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGlobalEipTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsResponse.h new file mode 100644 index 000000000..80f7165a3 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGlobalEipTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGlobalEipTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteGlobalEipTagsResponse + : public ModelBase, public HttpResponse +{ +public: + BatchDeleteGlobalEipTagsResponse(); + virtual ~BatchDeleteGlobalEipTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteGlobalEipTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteGlobalEipTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsRequest.h new file mode 100644 index 000000000..be05d7e45 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteInternetBandwidthTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteInternetBandwidthTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteInternetBandwidthTagsRequest + : public ModelBase +{ +public: + BatchDeleteInternetBandwidthTagsRequest(); + virtual ~BatchDeleteInternetBandwidthTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteInternetBandwidthTagsRequest members + + /// + /// 全域公网带宽的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// + /// + + BatchDeleteV2RequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchDeleteV2RequestBody& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + BatchDeleteV2RequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchDeleteInternetBandwidthTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteInternetBandwidthTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsResponse.h new file mode 100644 index 000000000..de2ba03b8 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteInternetBandwidthTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteInternetBandwidthTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteInternetBandwidthTagsResponse + : public ModelBase, public HttpResponse +{ +public: + BatchDeleteInternetBandwidthTagsResponse(); + virtual ~BatchDeleteInternetBandwidthTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteInternetBandwidthTagsResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteInternetBandwidthTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody.h new file mode 100644 index 000000000..0f1998a65 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody.h @@ -0,0 +1,77 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteV2RequestBody + : public ModelBase +{ +public: + BatchDeleteV2RequestBody(); + virtual ~BatchDeleteV2RequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteV2RequestBody members + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_sys_tags.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_sys_tags.h new file mode 100644 index 000000000..5f2f764ed --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_sys_tags.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_sys_tags_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_sys_tags_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteV2RequestBody_sys_tags + : public ModelBase +{ +public: + BatchDeleteV2RequestBody_sys_tags(); + virtual ~BatchDeleteV2RequestBody_sys_tags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteV2RequestBody_sys_tags members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_sys_tags_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_tags.h b/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_tags.h new file mode 100644 index 000000000..13e035ac4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_tags.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_tags_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_tags_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDeleteV2RequestBody_tags + : public ModelBase +{ +public: + BatchDeleteV2RequestBody_tags(); + virtual ~BatchDeleteV2RequestBody_tags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteV2RequestBody_tags members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDeleteV2RequestBody_tags_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthRequest.h new file mode 100644 index 000000000..cb848f037 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachGeipSegmentInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachGeipSegmentInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDetachGeipSegmentInternetBandwidthRequest + : public ModelBase +{ +public: + BatchDetachGeipSegmentInternetBandwidthRequest(); + virtual ~BatchDetachGeipSegmentInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDetachGeipSegmentInternetBandwidthRequest members + + /// + /// + /// + + BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody& value); + + +protected: + BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchDetachGeipSegmentInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachGeipSegmentInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthResponse.h new file mode 100644 index 000000000..395898665 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthResponse.h @@ -0,0 +1,78 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachGeipSegmentInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachGeipSegmentInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDetachGeipSegmentInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + BatchDetachGeipSegmentInternetBandwidthResponse(); + virtual ~BatchDetachGeipSegmentInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDetachGeipSegmentInternetBandwidthResponse members + + /// + /// 异步任务,返回的任务ID + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachGeipSegmentInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthRequest.h new file mode 100644 index 000000000..dd9b4850a --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDetachInternetBandwidthRequest + : public ModelBase +{ +public: + BatchDetachInternetBandwidthRequest(); + virtual ~BatchDetachInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDetachInternetBandwidthRequest members + + /// + /// + /// + + BatchDetachInternetBandwidthsGlobalEipRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchDetachInternetBandwidthsGlobalEipRequestBody& value); + + +protected: + BatchDetachInternetBandwidthsGlobalEipRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchDetachInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthResponse.h new file mode 100644 index 000000000..443000524 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthResponse.h @@ -0,0 +1,78 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDetachInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + BatchDetachInternetBandwidthResponse(); + virtual ~BatchDetachInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDetachInternetBandwidthResponse members + + /// + /// + /// + + std::string getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string body_; + bool bodyIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipRequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipRequestBody.h new file mode 100644 index 000000000..baa2205bc --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthsGlobalEipRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthsGlobalEipRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 批量解绑全域公网带宽请求体对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDetachInternetBandwidthsGlobalEipRequestBody + : public ModelBase +{ +public: + BatchDetachInternetBandwidthsGlobalEipRequestBody(); + virtual ~BatchDetachInternetBandwidthsGlobalEipRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDetachInternetBandwidthsGlobalEipRequestBody members + + /// + /// 批量解绑全域公网带宽请求体对象 + /// + + std::vector& getGlobalEips(); + bool globalEipsIsSet() const; + void unsetglobalEips(); + void setGlobalEips(const std::vector& value); + + +protected: + std::vector globalEips_; + bool globalEipsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthsGlobalEipRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.h b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.h new file mode 100644 index 000000000..eb0beb5c5 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody + : public ModelBase +{ +public: + BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody(); + virtual ~BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody members + + /// + /// 请求列表 + /// + + std::vector& getGlobalEipSegments(); + bool globalEipSegmentsIsSet() const; + void unsetglobalEipSegments(); + void setGlobalEipSegments(const std::vector& value); + + +protected: + std::vector globalEipSegments_; + bool globalEipSegmentsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/BatchInternetBandwidthsGlobalEipResponseBody.h b/geip/include/huaweicloud/geip/v3/model/BatchInternetBandwidthsGlobalEipResponseBody.h new file mode 100644 index 000000000..174702d94 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/BatchInternetBandwidthsGlobalEipResponseBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchInternetBandwidthsGlobalEipResponseBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchInternetBandwidthsGlobalEipResponseBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT BatchInternetBandwidthsGlobalEipResponseBody + : public ModelBase +{ +public: + BatchInternetBandwidthsGlobalEipResponseBody(); + virtual ~BatchInternetBandwidthsGlobalEipResponseBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchInternetBandwidthsGlobalEipResponseBody members + + /// + /// 请求完成的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_BatchInternetBandwidthsGlobalEipResponseBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountGeipSegments.h b/geip/include/huaweicloud/geip/v3/model/CountGeipSegments.h new file mode 100644 index 000000000..76b9cdfa7 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountGeipSegments.h @@ -0,0 +1,63 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGeipSegments_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGeipSegments_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountGeipSegments + : public ModelBase +{ +public: + CountGeipSegments(); + virtual ~CountGeipSegments(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountGeipSegments members + + /// + /// Geip Segment Count + /// + + int32_t getCount() const; + bool countIsSet() const; + void unsetcount(); + void setCount(int32_t value); + + +protected: + int32_t count_; + bool countIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGeipSegments_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountGlobalEipSegmentRequest.h b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipSegmentRequest.h new file mode 100644 index 000000000..162ffca0e --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipSegmentRequest.h @@ -0,0 +1,347 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipSegmentRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipSegmentRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountGlobalEipSegmentRequest + : public ModelBase +{ +public: + CountGlobalEipSegmentRequest(); + virtual ~CountGlobalEipSegmentRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountGlobalEipSegmentRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 根据资源ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据全域公网带宽的ID过滤 + /// + + std::vector& getInternetBandwidthId(); + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::vector& value); + + /// + /// 根据名称过滤 + /// + + std::vector& getName(); + bool nameIsSet() const; + void unsetname(); + void setName(const std::vector& value); + + /// + /// 根据名称模糊匹配 + /// + + std::string getNameLike() const; + bool nameLikeIsSet() const; + void unsetnameLike(); + void setNameLike(const std::string& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据全域弹性公网IP池名称过滤 + /// + + std::vector& getGeipPoolName(); + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::vector& value); + + /// + /// 根据运营商线路过滤 + /// + + std::vector& getIsp(); + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::vector& value); + + /// + /// 根据IP版本过滤 + /// + + std::vector& getIpVersion(); + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(std::vector value); + + /// + /// 根据分配的CIDR过滤 + /// + + std::vector& getCidr(); + bool cidrIsSet() const; + void unsetcidr(); + void setCidr(const std::vector& value); + + /// + /// 根据分配的IPv6 CIDR过滤 + /// + + std::vector& getCidrV6(); + bool cidrV6IsSet() const; + void unsetcidrV6(); + void setCidrV6(const std::vector& value); + + /// + /// 根据是否冻结过滤 + /// + + std::vector& getFreezen(); + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(std::vector value); + + /// + /// 根据是否绑定全域公网带宽过滤 + /// + + std::vector& getInternetBandwidthIsNull(); + bool internetBandwidthIsNullIsSet() const; + void unsetinternetBandwidthIsNull(); + void setInternetBandwidthIsNull(std::vector value); + + /// + /// 根据资源状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + /// + /// 根据绑定实例所属的局点过滤 + /// + + std::vector& getAssociateInstanceRegion(); + bool associateInstanceRegionIsSet() const; + void unsetassociateInstanceRegion(); + void setAssociateInstanceRegion(const std::vector& value); + + /// + /// 根据绑定实例所属的边缘信息过滤 + /// + + std::vector& getAssociateInstancePublicBorderGroup(); + bool associateInstancePublicBorderGroupIsSet() const; + void unsetassociateInstancePublicBorderGroup(); + void setAssociateInstancePublicBorderGroup(const std::vector& value); + + /// + /// 根据绑定实例所在的站点过滤 + /// + + std::vector& getAssociateInstanceInstanceSite(); + bool associateInstanceInstanceSiteIsSet() const; + void unsetassociateInstanceInstanceSite(); + void setAssociateInstanceInstanceSite(const std::vector& value); + + /// + /// 根据绑定实例的类型过滤 + /// + + std::vector& getAssociateInstanceInstanceType(); + bool associateInstanceInstanceTypeIsSet() const; + void unsetassociateInstanceInstanceType(); + void setAssociateInstanceInstanceType(const std::vector& value); + + /// + /// 根据绑定实例的ID过滤 + /// + + std::vector& getAssociateInstanceInstanceId(); + bool associateInstanceInstanceIdIsSet() const; + void unsetassociateInstanceInstanceId(); + void setAssociateInstanceInstanceId(const std::vector& value); + + /// + /// 根据绑定实例所属的项目ID过滤 + /// + + std::vector& getAssociateInstanceProjectId(); + bool associateInstanceProjectIdIsSet() const; + void unsetassociateInstanceProjectId(); + void setAssociateInstanceProjectId(const std::vector& value); + + /// + /// 根据企业项目ID过滤 + /// + + std::vector& getEnterpriseProjectId(); + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::vector& value); + + /// + /// 根据标签过滤 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector id_; + bool idIsSet_; + std::vector internetBandwidthId_; + bool internetBandwidthIdIsSet_; + std::vector name_; + bool nameIsSet_; + std::string nameLike_; + bool nameLikeIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector geipPoolName_; + bool geipPoolNameIsSet_; + std::vector isp_; + bool ispIsSet_; + std::vector ipVersion_; + bool ipVersionIsSet_; + std::vector cidr_; + bool cidrIsSet_; + std::vector cidrV6_; + bool cidrV6IsSet_; + std::vector freezen_; + bool freezenIsSet_; + std::vector internetBandwidthIsNull_; + bool internetBandwidthIsNullIsSet_; + std::vector status_; + bool statusIsSet_; + std::vector associateInstanceRegion_; + bool associateInstanceRegionIsSet_; + std::vector associateInstancePublicBorderGroup_; + bool associateInstancePublicBorderGroupIsSet_; + std::vector associateInstanceInstanceSite_; + bool associateInstanceInstanceSiteIsSet_; + std::vector associateInstanceInstanceType_; + bool associateInstanceInstanceTypeIsSet_; + std::vector associateInstanceInstanceId_; + bool associateInstanceInstanceIdIsSet_; + std::vector associateInstanceProjectId_; + bool associateInstanceProjectIdIsSet_; + std::vector enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CountGlobalEipSegmentRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipSegmentRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountGlobalEipSegmentResponse.h b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipSegmentResponse.h new file mode 100644 index 000000000..77f122640 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipSegmentResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipSegmentResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipSegmentResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountGlobalEipSegmentResponse + : public ModelBase, public HttpResponse +{ +public: + CountGlobalEipSegmentResponse(); + virtual ~CountGlobalEipSegmentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountGlobalEipSegmentResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + CountGeipSegments getGlobalEipSegments() const; + bool globalEipSegmentsIsSet() const; + void unsetglobalEipSegments(); + void setGlobalEipSegments(const CountGeipSegments& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + CountGeipSegments globalEipSegments_; + bool globalEipSegmentsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipSegmentResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountGlobalEips.h b/geip/include/huaweicloud/geip/v3/model/CountGlobalEips.h new file mode 100644 index 000000000..e40856852 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountGlobalEips.h @@ -0,0 +1,63 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEips_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEips_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountGlobalEips + : public ModelBase +{ +public: + CountGlobalEips(); + virtual ~CountGlobalEips(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountGlobalEips members + + /// + /// Global Eip Count + /// + + int32_t getCount() const; + bool countIsSet() const; + void unsetcount(); + void setCount(int32_t value); + + +protected: + int32_t count_; + bool countIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEips_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountGlobalEipsRequest.h b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipsRequest.h new file mode 100644 index 000000000..1d21e83eb --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipsRequest.h @@ -0,0 +1,314 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountGlobalEipsRequest + : public ModelBase +{ +public: + CountGlobalEipsRequest(); + virtual ~CountGlobalEipsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountGlobalEipsRequest members + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据全域公网带宽的ID过滤 + /// + + std::vector& getInternetBandwidthId(); + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::vector& value); + + /// + /// 根据名称过滤 + /// + + std::vector& getName(); + bool nameIsSet() const; + void unsetname(); + void setName(const std::vector& value); + + /// + /// 根据名称模糊匹配 + /// + + std::string getNameLike() const; + bool nameLikeIsSet() const; + void unsetnameLike(); + void setNameLike(const std::string& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据全域弹性公网IP池名称过滤 + /// + + std::vector& getGeipPoolName(); + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::vector& value); + + /// + /// 根据运营商线路过滤 + /// + + std::vector& getIsp(); + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::vector& value); + + /// + /// 根据IP版本过滤 + /// + + std::vector& getIpVersion(); + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(std::vector value); + + /// + /// 根据ip地址过滤 + /// + + std::vector& getIpAddress(); + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::vector& value); + + /// + /// 根据ipv6地址过滤 + /// + + std::vector& getIpv6Address(); + bool ipv6AddressIsSet() const; + void unsetipv6Address(); + void setIpv6Address(const std::vector& value); + + /// + /// 根据是否冻结过滤 + /// + + std::vector& getFreezen(); + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(std::vector value); + + /// + /// 根据是否污染过滤 + /// + + std::vector& getPolluted(); + bool pollutedIsSet() const; + void unsetpolluted(); + void setPolluted(std::vector value); + + /// + /// 根据是否绑定全域公网带宽过滤 + /// + + std::vector& getInternetBandwidthIsNull(); + bool internetBandwidthIsNullIsSet() const; + void unsetinternetBandwidthIsNull(); + void setInternetBandwidthIsNull(std::vector value); + + /// + /// 根据是否绑定骨干带宽过滤 + /// + + std::vector& getGcbBandwidthIsNull(); + bool gcbBandwidthIsNullIsSet() const; + void unsetgcbBandwidthIsNull(); + void setGcbBandwidthIsNull(std::vector value); + + /// + /// 根据资源状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + /// + /// 根据绑定实例所属的局点过滤 + /// + + std::vector& getAssociateInstanceInfoRegion(); + bool associateInstanceInfoRegionIsSet() const; + void unsetassociateInstanceInfoRegion(); + void setAssociateInstanceInfoRegion(const std::vector& value); + + /// + /// 根据绑定实例所属的边缘信息过滤 + /// + + std::vector& getAssociateInstanceInfoPublicBorderGroup(); + bool associateInstanceInfoPublicBorderGroupIsSet() const; + void unsetassociateInstanceInfoPublicBorderGroup(); + void setAssociateInstanceInfoPublicBorderGroup(const std::vector& value); + + /// + /// 根据绑定实例所在的站点过滤 + /// + + std::vector& getAssociateInstanceInfoInstanceSite(); + bool associateInstanceInfoInstanceSiteIsSet() const; + void unsetassociateInstanceInfoInstanceSite(); + void setAssociateInstanceInfoInstanceSite(const std::vector& value); + + /// + /// 根据绑定实例的类型过滤 + /// + + std::vector& getAssociateInstanceInfoInstanceType(); + bool associateInstanceInfoInstanceTypeIsSet() const; + void unsetassociateInstanceInfoInstanceType(); + void setAssociateInstanceInfoInstanceType(const std::vector& value); + + /// + /// 根据绑定实例的ID过滤 + /// + + std::vector& getAssociateInstanceInfoInstanceId(); + bool associateInstanceInfoInstanceIdIsSet() const; + void unsetassociateInstanceInfoInstanceId(); + void setAssociateInstanceInfoInstanceId(const std::vector& value); + + /// + /// query by associate_instance_info.project_id + /// + + std::vector& getAssociateInstanceInfoProjectId(); + bool associateInstanceInfoProjectIdIsSet() const; + void unsetassociateInstanceInfoProjectId(); + void setAssociateInstanceInfoProjectId(const std::vector& value); + + /// + /// 根据企业项目ID过滤 + /// + + std::vector& getEnterpriseProjectId(); + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::vector& value); + + /// + /// 根据标签过滤 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::vector id_; + bool idIsSet_; + std::vector internetBandwidthId_; + bool internetBandwidthIdIsSet_; + std::vector name_; + bool nameIsSet_; + std::string nameLike_; + bool nameLikeIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector geipPoolName_; + bool geipPoolNameIsSet_; + std::vector isp_; + bool ispIsSet_; + std::vector ipVersion_; + bool ipVersionIsSet_; + std::vector ipAddress_; + bool ipAddressIsSet_; + std::vector ipv6Address_; + bool ipv6AddressIsSet_; + std::vector freezen_; + bool freezenIsSet_; + std::vector polluted_; + bool pollutedIsSet_; + std::vector internetBandwidthIsNull_; + bool internetBandwidthIsNullIsSet_; + std::vector gcbBandwidthIsNull_; + bool gcbBandwidthIsNullIsSet_; + std::vector status_; + bool statusIsSet_; + std::vector associateInstanceInfoRegion_; + bool associateInstanceInfoRegionIsSet_; + std::vector associateInstanceInfoPublicBorderGroup_; + bool associateInstanceInfoPublicBorderGroupIsSet_; + std::vector associateInstanceInfoInstanceSite_; + bool associateInstanceInfoInstanceSiteIsSet_; + std::vector associateInstanceInfoInstanceType_; + bool associateInstanceInfoInstanceTypeIsSet_; + std::vector associateInstanceInfoInstanceId_; + bool associateInstanceInfoInstanceIdIsSet_; + std::vector associateInstanceInfoProjectId_; + bool associateInstanceInfoProjectIdIsSet_; + std::vector enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CountGlobalEipsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountGlobalEipsResponse.h b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipsResponse.h new file mode 100644 index 000000000..0c6efff36 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountGlobalEipsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountGlobalEipsResponse + : public ModelBase, public HttpResponse +{ +public: + CountGlobalEipsResponse(); + virtual ~CountGlobalEipsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountGlobalEipsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 全域弹性公网IP列表 + /// + + std::vector& getGlobalEips(); + bool globalEipsIsSet() const; + void unsetglobalEips(); + void setGlobalEips(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector globalEips_; + bool globalEipsIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountGlobalEipsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidthRequest.h new file mode 100644 index 000000000..2b543afba --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidthRequest.h @@ -0,0 +1,149 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountInternetBandwidthRequest + : public ModelBase +{ +public: + CountInternetBandwidthRequest(); + virtual ~CountInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountInternetBandwidthRequest members + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据全域公网带宽大小过滤 + /// + + std::vector& getSize(); + bool sizeIsSet() const; + void unsetsize(); + void setSize(std::vector value); + + /// + /// 根据名称过滤 + /// + + std::vector& getName(); + bool nameIsSet() const; + void unsetname(); + void setName(const std::vector& value); + + /// + /// 根据名称模糊匹配 + /// + + std::string getNameLike() const; + bool nameLikeIsSet() const; + void unsetnameLike(); + void setNameLike(const std::string& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据资源状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + /// + /// 根据企业项目ID过滤 + /// + + std::vector& getEnterpriseProjectId(); + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::vector& value); + + /// + /// 根据标签过滤 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::vector id_; + bool idIsSet_; + std::vector size_; + bool sizeIsSet_; + std::vector name_; + bool nameIsSet_; + std::string nameLike_; + bool nameLikeIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector status_; + bool statusIsSet_; + std::vector enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CountInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidthResponse.h new file mode 100644 index 000000000..2ac79e080 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidthResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + CountInternetBandwidthResponse(); + virtual ~CountInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountInternetBandwidthResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + CountInternetBandwidths getInternetBandwidths() const; + bool internetBandwidthsIsSet() const; + void unsetinternetBandwidths(); + void setInternetBandwidths(const CountInternetBandwidths& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + CountInternetBandwidths internetBandwidths_; + bool internetBandwidthsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidths.h b/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidths.h new file mode 100644 index 000000000..45cc5b6fb --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CountInternetBandwidths.h @@ -0,0 +1,63 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidths_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidths_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CountInternetBandwidths + : public ModelBase +{ +public: + CountInternetBandwidths(); + virtual ~CountInternetBandwidths(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CountInternetBandwidths members + + /// + /// 全域公网带宽的数目 + /// + + int32_t getCount() const; + bool countIsSet() const; + void unsetcount(); + void setCount(int32_t value); + + +protected: + int32_t count_; + bool countIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CountInternetBandwidths_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEip.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEip.h new file mode 100644 index 000000000..68b1238d8 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEip.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEip_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 创建全域弹性公网IP响应体 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEip + : public ModelBase +{ +public: + CreateGlobalEip(); + virtual ~CreateGlobalEip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEip members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequest.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequest.h new file mode 100644 index 000000000..60d0e305e --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipRequest + : public ModelBase +{ +public: + CreateGlobalEipRequest(); + virtual ~CreateGlobalEipRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipRequest members + + /// + /// + /// + + CreateGlobalEipRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateGlobalEipRequestBody& value); + + +protected: + CreateGlobalEipRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateGlobalEipRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody.h new file mode 100644 index 000000000..106a6c26d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipRequestBody + : public ModelBase +{ +public: + CreateGlobalEipRequestBody(); + virtual ~CreateGlobalEipRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipRequestBody members + + /// + /// + /// + + bool isDryRun() const; + bool dryRunIsSet() const; + void unsetdryRun(); + void setDryRun(bool value); + + /// + /// + /// + + CreateGlobalEipRequestBody_global_eip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const CreateGlobalEipRequestBody_global_eip& value); + + +protected: + bool dryRun_; + bool dryRunIsSet_; + CreateGlobalEipRequestBody_global_eip globalEip_; + bool globalEipIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip.h new file mode 100644 index 000000000..95f047565 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip.h @@ -0,0 +1,132 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_global_eip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_global_eip_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 请求体信息 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipRequestBody_global_eip + : public ModelBase +{ +public: + CreateGlobalEipRequestBody_global_eip(); + virtual ~CreateGlobalEipRequestBody_global_eip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipRequestBody_global_eip members + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽的ID + /// + + std::string getInternetBandwidthId() const; + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::string& value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string internetBandwidthId_; + bool internetBandwidthIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_global_eip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip_tags.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip_tags.h new file mode 100644 index 000000000..862a48f46 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip_tags.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_global_eip_tags_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_global_eip_tags_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipRequestBody_global_eip_tags + : public ModelBase +{ +public: + CreateGlobalEipRequestBody_global_eip_tags(); + virtual ~CreateGlobalEipRequestBody_global_eip_tags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipRequestBody_global_eip_tags members + + /// + /// 标签键 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipRequestBody_global_eip_tags_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipResponse.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipResponse.h new file mode 100644 index 000000000..2921ebac9 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipResponse + : public ModelBase, public HttpResponse +{ +public: + CreateGlobalEipResponse(); + virtual ~CreateGlobalEipResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipResponse members + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + CreateGlobalEip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const CreateGlobalEip& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + CreateGlobalEip globalEip_; + bool globalEipIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequest.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequest.h new file mode 100644 index 000000000..73ad23dd4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipSegmentRequest + : public ModelBase +{ +public: + CreateGlobalEipSegmentRequest(); + virtual ~CreateGlobalEipSegmentRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipSegmentRequest members + + /// + /// + /// + + CreateGlobalEipSegmentRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateGlobalEipSegmentRequestBody& value); + + +protected: + CreateGlobalEipSegmentRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateGlobalEipSegmentRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody.h new file mode 100644 index 000000000..3450138ea --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipSegmentRequestBody + : public ModelBase +{ +public: + CreateGlobalEipSegmentRequestBody(); + virtual ~CreateGlobalEipSegmentRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipSegmentRequestBody members + + /// + /// + /// + + CreateGlobalEipSegmentRequestBody_global_eip_segment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const CreateGlobalEipSegmentRequestBody_global_eip_segment& value); + + +protected: + CreateGlobalEipSegmentRequestBody_global_eip_segment globalEipSegment_; + bool globalEipSegmentIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment.h new file mode 100644 index 000000000..c07f8058f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment.h @@ -0,0 +1,144 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_global_eip_segment_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_global_eip_segment_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 创建全域弹性公网IP段请求对象信息 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipSegmentRequestBody_global_eip_segment + : public ModelBase +{ +public: + CreateGlobalEipSegmentRequestBody_global_eip_segment(); + virtual ~CreateGlobalEipSegmentRequestBody_global_eip_segment(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipSegmentRequestBody_global_eip_segment members + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 掩码长度。取值范围由GET /v3/{domain_id}/global-eip-segments/support-masks接口提供 + /// + + int32_t getMask() const; + bool maskIsSet() const; + void unsetmask(); + void setMask(int32_t value); + + /// + /// + /// + + CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth& value); + + /// + /// 全域弹性公网IP段标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t mask_; + bool maskIsSet_; + CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth internetBandwidth_; + bool internetBandwidthIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_global_eip_segment_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth.h new file mode 100644 index 000000000..c7c3707f9 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth.h @@ -0,0 +1,132 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth + : public ModelBase +{ +public: + CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth(); + virtual ~CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth members + + /// + /// 全域公网带宽的ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 全域弹性公网IP段标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string name_; + bool nameIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string type_; + bool typeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentResponse.h b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentResponse.h new file mode 100644 index 000000000..a1cc740c0 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateGlobalEipSegmentResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateGlobalEipSegmentResponse + : public ModelBase, public HttpResponse +{ +public: + CreateGlobalEipSegmentResponse(); + virtual ~CreateGlobalEipSegmentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateGlobalEipSegmentResponse members + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + ShortGlobalEipSegment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const ShortGlobalEipSegment& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + ShortGlobalEipSegment globalEipSegment_; + bool globalEipSegmentIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateGlobalEipSegmentResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidth.h b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidth.h new file mode 100644 index 000000000..8840e7b65 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidth.h @@ -0,0 +1,288 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidth_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateInternetBandwidth + : public ModelBase +{ +public: + CreateInternetBandwidth(); + virtual ~CreateInternetBandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateInternetBandwidth members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 增强95保底率 + /// + + int32_t getRatio95peak() const; + bool ratio95peakIsSet() const; + void unsetratio95peak(); + void setRatio95peak(int32_t value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 包周期时有值,订单信息 + /// + + std::string getBillingInfo() const; + bool billingInfoIsSet() const; + void unsetbillingInfo(); + void setBillingInfo(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// 全域公网带宽标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 全域公网带宽资源的锁状态 + /// + + std::vector& getLockInfos(); + bool lockInfosIsSet() const; + void unsetlockInfos(); + void setLockInfos(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string isp_; + bool ispIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t ratio95peak_; + bool ratio95peakIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string billingInfo_; + bool billingInfoIsSet_; + std::string status_; + bool statusIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string type_; + bool typeIsSet_; + std::vector lockInfos_; + bool lockInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequest.h new file mode 100644 index 000000000..7f7ff667c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateInternetBandwidthRequest + : public ModelBase +{ +public: + CreateInternetBandwidthRequest(); + virtual ~CreateInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateInternetBandwidthRequest members + + /// + /// + /// + + CreateInternetBandwidthRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateInternetBandwidthRequestBody& value); + + +protected: + CreateInternetBandwidthRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody.h b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody.h new file mode 100644 index 000000000..b4c8c283f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 全域公网带宽信息 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateInternetBandwidthRequestBody + : public ModelBase +{ +public: + CreateInternetBandwidthRequestBody(); + virtual ~CreateInternetBandwidthRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateInternetBandwidthRequestBody members + + /// + /// + /// + + CreateInternetBandwidthRequestBody_internet_bandwidth getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const CreateInternetBandwidthRequestBody_internet_bandwidth& value); + + +protected: + CreateInternetBandwidthRequestBody_internet_bandwidth internetBandwidth_; + bool internetBandwidthIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody_internet_bandwidth.h b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody_internet_bandwidth.h new file mode 100644 index 000000000..05ebad028 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody_internet_bandwidth.h @@ -0,0 +1,165 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequestBody_internet_bandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequestBody_internet_bandwidth_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 全域公网带宽信息 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateInternetBandwidthRequestBody_internet_bandwidth + : public ModelBase +{ +public: + CreateInternetBandwidthRequestBody_internet_bandwidth(); + virtual ~CreateInternetBandwidthRequestBody_internet_bandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateInternetBandwidthRequestBody_internet_bandwidth members + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 全域公网带宽标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + +protected: + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + std::string isp_; + bool ispIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string type_; + bool typeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthRequestBody_internet_bandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthResponse.h new file mode 100644 index 000000000..e68b621d0 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateInternetBandwidthResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + CreateInternetBandwidthResponse(); + virtual ~CreateInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateInternetBandwidthResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + CreateInternetBandwidth getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const CreateInternetBandwidth& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + CreateInternetBandwidth internetBandwidth_; + bool internetBandwidthIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateTag.h b/geip/include/huaweicloud/geip/v3/model/CreateTag.h new file mode 100644 index 000000000..fd079d715 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateTag.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateTag_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateTag_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 资源标签。 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateTag + : public ModelBase +{ +public: + CreateTag(); + virtual ~CreateTag(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTag members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateTag_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerRecord.h b/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerRecord.h new file mode 100644 index 000000000..a548f1eec --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerRecord.h @@ -0,0 +1,87 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerRecord_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerRecord_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateUserDisclaimerRecord + : public ModelBase +{ +public: + CreateUserDisclaimerRecord(); + virtual ~CreateUserDisclaimerRecord(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateUserDisclaimerRecord members + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + +protected: + std::string domainId_; + bool domainIdIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerRecord_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerRequest.h b/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerRequest.h new file mode 100644 index 000000000..acba30eb2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerRequest.h @@ -0,0 +1,59 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerRequest_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateUserDisclaimerRequest + : public ModelBase +{ +public: + CreateUserDisclaimerRequest(); + virtual ~CreateUserDisclaimerRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateUserDisclaimerRequest members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateUserDisclaimerRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerResponse.h b/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerResponse.h new file mode 100644 index 000000000..09b30d095 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateUserDisclaimerResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateUserDisclaimerResponse + : public ModelBase, public HttpResponse +{ +public: + CreateUserDisclaimerResponse(); + virtual ~CreateUserDisclaimerResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateUserDisclaimerResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + CreateUserDisclaimerRecord getUserDisclaimerRecord() const; + bool userDisclaimerRecordIsSet() const; + void unsetuserDisclaimerRecord(); + void setUserDisclaimerRecord(const CreateUserDisclaimerRecord& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + CreateUserDisclaimerRecord userDisclaimerRecord_; + bool userDisclaimerRecordIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateUserDisclaimerResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateV2TagRequestBody.h b/geip/include/huaweicloud/geip/v3/model/CreateV2TagRequestBody.h new file mode 100644 index 000000000..3fd20103a --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateV2TagRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateV2TagRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateV2TagRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateV2TagRequestBody + : public ModelBase +{ +public: + CreateV2TagRequestBody(); + virtual ~CreateV2TagRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateV2TagRequestBody members + + /// + /// + /// + + CreateV2TagRequestBody_tag getTag() const; + bool tagIsSet() const; + void unsettag(); + void setTag(const CreateV2TagRequestBody_tag& value); + + +protected: + CreateV2TagRequestBody_tag tag_; + bool tagIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateV2TagRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/CreateV2TagRequestBody_tag.h b/geip/include/huaweicloud/geip/v3/model/CreateV2TagRequestBody_tag.h new file mode 100644 index 000000000..3521d6843 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/CreateV2TagRequestBody_tag.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateV2TagRequestBody_tag_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateV2TagRequestBody_tag_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 标签对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT CreateV2TagRequestBody_tag + : public ModelBase +{ +public: + CreateV2TagRequestBody_tag(); + virtual ~CreateV2TagRequestBody_tag(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateV2TagRequestBody_tag members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_CreateV2TagRequestBody_tag_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGeipSegmentTagRequest.h b/geip/include/huaweicloud/geip/v3/model/DeleteGeipSegmentTagRequest.h new file mode 100644 index 000000000..0f40d458b --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGeipSegmentTagRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGeipSegmentTagRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGeipSegmentTagRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGeipSegmentTagRequest + : public ModelBase +{ +public: + DeleteGeipSegmentTagRequest(); + virtual ~DeleteGeipSegmentTagRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGeipSegmentTagRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// 待删除标签的key + /// + + std::string getTagKey() const; + bool tagKeyIsSet() const; + void unsettagKey(); + void setTagKey(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + std::string tagKey_; + bool tagKeyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteGeipSegmentTagRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGeipSegmentTagRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGeipSegmentTagResponse.h b/geip/include/huaweicloud/geip/v3/model/DeleteGeipSegmentTagResponse.h new file mode 100644 index 000000000..b062bd487 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGeipSegmentTagResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGeipSegmentTagResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGeipSegmentTagResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGeipSegmentTagResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteGeipSegmentTagResponse(); + virtual ~DeleteGeipSegmentTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGeipSegmentTagResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGeipSegmentTagResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipRequest.h b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipRequest.h new file mode 100644 index 000000000..fd8d49cc3 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGlobalEipRequest + : public ModelBase +{ +public: + DeleteGlobalEipRequest(); + virtual ~DeleteGlobalEipRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGlobalEipRequest members + + /// + /// global_eip_id + /// + + std::string getGlobalEipId() const; + bool globalEipIdIsSet() const; + void unsetglobalEipId(); + void setGlobalEipId(const std::string& value); + + +protected: + std::string globalEipId_; + bool globalEipIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteGlobalEipRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipResponse.h b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipResponse.h new file mode 100644 index 000000000..a7e89dd51 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGlobalEipResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteGlobalEipResponse(); + virtual ~DeleteGlobalEipResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGlobalEipResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipSegmentRequest.h b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipSegmentRequest.h new file mode 100644 index 000000000..451eda56d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipSegmentRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipSegmentRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipSegmentRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGlobalEipSegmentRequest + : public ModelBase +{ +public: + DeleteGlobalEipSegmentRequest(); + virtual ~DeleteGlobalEipSegmentRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGlobalEipSegmentRequest members + + /// + /// global_eip_segment_id + /// + + std::string getGlobalEipSegmentId() const; + bool globalEipSegmentIdIsSet() const; + void unsetglobalEipSegmentId(); + void setGlobalEipSegmentId(const std::string& value); + + +protected: + std::string globalEipSegmentId_; + bool globalEipSegmentIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteGlobalEipSegmentRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipSegmentRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipSegmentResponse.h b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipSegmentResponse.h new file mode 100644 index 000000000..cd6263213 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipSegmentResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipSegmentResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipSegmentResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGlobalEipSegmentResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteGlobalEipSegmentResponse(); + virtual ~DeleteGlobalEipSegmentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGlobalEipSegmentResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipSegmentResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipTagRequest.h b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipTagRequest.h new file mode 100644 index 000000000..54c04f73d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipTagRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipTagRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipTagRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGlobalEipTagRequest + : public ModelBase +{ +public: + DeleteGlobalEipTagRequest(); + virtual ~DeleteGlobalEipTagRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGlobalEipTagRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// 待删除标签的key + /// + + std::string getTagKey() const; + bool tagKeyIsSet() const; + void unsettagKey(); + void setTagKey(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + std::string tagKey_; + bool tagKeyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteGlobalEipTagRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipTagRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipTagResponse.h b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipTagResponse.h new file mode 100644 index 000000000..398c21077 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteGlobalEipTagResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipTagResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipTagResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteGlobalEipTagResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteGlobalEipTagResponse(); + virtual ~DeleteGlobalEipTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteGlobalEipTagResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteGlobalEipTagResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthRequest.h new file mode 100644 index 000000000..1cdd0d57c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteInternetBandwidthRequest + : public ModelBase +{ +public: + DeleteInternetBandwidthRequest(); + virtual ~DeleteInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteInternetBandwidthRequest members + + /// + /// 全域公网带宽的ID + /// + + std::string getInternetBandwidthId() const; + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::string& value); + + +protected: + std::string internetBandwidthId_; + bool internetBandwidthIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthResponse.h new file mode 100644 index 000000000..b68b15aa2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteInternetBandwidthResponse(); + virtual ~DeleteInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteInternetBandwidthResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthTagRequest.h b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthTagRequest.h new file mode 100644 index 000000000..99b28b93f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthTagRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthTagRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthTagRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteInternetBandwidthTagRequest + : public ModelBase +{ +public: + DeleteInternetBandwidthTagRequest(); + virtual ~DeleteInternetBandwidthTagRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteInternetBandwidthTagRequest members + + /// + /// 全域公网带宽的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// 待删除标签的key + /// + + std::string getTagKey() const; + bool tagKeyIsSet() const; + void unsettagKey(); + void setTagKey(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + std::string tagKey_; + bool tagKeyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteInternetBandwidthTagRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthTagRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthTagResponse.h b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthTagResponse.h new file mode 100644 index 000000000..2a10503ae --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteInternetBandwidthTagResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthTagResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthTagResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteInternetBandwidthTagResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteInternetBandwidthTagResponse(); + virtual ~DeleteInternetBandwidthTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteInternetBandwidthTagResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteInternetBandwidthTagResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteUserDisclaimerRequest.h b/geip/include/huaweicloud/geip/v3/model/DeleteUserDisclaimerRequest.h new file mode 100644 index 000000000..2e8f8c8d5 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteUserDisclaimerRequest.h @@ -0,0 +1,59 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteUserDisclaimerRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteUserDisclaimerRequest_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteUserDisclaimerRequest + : public ModelBase +{ +public: + DeleteUserDisclaimerRequest(); + virtual ~DeleteUserDisclaimerRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteUserDisclaimerRequest members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteUserDisclaimerRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteUserDisclaimerRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DeleteUserDisclaimerResponse.h b/geip/include/huaweicloud/geip/v3/model/DeleteUserDisclaimerResponse.h new file mode 100644 index 000000000..f429f02fd --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DeleteUserDisclaimerResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteUserDisclaimerResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteUserDisclaimerResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DeleteUserDisclaimerResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteUserDisclaimerResponse(); + virtual ~DeleteUserDisclaimerResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteUserDisclaimerResponse members + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DeleteUserDisclaimerResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidth.h b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidth.h new file mode 100644 index 000000000..5714950f0 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidth.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidth_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DetachInternetBandwidth + : public ModelBase +{ +public: + DetachInternetBandwidth(); + virtual ~DetachInternetBandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DetachInternetBandwidth members + + /// + /// 全局IP段id + /// + + std::string getGlobalEipSegmentId() const; + bool globalEipSegmentIdIsSet() const; + void unsetglobalEipSegmentId(); + void setGlobalEipSegmentId(const std::string& value); + + +protected: + std::string globalEipSegmentId_; + bool globalEipSegmentIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthGlobalEips.h b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthGlobalEips.h new file mode 100644 index 000000000..504c181b7 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthGlobalEips.h @@ -0,0 +1,312 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthGlobalEips_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthGlobalEips_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DetachInternetBandwidthGlobalEips + : public ModelBase +{ +public: + DetachInternetBandwidthGlobalEips(); + virtual ~DetachInternetBandwidthGlobalEips(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DetachInternetBandwidthGlobalEips members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// IPv4地址 + /// + + std::string getIpAddress() const; + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::string& value); + + /// + /// IPv6地址 + /// + + std::string getIpv6Address() const; + bool ipv6AddressIsSet() const; + void unsetipv6Address(); + void setIpv6Address(const std::string& value); + + /// + /// 是否冻结 + /// + + bool isFreezen() const; + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(bool value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 是否污染 + /// + + bool isPolluted() const; + bool pollutedIsSet() const; + void unsetpolluted(); + void setPolluted(bool value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + InternetBandwidthInfo getInternetBandwidthInfo() const; + bool internetBandwidthInfoIsSet() const; + void unsetinternetBandwidthInfo(); + void setInternetBandwidthInfo(const InternetBandwidthInfo& value); + + /// + /// + /// + + GlobalConnectionBandwidthInfo getGlobalConnectionBandwidthInfo() const; + bool globalConnectionBandwidthInfoIsSet() const; + void unsetglobalConnectionBandwidthInfo(); + void setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value); + + /// + /// + /// + + InstanceInfo getAssociateInstanceInfo() const; + bool associateInstanceInfoIsSet() const; + void unsetassociateInstanceInfo(); + void setAssociateInstanceInfo(const InstanceInfo& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string ipAddress_; + bool ipAddressIsSet_; + std::string ipv6Address_; + bool ipv6AddressIsSet_; + bool freezen_; + bool freezenIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + bool polluted_; + bool pollutedIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + InternetBandwidthInfo internetBandwidthInfo_; + bool internetBandwidthInfoIsSet_; + GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo_; + bool globalConnectionBandwidthInfoIsSet_; + InstanceInfo associateInstanceInfo_; + bool associateInstanceInfoIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthGlobalEips_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthRequest.h new file mode 100644 index 000000000..80292246e --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DetachInternetBandwidthRequest + : public ModelBase +{ +public: + DetachInternetBandwidthRequest(); + virtual ~DetachInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DetachInternetBandwidthRequest members + + /// + /// global_eip_id + /// + + std::string getGlobalEipId() const; + bool globalEipIdIsSet() const; + void unsetglobalEipId(); + void setGlobalEipId(const std::string& value); + + /// + /// 是否强制解绑 + /// + + bool isForceUnbind() const; + bool forceUnbindIsSet() const; + void unsetforceUnbind(); + void setForceUnbind(bool value); + + +protected: + std::string globalEipId_; + bool globalEipIdIsSet_; + bool forceUnbind_; + bool forceUnbindIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DetachInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthResponse.h new file mode 100644 index 000000000..bbbb920f9 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DetachInternetBandwidthResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DetachInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + DetachInternetBandwidthResponse(); + virtual ~DetachInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DetachInternetBandwidthResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + DetachInternetBandwidthGlobalEips getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const DetachInternetBandwidthGlobalEips& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + DetachInternetBandwidthGlobalEips globalEip_; + bool globalEipIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DetachInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceRequest.h b/geip/include/huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceRequest.h new file mode 100644 index 000000000..f0939bec5 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateGeipSegmentInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateGeipSegmentInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DisassociateGeipSegmentInstanceRequest + : public ModelBase +{ +public: + DisassociateGeipSegmentInstanceRequest(); + virtual ~DisassociateGeipSegmentInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DisassociateGeipSegmentInstanceRequest members + + /// + /// global_eip_segment_id + /// + + std::string getGlobalEipSegmentId() const; + bool globalEipSegmentIdIsSet() const; + void unsetglobalEipSegmentId(); + void setGlobalEipSegmentId(const std::string& value); + + +protected: + std::string globalEipSegmentId_; + bool globalEipSegmentIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DisassociateGeipSegmentInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateGeipSegmentInstanceRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceResponse.h b/geip/include/huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceResponse.h new file mode 100644 index 000000000..8b3166bbb --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateGeipSegmentInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateGeipSegmentInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DisassociateGeipSegmentInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + DisassociateGeipSegmentInstanceResponse(); + virtual ~DisassociateGeipSegmentInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DisassociateGeipSegmentInstanceResponse members + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + ShortGlobalEipSegment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const ShortGlobalEipSegment& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + ShortGlobalEipSegment globalEipSegment_; + bool globalEipSegmentIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateGeipSegmentInstanceResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DisassociateInstanceRequest.h b/geip/include/huaweicloud/geip/v3/model/DisassociateInstanceRequest.h new file mode 100644 index 000000000..7dce117a8 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DisassociateInstanceRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DisassociateInstanceRequest + : public ModelBase +{ +public: + DisassociateInstanceRequest(); + virtual ~DisassociateInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DisassociateInstanceRequest members + + /// + /// 解绑实例后是否保留GCB,false表示解绑实例后会同时删除GCB + /// + + bool isIsReserveGcb() const; + bool isReserveGcbIsSet() const; + void unsetisReserveGcb(); + void setIsReserveGcb(bool value); + + /// + /// global_eip_id + /// + + std::string getGlobalEipId() const; + bool globalEipIdIsSet() const; + void unsetglobalEipId(); + void setGlobalEipId(const std::string& value); + + +protected: + bool isReserveGcb_; + bool isReserveGcbIsSet_; + std::string globalEipId_; + bool globalEipIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DisassociateInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateInstanceRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/DisassociateInstanceResponse.h b/geip/include/huaweicloud/geip/v3/model/DisassociateInstanceResponse.h new file mode 100644 index 000000000..c3b2c1cdb --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/DisassociateInstanceResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT DisassociateInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + DisassociateInstanceResponse(); + virtual ~DisassociateInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DisassociateInstanceResponse members + + /// + /// + /// + + UpdateGlobalEip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const UpdateGlobalEip& value); + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + UpdateGlobalEip globalEip_; + bool globalEipIsSet_; + std::string jobId_; + bool jobIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_DisassociateInstanceResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ExtLimitPojo.h b/geip/include/huaweicloud/geip/v3/model/ExtLimitPojo.h new file mode 100644 index 000000000..7d028619c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ExtLimitPojo.h @@ -0,0 +1,85 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ExtLimitPojo_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ExtLimitPojo_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ExtLimitPojo + : public ModelBase +{ +public: + ExtLimitPojo(); + virtual ~ExtLimitPojo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ExtLimitPojo members + + /// + /// 入网全域公网带宽的最小size + /// + + int32_t getMinIngressSize() const; + bool minIngressSizeIsSet() const; + void unsetminIngressSize(); + void setMinIngressSize(int32_t value); + + /// + /// 入网全域公网带宽的最大size + /// + + int32_t getMaxIngressSize() const; + bool maxIngressSizeIsSet() const; + void unsetmaxIngressSize(); + void setMaxIngressSize(int32_t value); + + /// + /// 增强95保底率 + /// + + int32_t getRatio95peak() const; + bool ratio95peakIsSet() const; + void unsetratio95peak(); + void setRatio95peak(int32_t value); + + +protected: + int32_t minIngressSize_; + bool minIngressSizeIsSet_; + int32_t maxIngressSize_; + bool maxIngressSizeIsSet_; + int32_t ratio95peak_; + bool ratio95peakIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ExtLimitPojo_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/GeipResource.h b/geip/include/huaweicloud/geip/v3/model/GeipResource.h new file mode 100644 index 000000000..1189a2f05 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/GeipResource.h @@ -0,0 +1,100 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_GeipResource_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_GeipResource_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 查询过滤标签的资源 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT GeipResource + : public ModelBase +{ +public: + GeipResource(); + virtual ~GeipResource(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// GeipResource members + + /// + /// 资源ID标识符。 + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// 资源详情。 + /// + + Object getResourceDetail() const; + bool resourceDetailIsSet() const; + void unsetresourceDetail(); + void setResourceDetail(const Object& value); + + /// + /// 包含标签。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 实例名字。 + /// + + std::string getResourceName() const; + bool resourceNameIsSet() const; + void unsetresourceName(); + void setResourceName(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + Object resourceDetail_; + bool resourceDetailIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string resourceName_; + bool resourceNameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_GeipResource_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/GeipTags.h b/geip/include/huaweicloud/geip/v3/model/GeipTags.h new file mode 100644 index 000000000..e2c4cbb15 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/GeipTags.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_GeipTags_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_GeipTags_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 资源标签。 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT GeipTags + : public ModelBase +{ +public: + GeipTags(); + virtual ~GeipTags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// GeipTags members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// tag的value列表 + /// + + std::vector& getValues(); + bool valuesIsSet() const; + void unsetvalues(); + void setValues(const std::vector& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::vector values_; + bool valuesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_GeipTags_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/GetAccountTagsV2.h b/geip/include/huaweicloud/geip/v3/model/GetAccountTagsV2.h new file mode 100644 index 000000000..42ecd19f7 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/GetAccountTagsV2.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_GetAccountTagsV2_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_GetAccountTagsV2_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 资源标签。 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT GetAccountTagsV2 + : public ModelBase +{ +public: + GetAccountTagsV2(); + virtual ~GetAccountTagsV2(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// GetAccountTagsV2 members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// tag的value列表 + /// + + std::vector& getValues(); + bool valuesIsSet() const; + void unsetvalues(); + void setValues(const std::vector& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::vector values_; + bool valuesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_GetAccountTagsV2_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/GlobalConnectionBandwidthInfo.h b/geip/include/huaweicloud/geip/v3/model/GlobalConnectionBandwidthInfo.h new file mode 100644 index 000000000..7972c4eef --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/GlobalConnectionBandwidthInfo.h @@ -0,0 +1,119 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_GlobalConnectionBandwidthInfo_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_GlobalConnectionBandwidthInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT GlobalConnectionBandwidthInfo + : public ModelBase +{ +public: + GlobalConnectionBandwidthInfo(); + virtual ~GlobalConnectionBandwidthInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// GlobalConnectionBandwidthInfo members + + /// + /// 骨干带宽id + /// + + std::string getGcbId() const; + bool gcbIdIsSet() const; + void unsetgcbId(); + void setGcbId(const std::string& value); + + /// + /// 骨干带宽大小 + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 骨干带宽类型(城域、区域和大区) + /// + + std::string getGcbType() const; + bool gcbTypeIsSet() const; + void unsetgcbType(); + void setGcbType(const std::string& value); + + /// + /// 骨干带宽状态,取值:NORMAL 正常、FREEZED 冻结 + /// + + std::string getAdminState() const; + bool adminStateIsSet() const; + void unsetadminState(); + void setAdminState(const std::string& value); + + /// + /// 网络服务等级。Pt - 铂金,Au - 金牌,Ag - 银牌,Cu - 铜牌 + /// + + std::string getSlaLevel() const; + bool slaLevelIsSet() const; + void unsetslaLevel(); + void setSlaLevel(const std::string& value); + + /// + /// 线路质量金银铜对应的DSCP值 + /// + + int32_t getDscp() const; + bool dscpIsSet() const; + void unsetdscp(); + void setDscp(int32_t value); + + +protected: + std::string gcbId_; + bool gcbIdIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string gcbType_; + bool gcbTypeIsSet_; + std::string adminState_; + bool adminStateIsSet_; + std::string slaLevel_; + bool slaLevelIsSet_; + int32_t dscp_; + bool dscpIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_GlobalConnectionBandwidthInfo_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/InstanceInfo.h b/geip/include/huaweicloud/geip/v3/model/InstanceInfo.h new file mode 100644 index 000000000..3c2929700 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/InstanceInfo.h @@ -0,0 +1,152 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_InstanceInfo_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_InstanceInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT InstanceInfo + : public ModelBase +{ +public: + InstanceInfo(); + virtual ~InstanceInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// InstanceInfo members + + /// + /// region + /// + + std::string getRegion() const; + bool regionIsSet() const; + void unsetregion(); + void setRegion(const std::string& value); + + /// + /// quark后端地址 + /// + + std::string getQuarkVpcEndpoint() const; + bool quarkVpcEndpointIsSet() const; + void unsetquarkVpcEndpoint(); + void setQuarkVpcEndpoint(const std::string& value); + + /// + /// 项目ID + /// + + std::string getProjectId() const; + bool projectIdIsSet() const; + void unsetprojectId(); + void setProjectId(const std::string& value); + + /// + /// 支持绑定的实例类型 + /// + + std::string getInstanceType() const; + bool instanceTypeIsSet() const; + void unsetinstanceType(); + void setInstanceType(const std::string& value); + + /// + /// 实例ID + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 服务类型 + /// + + std::string getServiceType() const; + bool serviceTypeIsSet() const; + void unsetserviceType(); + void setServiceType(const std::string& value); + + /// + /// 服务id + /// + + std::string getServiceId() const; + bool serviceIdIsSet() const; + void unsetserviceId(); + void setServiceId(const std::string& value); + + /// + /// 中心站点or边缘站点 + /// + + std::string getPublicBorderGroup() const; + bool publicBorderGroupIsSet() const; + void unsetpublicBorderGroup(); + void setPublicBorderGroup(const std::string& value); + + /// + /// 绑定实例所在的站点 + /// + + std::string getInstanceSite() const; + bool instanceSiteIsSet() const; + void unsetinstanceSite(); + void setInstanceSite(const std::string& value); + + +protected: + std::string region_; + bool regionIsSet_; + std::string quarkVpcEndpoint_; + bool quarkVpcEndpointIsSet_; + std::string projectId_; + bool projectIdIsSet_; + std::string instanceType_; + bool instanceTypeIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string serviceType_; + bool serviceTypeIsSet_; + std::string serviceId_; + bool serviceIdIsSet_; + std::string publicBorderGroup_; + bool publicBorderGroupIsSet_; + std::string instanceSite_; + bool instanceSiteIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_InstanceInfo_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/InternetBandwidthInfo.h b/geip/include/huaweicloud/geip/v3/model/InternetBandwidthInfo.h new file mode 100644 index 000000000..f27f27ca6 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/InternetBandwidthInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_InternetBandwidthInfo_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_InternetBandwidthInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT InternetBandwidthInfo + : public ModelBase +{ +public: + InternetBandwidthInfo(); + virtual ~InternetBandwidthInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// InternetBandwidthInfo members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + +protected: + std::string id_; + bool idIsSet_; + int32_t size_; + bool sizeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_InternetBandwidthInfo_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListAccessSites.h b/geip/include/huaweicloud/geip/v3/model/ListAccessSites.h new file mode 100644 index 000000000..043dbe85f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListAccessSites.h @@ -0,0 +1,142 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSites_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSites_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListAccessSites + : public ModelBase +{ +public: + ListAccessSites(); + virtual ~ListAccessSites(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListAccessSites members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// pop站点托管的region(id) + /// + + std::string getProxyRegion() const; + bool proxyRegionIsSet() const; + void unsetproxyRegion(); + void setProxyRegion(const std::string& value); + + /// + /// 边缘站点az + /// + + std::string getIecAzCode() const; + bool iecAzCodeIsSet() const; + void unsetiecAzCode(); + void setIecAzCode(const std::string& value); + + /// + /// 英文名称 + /// + + std::string getEnName() const; + bool enNameIsSet() const; + void unsetenName(); + void setEnName(const std::string& value); + + /// + /// 中文名称 + /// + + std::string getCnName() const; + bool cnNameIsSet() const; + void unsetcnName(); + void setCnName(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string proxyRegion_; + bool proxyRegionIsSet_; + std::string iecAzCode_; + bool iecAzCodeIsSet_; + std::string enName_; + bool enNameIsSet_; + std::string cnName_; + bool cnNameIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSites_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListAccessSitesRequest.h b/geip/include/huaweicloud/geip/v3/model/ListAccessSitesRequest.h new file mode 100644 index 000000000..8a1e57f1f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListAccessSitesRequest.h @@ -0,0 +1,182 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSitesRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSitesRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListAccessSitesRequest + : public ModelBase +{ +public: + ListAccessSitesRequest(); + virtual ~ListAccessSitesRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListAccessSitesRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据名称过滤 + /// + + std::vector& getCode(); + bool codeIsSet() const; + void unsetcode(); + void setCode(const std::vector& value); + + /// + /// 根据proxy_region过滤 + /// + + std::vector& getProxyRegion(); + bool proxyRegionIsSet() const; + void unsetproxyRegion(); + void setProxyRegion(const std::vector& value); + + /// + /// 根据iec_az_code过滤 + /// + + std::vector& getIecAzCode(); + bool iecAzCodeIsSet() const; + void unsetiecAzCode(); + void setIecAzCode(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector code_; + bool codeIsSet_; + std::vector proxyRegion_; + bool proxyRegionIsSet_; + std::vector iecAzCode_; + bool iecAzCodeIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListAccessSitesRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSitesRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListAccessSitesResponse.h b/geip/include/huaweicloud/geip/v3/model/ListAccessSitesResponse.h new file mode 100644 index 000000000..594bc2b5b --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListAccessSitesResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSitesResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSitesResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListAccessSitesResponse + : public ModelBase, public HttpResponse +{ +public: + ListAccessSitesResponse(); + virtual ~ListAccessSitesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListAccessSitesResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 接入点列表 + /// + + std::vector& getAccessSites(); + bool accessSitesIsSet() const; + void unsetaccessSites(); + void setAccessSites(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector accessSites_; + bool accessSitesIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListAccessSitesResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipPools.h b/geip/include/huaweicloud/geip/v3/model/ListGeipPools.h new file mode 100644 index 000000000..1a0c27dca --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipPools.h @@ -0,0 +1,188 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPools_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPools_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipPools + : public ModelBase +{ +public: + ListGeipPools(); + virtual ~ListGeipPools(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipPools members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 英文名称 + /// + + std::string getEnName() const; + bool enNameIsSet() const; + void unsetenName(); + void setEnName(const std::string& value); + + /// + /// 中文名称 + /// + + std::string getCnName() const; + bool cnNameIsSet() const; + void unsetcnName(); + void setCnName(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + std::vector& getAllowedBandwidthTypes(); + bool allowedBandwidthTypesIsSet() const; + void unsetallowedBandwidthTypes(); + void setAllowedBandwidthTypes(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string enName_; + bool enNameIsSet_; + std::string cnName_; + bool cnNameIsSet_; + std::string status_; + bool statusIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string type_; + bool typeIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + std::vector allowedBandwidthTypes_; + bool allowedBandwidthTypesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPools_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipPoolsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGeipPoolsRequest.h new file mode 100644 index 000000000..557df5771 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipPoolsRequest.h @@ -0,0 +1,215 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPoolsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPoolsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipPoolsRequest + : public ModelBase +{ +public: + ListGeipPoolsRequest(); + virtual ~ListGeipPoolsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipPoolsRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据名称过滤 + /// + + std::vector& getCode(); + bool codeIsSet() const; + void unsetcode(); + void setCode(const std::vector& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据运营商线路过滤 + /// + + std::vector& getIsp(); + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::vector& value); + + /// + /// 根据IP版本过滤 + /// + + std::vector& getIpVersion(); + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(const std::vector& value); + + /// + /// 根据池子状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + /// + /// 根据池子里存的内容过滤。取值:GEIP-用于分配全域弹性公网IP单地址;GEIP_SEGMENT-用于分配全域弹性公网IP段 + /// + + std::vector& getType(); + bool typeIsSet() const; + void unsettype(); + void setType(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector code_; + bool codeIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector isp_; + bool ispIsSet_; + std::vector ipVersion_; + bool ipVersionIsSet_; + std::vector status_; + bool statusIsSet_; + std::vector type_; + bool typeIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGeipPoolsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPoolsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipPoolsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGeipPoolsResponse.h new file mode 100644 index 000000000..953716362 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipPoolsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPoolsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPoolsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipPoolsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGeipPoolsResponse(); + virtual ~ListGeipPoolsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipPoolsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 全域弹性公网IP池列表 + /// + + std::vector& getGeipPools(); + bool geipPoolsIsSet() const; + void unsetgeipPools(); + void setGeipPools(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector geipPools_; + bool geipPoolsIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipPoolsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipResourceQuotasRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGeipResourceQuotasRequest.h new file mode 100644 index 000000000..fdee5e31e --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipResourceQuotasRequest.h @@ -0,0 +1,127 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipResourceQuotasRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipResourceQuotasRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipResourceQuotasRequest + : public ModelBase +{ +public: + ListGeipResourceQuotasRequest(); + virtual ~ListGeipResourceQuotasRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipResourceQuotasRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 根据类型过滤 + /// + + std::vector& getType(); + bool typeIsSet() const; + void unsettype(); + void setType(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector type_; + bool typeIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGeipResourceQuotasRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipResourceQuotasRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipResourceQuotasResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGeipResourceQuotasResponse.h new file mode 100644 index 000000000..8d8dc7874 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipResourceQuotasResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipResourceQuotasResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipResourceQuotasResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipResourceQuotasResponse + : public ModelBase, public HttpResponse +{ +public: + ListGeipResourceQuotasResponse(); + virtual ~ListGeipResourceQuotasResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipResourceQuotasResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + ListQuotas getQuotas() const; + bool quotasIsSet() const; + void unsetquotas(); + void setQuotas(const ListQuotas& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + ListQuotas quotas_; + bool quotasIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipResourceQuotasResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsRequest.h new file mode 100644 index 000000000..b4bf8eab8 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentCountFilterTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentCountFilterTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipSegmentCountFilterTagsRequest + : public ModelBase +{ +public: + ListGeipSegmentCountFilterTagsRequest(); + virtual ~ListGeipSegmentCountFilterTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipSegmentCountFilterTagsRequest members + + /// + /// + /// + + ListResourcesByTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ListResourcesByTagsRequestBody& value); + + +protected: + ListResourcesByTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGeipSegmentCountFilterTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentCountFilterTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsResponse.h new file mode 100644 index 000000000..62fe3e67c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsResponse.h @@ -0,0 +1,89 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentCountFilterTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentCountFilterTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipSegmentCountFilterTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGeipSegmentCountFilterTagsResponse(); + virtual ~ListGeipSegmentCountFilterTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipSegmentCountFilterTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentCountFilterTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsRequest.h new file mode 100644 index 000000000..f8feb9a76 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsRequest.h @@ -0,0 +1,59 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentDomainTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentDomainTagsRequest_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipSegmentDomainTagsRequest + : public ModelBase +{ +public: + ListGeipSegmentDomainTagsRequest(); + virtual ~ListGeipSegmentDomainTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipSegmentDomainTagsRequest members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGeipSegmentDomainTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentDomainTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsResponse.h new file mode 100644 index 000000000..0ec09887c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsResponse.h @@ -0,0 +1,102 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentDomainTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentDomainTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipSegmentDomainTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGeipSegmentDomainTagsResponse(); + virtual ~ListGeipSegmentDomainTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipSegmentDomainTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// tag列表信息 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentDomainTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsRequest.h new file mode 100644 index 000000000..da6dcbbd7 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentFilterTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentFilterTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipSegmentFilterTagsRequest + : public ModelBase +{ +public: + ListGeipSegmentFilterTagsRequest(); + virtual ~ListGeipSegmentFilterTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipSegmentFilterTagsRequest members + + /// + /// 每页条数 + /// + + std::vector& getLimit(); + bool limitIsSet() const; + void unsetlimit(); + void setLimit(std::vector value); + + /// + /// 分页起始点 + /// + + std::vector& getOffset(); + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(std::vector value); + + /// + /// + /// + + ListResourcesByTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ListResourcesByTagsRequestBody& value); + + +protected: + std::vector limit_; + bool limitIsSet_; + std::vector offset_; + bool offsetIsSet_; + ListResourcesByTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGeipSegmentFilterTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentFilterTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsResponse.h new file mode 100644 index 000000000..e8d36e5f2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsResponse.h @@ -0,0 +1,102 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentFilterTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentFilterTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGeipSegmentFilterTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGeipSegmentFilterTagsResponse(); + virtual ~ListGeipSegmentFilterTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGeipSegmentFilterTagsResponse members + + /// + /// 资源列表 + /// + + std::vector& getResources(); + bool resourcesIsSet() const; + void unsetresources(); + void setResources(const std::vector& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::vector resources_; + bool resourcesIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::string requestId_; + bool requestIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGeipSegmentFilterTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsRequest.h new file mode 100644 index 000000000..f689b3532 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipCountFilterTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipCountFilterTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipCountFilterTagsRequest + : public ModelBase +{ +public: + ListGlobalEipCountFilterTagsRequest(); + virtual ~ListGlobalEipCountFilterTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipCountFilterTagsRequest members + + /// + /// + /// + + ListResourcesByTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ListResourcesByTagsRequestBody& value); + + +protected: + ListResourcesByTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGlobalEipCountFilterTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipCountFilterTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsResponse.h new file mode 100644 index 000000000..23de9024d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsResponse.h @@ -0,0 +1,89 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipCountFilterTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipCountFilterTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipCountFilterTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGlobalEipCountFilterTagsResponse(); + virtual ~ListGlobalEipCountFilterTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipCountFilterTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipCountFilterTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipDomainTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipDomainTagsRequest.h new file mode 100644 index 000000000..8cc6f6f88 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipDomainTagsRequest.h @@ -0,0 +1,59 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipDomainTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipDomainTagsRequest_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipDomainTagsRequest + : public ModelBase +{ +public: + ListGlobalEipDomainTagsRequest(); + virtual ~ListGlobalEipDomainTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipDomainTagsRequest members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGlobalEipDomainTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipDomainTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipDomainTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipDomainTagsResponse.h new file mode 100644 index 000000000..450073cc0 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipDomainTagsResponse.h @@ -0,0 +1,102 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipDomainTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipDomainTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipDomainTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGlobalEipDomainTagsResponse(); + virtual ~ListGlobalEipDomainTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipDomainTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// tag列表信息 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipDomainTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipFilterTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipFilterTagsRequest.h new file mode 100644 index 000000000..bc60289d0 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipFilterTagsRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipFilterTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipFilterTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipFilterTagsRequest + : public ModelBase +{ +public: + ListGlobalEipFilterTagsRequest(); + virtual ~ListGlobalEipFilterTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipFilterTagsRequest members + + /// + /// 每页条数 + /// + + std::vector& getLimit(); + bool limitIsSet() const; + void unsetlimit(); + void setLimit(std::vector value); + + /// + /// 分页起始点 + /// + + std::vector& getOffset(); + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(std::vector value); + + /// + /// + /// + + ListResourcesByTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ListResourcesByTagsRequestBody& value); + + +protected: + std::vector limit_; + bool limitIsSet_; + std::vector offset_; + bool offsetIsSet_; + ListResourcesByTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGlobalEipFilterTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipFilterTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipFilterTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipFilterTagsResponse.h new file mode 100644 index 000000000..4e4d69827 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipFilterTagsResponse.h @@ -0,0 +1,102 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipFilterTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipFilterTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipFilterTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGlobalEipFilterTagsResponse(); + virtual ~ListGlobalEipFilterTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipFilterTagsResponse members + + /// + /// 资源列表 + /// + + std::vector& getResources(); + bool resourcesIsSet() const; + void unsetresources(); + void setResources(const std::vector& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::vector resources_; + bool resourcesIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::string requestId_; + bool requestIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipFilterTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegments.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegments.h new file mode 100644 index 000000000..32b636dc2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegments.h @@ -0,0 +1,289 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegments_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegments_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipSegments + : public ModelBase +{ +public: + ListGlobalEipSegments(); + virtual ~ListGlobalEipSegments(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipSegments members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// 全域公网IP段的cidr + /// + + std::string getCidr() const; + bool cidrIsSet() const; + void unsetcidr(); + void setCidr(const std::string& value); + + /// + /// 指定cidr-v6创建 + /// + + std::string getCidrV6() const; + bool cidrV6IsSet() const; + void unsetcidrV6(); + void setCidrV6(const std::string& value); + + /// + /// 是否冻结 + /// + + bool isFreezen() const; + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(bool value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + InternetBandwidthInfo getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const InternetBandwidthInfo& value); + + /// + /// + /// + + InstanceInfo getAssociateInstance() const; + bool associateInstanceIsSet() const; + void unsetassociateInstance(); + void setAssociateInstance(const InstanceInfo& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域弹性公网IP段标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string cidr_; + bool cidrIsSet_; + std::string cidrV6_; + bool cidrV6IsSet_; + bool freezen_; + bool freezenIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + InternetBandwidthInfo internetBandwidth_; + bool internetBandwidthIsSet_; + InstanceInfo associateInstance_; + bool associateInstanceIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegments_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegmentsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegmentsRequest.h new file mode 100644 index 000000000..0e43c79f1 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegmentsRequest.h @@ -0,0 +1,391 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegmentsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegmentsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipSegmentsRequest + : public ModelBase +{ +public: + ListGlobalEipSegmentsRequest(); + virtual ~ListGlobalEipSegmentsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipSegmentsRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据资源ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据全域公网带宽的ID过滤 + /// + + std::vector& getInternetBandwidthId(); + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::vector& value); + + /// + /// 根据名称过滤 + /// + + std::vector& getName(); + bool nameIsSet() const; + void unsetname(); + void setName(const std::vector& value); + + /// + /// 根据名称模糊匹配 + /// + + std::string getNameLike() const; + bool nameLikeIsSet() const; + void unsetnameLike(); + void setNameLike(const std::string& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据全域弹性公网IP池名称过滤 + /// + + std::vector& getGeipPoolName(); + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::vector& value); + + /// + /// 根据运营商线路过滤 + /// + + std::vector& getIsp(); + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::vector& value); + + /// + /// 根据可分配的IP版本过滤 + /// + + std::vector& getIpVersion(); + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(std::vector value); + + /// + /// 根据分配的CIDR过滤 + /// + + std::vector& getCidr(); + bool cidrIsSet() const; + void unsetcidr(); + void setCidr(const std::vector& value); + + /// + /// 根据分配的IPv6 CIDR过滤 + /// + + std::vector& getCidrV6(); + bool cidrV6IsSet() const; + void unsetcidrV6(); + void setCidrV6(const std::vector& value); + + /// + /// 根据是否冻结过滤 + /// + + std::vector& getFreezen(); + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(std::vector value); + + /// + /// 根据是否绑定全域公网带宽过滤 + /// + + std::vector& getInternetBandwidthIsNull(); + bool internetBandwidthIsNullIsSet() const; + void unsetinternetBandwidthIsNull(); + void setInternetBandwidthIsNull(std::vector value); + + /// + /// 根据状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + /// + /// 根据绑定实例所属的局点过滤 + /// + + std::vector& getAssociateInstanceRegion(); + bool associateInstanceRegionIsSet() const; + void unsetassociateInstanceRegion(); + void setAssociateInstanceRegion(const std::vector& value); + + /// + /// 根据绑定实例的类型过滤 + /// + + std::vector& getAssociateInstanceInstanceType(); + bool associateInstanceInstanceTypeIsSet() const; + void unsetassociateInstanceInstanceType(); + void setAssociateInstanceInstanceType(const std::vector& value); + + /// + /// 根据绑定实例所属的边缘信息过滤 + /// + + std::vector& getAssociateInstancePublicBorderGroup(); + bool associateInstancePublicBorderGroupIsSet() const; + void unsetassociateInstancePublicBorderGroup(); + void setAssociateInstancePublicBorderGroup(const std::vector& value); + + /// + /// 根据绑定实例所在的站点过滤 + /// + + std::vector& getAssociateInstanceInstanceSite(); + bool associateInstanceInstanceSiteIsSet() const; + void unsetassociateInstanceInstanceSite(); + void setAssociateInstanceInstanceSite(const std::vector& value); + + /// + /// 根据绑定实例的ID过滤 + /// + + std::vector& getAssociateInstanceInstanceId(); + bool associateInstanceInstanceIdIsSet() const; + void unsetassociateInstanceInstanceId(); + void setAssociateInstanceInstanceId(const std::vector& value); + + /// + /// 根据绑定实例所属的项目ID过滤 + /// + + std::vector& getAssociateInstanceProjectId(); + bool associateInstanceProjectIdIsSet() const; + void unsetassociateInstanceProjectId(); + void setAssociateInstanceProjectId(const std::vector& value); + + /// + /// 根据绑定实例所属的服务ID过滤 + /// + + std::vector& getAssociateInstanceServiceId(); + bool associateInstanceServiceIdIsSet() const; + void unsetassociateInstanceServiceId(); + void setAssociateInstanceServiceId(const std::vector& value); + + /// + /// 根据绑定实例的服务类型过滤 + /// + + std::vector& getAssociateInstanceServiceType(); + bool associateInstanceServiceTypeIsSet() const; + void unsetassociateInstanceServiceType(); + void setAssociateInstanceServiceType(const std::vector& value); + + /// + /// 根据企业项目ID过滤 + /// + + std::vector& getEnterpriseProjectId(); + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::vector& value); + + /// + /// 根据标签过滤 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector internetBandwidthId_; + bool internetBandwidthIdIsSet_; + std::vector name_; + bool nameIsSet_; + std::string nameLike_; + bool nameLikeIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector geipPoolName_; + bool geipPoolNameIsSet_; + std::vector isp_; + bool ispIsSet_; + std::vector ipVersion_; + bool ipVersionIsSet_; + std::vector cidr_; + bool cidrIsSet_; + std::vector cidrV6_; + bool cidrV6IsSet_; + std::vector freezen_; + bool freezenIsSet_; + std::vector internetBandwidthIsNull_; + bool internetBandwidthIsNullIsSet_; + std::vector status_; + bool statusIsSet_; + std::vector associateInstanceRegion_; + bool associateInstanceRegionIsSet_; + std::vector associateInstanceInstanceType_; + bool associateInstanceInstanceTypeIsSet_; + std::vector associateInstancePublicBorderGroup_; + bool associateInstancePublicBorderGroupIsSet_; + std::vector associateInstanceInstanceSite_; + bool associateInstanceInstanceSiteIsSet_; + std::vector associateInstanceInstanceId_; + bool associateInstanceInstanceIdIsSet_; + std::vector associateInstanceProjectId_; + bool associateInstanceProjectIdIsSet_; + std::vector associateInstanceServiceId_; + bool associateInstanceServiceIdIsSet_; + std::vector associateInstanceServiceType_; + bool associateInstanceServiceTypeIsSet_; + std::vector enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGlobalEipSegmentsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegmentsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegmentsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegmentsResponse.h new file mode 100644 index 000000000..9363dc529 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipSegmentsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegmentsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegmentsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipSegmentsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGlobalEipSegmentsResponse(); + virtual ~ListGlobalEipSegmentsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipSegmentsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 全域弹性公网IP段对象 + /// + + std::vector& getGlobalEipSegments(); + bool globalEipSegmentsIsSet() const; + void unsetglobalEipSegments(); + void setGlobalEipSegments(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector globalEipSegments_; + bool globalEipSegmentsIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipSegmentsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEips.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEips.h new file mode 100644 index 000000000..e998bcd56 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEips.h @@ -0,0 +1,312 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEips_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEips_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEips + : public ModelBase +{ +public: + ListGlobalEips(); + virtual ~ListGlobalEips(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEips members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// IPv4地址 + /// + + std::string getIpAddress() const; + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::string& value); + + /// + /// IPv6地址 + /// + + std::string getIpv6Address() const; + bool ipv6AddressIsSet() const; + void unsetipv6Address(); + void setIpv6Address(const std::string& value); + + /// + /// 是否冻结 + /// + + bool isFreezen() const; + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(bool value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 是否污染 + /// + + bool isPolluted() const; + bool pollutedIsSet() const; + void unsetpolluted(); + void setPolluted(bool value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + InternetBandwidthInfo getInternetBandwidthInfo() const; + bool internetBandwidthInfoIsSet() const; + void unsetinternetBandwidthInfo(); + void setInternetBandwidthInfo(const InternetBandwidthInfo& value); + + /// + /// + /// + + GlobalConnectionBandwidthInfo getGlobalConnectionBandwidthInfo() const; + bool globalConnectionBandwidthInfoIsSet() const; + void unsetglobalConnectionBandwidthInfo(); + void setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value); + + /// + /// + /// + + InstanceInfo getAssociateInstanceInfo() const; + bool associateInstanceInfoIsSet() const; + void unsetassociateInstanceInfo(); + void setAssociateInstanceInfo(const InstanceInfo& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string ipAddress_; + bool ipAddressIsSet_; + std::string ipv6Address_; + bool ipv6AddressIsSet_; + bool freezen_; + bool freezenIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + bool polluted_; + bool pollutedIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + InternetBandwidthInfo internetBandwidthInfo_; + bool internetBandwidthInfoIsSet_; + GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo_; + bool globalConnectionBandwidthInfoIsSet_; + InstanceInfo associateInstanceInfo_; + bool associateInstanceInfoIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEips_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsRequest.h new file mode 100644 index 000000000..1f52db252 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsRequest.h @@ -0,0 +1,413 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipsRequest + : public ModelBase +{ +public: + ListGlobalEipsRequest(); + virtual ~ListGlobalEipsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipsRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据全域公网带宽的ID过滤 + /// + + std::vector& getInternetBandwidthId(); + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::vector& value); + + /// + /// 根据名称过滤 + /// + + std::vector& getName(); + bool nameIsSet() const; + void unsetname(); + void setName(const std::vector& value); + + /// + /// 根据名称模糊匹配 + /// + + std::string getNameLike() const; + bool nameLikeIsSet() const; + void unsetnameLike(); + void setNameLike(const std::string& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据全域弹性公网IP池名称过滤 + /// + + std::vector& getGeipPoolName(); + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::vector& value); + + /// + /// 根据运营商线路过滤 + /// + + std::vector& getIsp(); + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::vector& value); + + /// + /// 根据IP版本过滤 + /// + + std::vector& getIpVersion(); + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(std::vector value); + + /// + /// 根据ip地址过滤 + /// + + std::vector& getIpAddress(); + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::vector& value); + + /// + /// 根据ipv6地址过滤 + /// + + std::vector& getIpv6Address(); + bool ipv6AddressIsSet() const; + void unsetipv6Address(); + void setIpv6Address(const std::vector& value); + + /// + /// 根据是否冻结过滤 + /// + + std::vector& getFreezen(); + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(std::vector value); + + /// + /// 根据是否污染过滤 + /// + + std::vector& getPolluted(); + bool pollutedIsSet() const; + void unsetpolluted(); + void setPolluted(std::vector value); + + /// + /// 根据是否绑定全域公网带宽过滤 + /// + + std::vector& getInternetBandwidthIsNull(); + bool internetBandwidthIsNullIsSet() const; + void unsetinternetBandwidthIsNull(); + void setInternetBandwidthIsNull(std::vector value); + + /// + /// 根据是否绑定骨干带宽过滤 + /// + + std::vector& getGcbBandwidthIsNull(); + bool gcbBandwidthIsNullIsSet() const; + void unsetgcbBandwidthIsNull(); + void setGcbBandwidthIsNull(std::vector value); + + /// + /// 根据资源状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + /// + /// 根据绑定实例所属的局点过滤 + /// + + std::vector& getAssociateInstanceInfoRegion(); + bool associateInstanceInfoRegionIsSet() const; + void unsetassociateInstanceInfoRegion(); + void setAssociateInstanceInfoRegion(const std::vector& value); + + /// + /// 根据绑定实例的类型过滤 + /// + + std::vector& getAssociateInstanceInfoInstanceType(); + bool associateInstanceInfoInstanceTypeIsSet() const; + void unsetassociateInstanceInfoInstanceType(); + void setAssociateInstanceInfoInstanceType(const std::vector& value); + + /// + /// 根据绑定实例所属的边缘信息过滤 + /// + + std::vector& getAssociateInstanceInfoPublicBorderGroup(); + bool associateInstanceInfoPublicBorderGroupIsSet() const; + void unsetassociateInstanceInfoPublicBorderGroup(); + void setAssociateInstanceInfoPublicBorderGroup(const std::vector& value); + + /// + /// 根据绑定实例所在的站点过滤 + /// + + std::vector& getAssociateInstanceInfoInstanceSite(); + bool associateInstanceInfoInstanceSiteIsSet() const; + void unsetassociateInstanceInfoInstanceSite(); + void setAssociateInstanceInfoInstanceSite(const std::vector& value); + + /// + /// 根据绑定实例的ID过滤 + /// + + std::vector& getAssociateInstanceInfoInstanceId(); + bool associateInstanceInfoInstanceIdIsSet() const; + void unsetassociateInstanceInfoInstanceId(); + void setAssociateInstanceInfoInstanceId(const std::vector& value); + + /// + /// 根据绑定实例所属的项目ID过滤 + /// + + std::vector& getAssociateInstanceInfoProjectId(); + bool associateInstanceInfoProjectIdIsSet() const; + void unsetassociateInstanceInfoProjectId(); + void setAssociateInstanceInfoProjectId(const std::vector& value); + + /// + /// 根据绑定实例所属的服务ID过滤 + /// + + std::vector& getAssociateInstanceInfoServiceId(); + bool associateInstanceInfoServiceIdIsSet() const; + void unsetassociateInstanceInfoServiceId(); + void setAssociateInstanceInfoServiceId(const std::vector& value); + + /// + /// 根据绑定实例的服务类型过滤 + /// + + std::vector& getAssociateInstanceInfoServiceType(); + bool associateInstanceInfoServiceTypeIsSet() const; + void unsetassociateInstanceInfoServiceType(); + void setAssociateInstanceInfoServiceType(const std::vector& value); + + /// + /// 根据企业项目ID过滤 + /// + + std::vector& getEnterpriseProjectId(); + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::vector& value); + + /// + /// 根据标签过滤 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector internetBandwidthId_; + bool internetBandwidthIdIsSet_; + std::vector name_; + bool nameIsSet_; + std::string nameLike_; + bool nameLikeIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector geipPoolName_; + bool geipPoolNameIsSet_; + std::vector isp_; + bool ispIsSet_; + std::vector ipVersion_; + bool ipVersionIsSet_; + std::vector ipAddress_; + bool ipAddressIsSet_; + std::vector ipv6Address_; + bool ipv6AddressIsSet_; + std::vector freezen_; + bool freezenIsSet_; + std::vector polluted_; + bool pollutedIsSet_; + std::vector internetBandwidthIsNull_; + bool internetBandwidthIsNullIsSet_; + std::vector gcbBandwidthIsNull_; + bool gcbBandwidthIsNullIsSet_; + std::vector status_; + bool statusIsSet_; + std::vector associateInstanceInfoRegion_; + bool associateInstanceInfoRegionIsSet_; + std::vector associateInstanceInfoInstanceType_; + bool associateInstanceInfoInstanceTypeIsSet_; + std::vector associateInstanceInfoPublicBorderGroup_; + bool associateInstanceInfoPublicBorderGroupIsSet_; + std::vector associateInstanceInfoInstanceSite_; + bool associateInstanceInfoInstanceSiteIsSet_; + std::vector associateInstanceInfoInstanceId_; + bool associateInstanceInfoInstanceIdIsSet_; + std::vector associateInstanceInfoProjectId_; + bool associateInstanceInfoProjectIdIsSet_; + std::vector associateInstanceInfoServiceId_; + bool associateInstanceInfoServiceIdIsSet_; + std::vector associateInstanceInfoServiceType_; + bool associateInstanceInfoServiceTypeIsSet_; + std::vector enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListGlobalEipsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsResponse.h new file mode 100644 index 000000000..3e16bdef3 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipsResponse + : public ModelBase, public HttpResponse +{ +public: + ListGlobalEipsResponse(); + virtual ~ListGlobalEipsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 全域弹性公网IP列表 + /// + + std::vector& getGlobalEips(); + bool globalEipsIsSet() const; + void unsetglobalEips(); + void setGlobalEips(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector globalEips_; + bool globalEipsIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsResponseBody_page_info.h b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsResponseBody_page_info.h new file mode 100644 index 000000000..c45b39915 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListGlobalEipsResponseBody_page_info.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsResponseBody_page_info_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsResponseBody_page_info_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 分页页码信息 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListGlobalEipsResponseBody_page_info + : public ModelBase +{ +public: + ListGlobalEipsResponseBody_page_info(); + virtual ~ListGlobalEipsResponseBody_page_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListGlobalEipsResponseBody_page_info members + + /// + /// 翻页时,作为后一页的marker取值 + /// + + std::string getNextMarker() const; + bool nextMarkerIsSet() const; + void unsetnextMarker(); + void setNextMarker(const std::string& value); + + /// + /// 翻页时,作为前一页的marker取值 + /// + + std::string getPreviousMarker() const; + bool previousMarkerIsSet() const; + void unsetpreviousMarker(); + void setPreviousMarker(const std::string& value); + + /// + /// 当前页的数据总数 + /// + + int32_t getCurrentCount() const; + bool currentCountIsSet() const; + void unsetcurrentCount(); + void setCurrentCount(int32_t value); + + +protected: + std::string nextMarker_; + bool nextMarkerIsSet_; + std::string previousMarker_; + bool previousMarkerIsSet_; + int32_t currentCount_; + bool currentCountIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListGlobalEipsResponseBody_page_info_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsRequest.h new file mode 100644 index 000000000..11ecf9274 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthCountFilterTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthCountFilterTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthCountFilterTagsRequest + : public ModelBase +{ +public: + ListInternetBandwidthCountFilterTagsRequest(); + virtual ~ListInternetBandwidthCountFilterTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthCountFilterTagsRequest members + + /// + /// + /// + + ListResourcesByTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ListResourcesByTagsRequestBody& value); + + +protected: + ListResourcesByTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListInternetBandwidthCountFilterTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthCountFilterTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsResponse.h new file mode 100644 index 000000000..ccec2b2dd --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsResponse.h @@ -0,0 +1,89 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthCountFilterTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthCountFilterTagsResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthCountFilterTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListInternetBandwidthCountFilterTagsResponse(); + virtual ~ListInternetBandwidthCountFilterTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthCountFilterTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthCountFilterTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsRequest.h new file mode 100644 index 000000000..37d194eb0 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsRequest.h @@ -0,0 +1,59 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthDomainTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthDomainTagsRequest_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthDomainTagsRequest + : public ModelBase +{ +public: + ListInternetBandwidthDomainTagsRequest(); + virtual ~ListInternetBandwidthDomainTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthDomainTagsRequest members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListInternetBandwidthDomainTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthDomainTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsResponse.h new file mode 100644 index 000000000..7cd75239f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsResponse.h @@ -0,0 +1,80 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthDomainTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthDomainTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthDomainTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListInternetBandwidthDomainTagsResponse(); + virtual ~ListInternetBandwidthDomainTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthDomainTagsResponse members + + /// + /// 所有标签。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthDomainTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsRequest.h new file mode 100644 index 000000000..d6e4112f5 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthFilterTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthFilterTagsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthFilterTagsRequest + : public ModelBase +{ +public: + ListInternetBandwidthFilterTagsRequest(); + virtual ~ListInternetBandwidthFilterTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthFilterTagsRequest members + + /// + /// 每页条数 + /// + + std::vector& getLimit(); + bool limitIsSet() const; + void unsetlimit(); + void setLimit(std::vector value); + + /// + /// 分页起始点 + /// + + std::vector& getOffset(); + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(std::vector value); + + /// + /// + /// + + ListResourcesByTagsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ListResourcesByTagsRequestBody& value); + + +protected: + std::vector limit_; + bool limitIsSet_; + std::vector offset_; + bool offsetIsSet_; + ListResourcesByTagsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListInternetBandwidthFilterTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthFilterTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsResponse.h new file mode 100644 index 000000000..3156d6dc2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsResponse.h @@ -0,0 +1,102 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthFilterTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthFilterTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthFilterTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ListInternetBandwidthFilterTagsResponse(); + virtual ~ListInternetBandwidthFilterTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthFilterTagsResponse members + + /// + /// 资源列表 + /// + + std::vector& getResources(); + bool resourcesIsSet() const; + void unsetresources(); + void setResources(const std::vector& value); + + /// + /// 当前列表中资源数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::vector resources_; + bool resourcesIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::string requestId_; + bool requestIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthFilterTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimits.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimits.h new file mode 100644 index 000000000..b7387bae1 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimits.h @@ -0,0 +1,120 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimits_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimits_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthLimits + : public ModelBase +{ +public: + ListInternetBandwidthLimits(); + virtual ~ListInternetBandwidthLimits(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthLimits members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 全域公网带宽的计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 该类型全域公网带宽可购买的最小size + /// + + int32_t getMinSize() const; + bool minSizeIsSet() const; + void unsetminSize(); + void setMinSize(int32_t value); + + /// + /// + /// + + ExtLimitPojo getExtLimit() const; + bool extLimitIsSet() const; + void unsetextLimit(); + void setExtLimit(const ExtLimitPojo& value); + + /// + /// 该类型全域公网带宽可购买的最大size + /// + + int32_t getMaxSize() const; + bool maxSizeIsSet() const; + void unsetmaxSize(); + void setMaxSize(int32_t value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t minSize_; + bool minSizeIsSet_; + ExtLimitPojo extLimit_; + bool extLimitIsSet_; + int32_t maxSize_; + bool maxSizeIsSet_; + std::string type_; + bool typeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimits_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimitsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimitsRequest.h new file mode 100644 index 000000000..05b28dd2c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimitsRequest.h @@ -0,0 +1,116 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimitsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimitsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthLimitsRequest + : public ModelBase +{ +public: + ListInternetBandwidthLimitsRequest(); + virtual ~ListInternetBandwidthLimitsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthLimitsRequest members + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据计费模式过滤 + /// + + std::vector& getChargeMode(); + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::vector& value); + + /// + /// 根据全域公网带宽类型过滤 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + +protected: + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector chargeMode_; + bool chargeModeIsSet_; + std::string type_; + bool typeIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListInternetBandwidthLimitsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimitsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimitsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimitsResponse.h new file mode 100644 index 000000000..60f88a96d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthLimitsResponse.h @@ -0,0 +1,91 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimitsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimitsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthLimitsResponse + : public ModelBase, public HttpResponse +{ +public: + ListInternetBandwidthLimitsResponse(); + virtual ~ListInternetBandwidthLimitsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthLimitsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 全域公网带宽限制列表 + /// + + std::vector& getInternetBandwidthLimits(); + bool internetBandwidthLimitsIsSet() const; + void unsetinternetBandwidthLimits(); + void setInternetBandwidthLimits(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector internetBandwidthLimits_; + bool internetBandwidthLimitsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthLimitsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidths.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidths.h new file mode 100644 index 000000000..ec1c86fff --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidths.h @@ -0,0 +1,310 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidths_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidths_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidths + : public ModelBase +{ +public: + ListInternetBandwidths(); + virtual ~ListInternetBandwidths(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidths members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 增强95保底率 + /// + + int32_t getRatio95peak() const; + bool ratio95peakIsSet() const; + void unsetratio95peak(); + void setRatio95peak(int32_t value); + + /// + /// 订单信息 + /// + + std::string getBillingInfo() const; + bool billingInfoIsSet() const; + void unsetbillingInfo(); + void setBillingInfo(const std::string& value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 全域弹性公网IP个数 + /// + + int32_t getGeipCount() const; + bool geipCountIsSet() const; + void unsetgeipCount(); + void setGeipCount(int32_t value); + + /// + /// 全域弹性公网IP段个数 + /// + + int32_t getGeipSegmentCount() const; + bool geipSegmentCountIsSet() const; + void unsetgeipSegmentCount(); + void setGeipSegmentCount(int32_t value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域公网带宽标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 全域公网带宽资源的锁状态 + /// + + std::vector& getLockInfos(); + bool lockInfosIsSet() const; + void unsetlockInfos(); + void setLockInfos(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t ratio95peak_; + bool ratio95peakIsSet_; + std::string billingInfo_; + bool billingInfoIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string status_; + bool statusIsSet_; + int32_t geipCount_; + bool geipCountIsSet_; + int32_t geipSegmentCount_; + bool geipSegmentCountIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string type_; + bool typeIsSet_; + std::vector lockInfos_; + bool lockInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidths_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthsRequest.h new file mode 100644 index 000000000..ece805628 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthsRequest.h @@ -0,0 +1,248 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthsRequest + : public ModelBase +{ +public: + ListInternetBandwidthsRequest(); + virtual ~ListInternetBandwidthsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthsRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 在默认显示字段的基础上追加指定字段 + /// + + std::vector& getExtFields(); + bool extFieldsIsSet() const; + void unsetextFields(); + void setExtFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据全域公网带宽大小过滤 + /// + + std::vector& getSize(); + bool sizeIsSet() const; + void unsetsize(); + void setSize(std::vector value); + + /// + /// 根据名称过滤 + /// + + std::vector& getName(); + bool nameIsSet() const; + void unsetname(); + void setName(const std::vector& value); + + /// + /// 根据名称模糊匹配 + /// + + std::string getNameLike() const; + bool nameLikeIsSet() const; + void unsetnameLike(); + void setNameLike(const std::string& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据资源状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + /// + /// 根据企业项目ID过滤 + /// + + std::vector& getEnterpriseProjectId(); + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::vector& value); + + /// + /// 根据标签过滤 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 根据全域公网带宽类型过滤 + /// + + std::vector& getType(); + bool typeIsSet() const; + void unsettype(); + void setType(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector extFields_; + bool extFieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector size_; + bool sizeIsSet_; + std::vector name_; + bool nameIsSet_; + std::string nameLike_; + bool nameLikeIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector status_; + bool statusIsSet_; + std::vector enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector type_; + bool typeIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListInternetBandwidthsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthsResponse.h new file mode 100644 index 000000000..a67d98ac4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListInternetBandwidthsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListInternetBandwidthsResponse + : public ModelBase, public HttpResponse +{ +public: + ListInternetBandwidthsResponse(); + virtual ~ListInternetBandwidthsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInternetBandwidthsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 全域公网带宽列表 + /// + + std::vector& getInternetBandwidths(); + bool internetBandwidthsIsSet() const; + void unsetinternetBandwidths(); + void setInternetBandwidths(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector internetBandwidths_; + bool internetBandwidthsIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListInternetBandwidthsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListJobs.h b/geip/include/huaweicloud/geip/v3/model/ListJobs.h new file mode 100644 index 000000000..4fe9f1290 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListJobs.h @@ -0,0 +1,142 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobs_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobs_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListJobs + : public ModelBase +{ +public: + ListJobs(); + virtual ~ListJobs(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListJobs members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 处理规则 + /// + + std::string getAction() const; + bool actionIsSet() const; + void unsetaction(); + void setAction(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// error_task + /// + + std::string getErrorTask() const; + bool errorTaskIsSet() const; + void unseterrorTask(); + void setErrorTask(const std::string& value); + + /// + /// error_code + /// + + std::string getErrorCode() const; + bool errorCodeIsSet() const; + void unseterrorCode(); + void setErrorCode(const std::string& value); + + /// + /// error_message + /// + + std::string getErrorMessage() const; + bool errorMessageIsSet() const; + void unseterrorMessage(); + void setErrorMessage(const std::string& value); + + /// + /// 起始时间 + /// + + utility::datetime getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const utility::datetime& value); + + /// + /// 结束时间 + /// + + utility::datetime getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string action_; + bool actionIsSet_; + std::string status_; + bool statusIsSet_; + std::string errorTask_; + bool errorTaskIsSet_; + std::string errorCode_; + bool errorCodeIsSet_; + std::string errorMessage_; + bool errorMessageIsSet_; + utility::datetime startTime_; + bool startTimeIsSet_; + utility::datetime endTime_; + bool endTimeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobs_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListJobsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListJobsRequest.h new file mode 100644 index 000000000..204160de8 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListJobsRequest.h @@ -0,0 +1,171 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListJobsRequest + : public ModelBase +{ +public: + ListJobsRequest(); + virtual ~ListJobsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListJobsRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据action过滤 + /// + + std::vector& getAction(); + bool actionIsSet() const; + void unsetaction(); + void setAction(const std::vector& value); + + /// + /// 根据job状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector action_; + bool actionIsSet_; + std::vector status_; + bool statusIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListJobsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListJobsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListJobsResponse.h new file mode 100644 index 000000000..0d3dc7542 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListJobsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListJobsResponse + : public ModelBase, public HttpResponse +{ +public: + ListJobsResponse(); + virtual ~ListJobsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListJobsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 响应job对象 + /// + + std::vector& getJobs(); + bool jobsIsSet() const; + void unsetjobs(); + void setJobs(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector jobs_; + bool jobsIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListJobsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListQuotas.h b/geip/include/huaweicloud/geip/v3/model/ListQuotas.h new file mode 100644 index 000000000..e16ea37ca --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListQuotas.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListQuotas_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListQuotas_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 资源列表 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListQuotas + : public ModelBase +{ +public: + ListQuotas(); + virtual ~ListQuotas(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListQuotas members + + /// + /// 资源列表 + /// + + std::vector& getResources(); + bool resourcesIsSet() const; + void unsetresources(); + void setResources(const std::vector& value); + + +protected: + std::vector resources_; + bool resourcesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListQuotas_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListResourcesByTagsRequestBody.h b/geip/include/huaweicloud/geip/v3/model/ListResourcesByTagsRequestBody.h new file mode 100644 index 000000000..796d29506 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListResourcesByTagsRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListResourcesByTagsRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListResourcesByTagsRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListResourcesByTagsRequestBody + : public ModelBase +{ +public: + ListResourcesByTagsRequestBody(); + virtual ~ListResourcesByTagsRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListResourcesByTagsRequestBody members + + /// + /// 包含标签。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListResourcesByTagsRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListSupportInstancesSupportRegions.h b/geip/include/huaweicloud/geip/v3/model/ListSupportInstancesSupportRegions.h new file mode 100644 index 000000000..698d1ae67 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListSupportInstancesSupportRegions.h @@ -0,0 +1,142 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportInstancesSupportRegions_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportInstancesSupportRegions_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListSupportInstancesSupportRegions + : public ModelBase +{ +public: + ListSupportInstancesSupportRegions(); + virtual ~ListSupportInstancesSupportRegions(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListSupportInstancesSupportRegions members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 支持绑定的实例类型 + /// + + std::string getInstanceType() const; + bool instanceTypeIsSet() const; + void unsetinstanceType(); + void setInstanceType(const std::string& value); + + /// + /// 中心站点or边缘站点 + /// + + std::string getPublicBorderGroup() const; + bool publicBorderGroupIsSet() const; + void unsetpublicBorderGroup(); + void setPublicBorderGroup(const std::string& value); + + /// + /// region_id + /// + + std::string getRegionId() const; + bool regionIdIsSet() const; + void unsetregionId(); + void setRegionId(const std::string& value); + + /// + /// access_site,后端实例所在的站点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string instanceType_; + bool instanceTypeIsSet_; + std::string publicBorderGroup_; + bool publicBorderGroupIsSet_; + std::string regionId_; + bool regionIdIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportInstancesSupportRegions_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListSupportMasks.h b/geip/include/huaweicloud/geip/v3/model/ListSupportMasks.h new file mode 100644 index 000000000..5bf482747 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListSupportMasks.h @@ -0,0 +1,109 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasks_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasks_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListSupportMasks + : public ModelBase +{ +public: + ListSupportMasks(); + virtual ~ListSupportMasks(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListSupportMasks members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// 掩码长度 + /// + + int32_t getMask() const; + bool maskIsSet() const; + void unsetmask(); + void setMask(int32_t value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + int32_t mask_; + bool maskIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasks_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListSupportMasksRequest.h b/geip/include/huaweicloud/geip/v3/model/ListSupportMasksRequest.h new file mode 100644 index 000000000..9d88f5cd1 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListSupportMasksRequest.h @@ -0,0 +1,171 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasksRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasksRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListSupportMasksRequest + : public ModelBase +{ +public: + ListSupportMasksRequest(); + virtual ~ListSupportMasksRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListSupportMasksRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据IP版本过滤 + /// + + std::vector& getIpVersion(); + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(std::vector value); + + /// + /// 根据掩码过滤 + /// + + std::vector& getMask(); + bool maskIsSet() const; + void unsetmask(); + void setMask(std::vector value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector ipVersion_; + bool ipVersionIsSet_; + std::vector mask_; + bool maskIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListSupportMasksRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasksRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListSupportMasksResponse.h b/geip/include/huaweicloud/geip/v3/model/ListSupportMasksResponse.h new file mode 100644 index 000000000..f43678bd2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListSupportMasksResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasksResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasksResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListSupportMasksResponse + : public ModelBase, public HttpResponse +{ +public: + ListSupportMasksResponse(); + virtual ~ListSupportMasksResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListSupportMasksResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 支持全域弹性公网IP段的掩码范围列表 + /// + + std::vector& getSupportMasks(); + bool supportMasksIsSet() const; + void unsetsupportMasks(); + void setSupportMasks(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector supportMasks_; + bool supportMasksIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportMasksResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListSupportRegions.h b/geip/include/huaweicloud/geip/v3/model/ListSupportRegions.h new file mode 100644 index 000000000..a6e8a96a4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListSupportRegions.h @@ -0,0 +1,153 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegions_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegions_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListSupportRegions + : public ModelBase +{ +public: + ListSupportRegions(); + virtual ~ListSupportRegions(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListSupportRegions members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 支持绑定的实例类型 + /// + + std::string getInstanceType() const; + bool instanceTypeIsSet() const; + void unsetinstanceType(); + void setInstanceType(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// region_id + /// + + std::string getRegionId() const; + bool regionIdIsSet() const; + void unsetregionId(); + void setRegionId(const std::string& value); + + /// + /// 中心站点or边缘站点 + /// + + std::string getPublicBorderGroup() const; + bool publicBorderGroupIsSet() const; + void unsetpublicBorderGroup(); + void setPublicBorderGroup(const std::string& value); + + /// + /// remote_endpoint + /// + + std::string getRemoteEndpoint() const; + bool remoteEndpointIsSet() const; + void unsetremoteEndpoint(); + void setRemoteEndpoint(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string instanceType_; + bool instanceTypeIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string regionId_; + bool regionIdIsSet_; + std::string publicBorderGroup_; + bool publicBorderGroupIsSet_; + std::string remoteEndpoint_; + bool remoteEndpointIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegions_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListSupportRegionsRequest.h b/geip/include/huaweicloud/geip/v3/model/ListSupportRegionsRequest.h new file mode 100644 index 000000000..1c4b61311 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListSupportRegionsRequest.h @@ -0,0 +1,215 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegionsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegionsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListSupportRegionsRequest + : public ModelBase +{ +public: + ListSupportRegionsRequest(); + virtual ~ListSupportRegionsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListSupportRegionsRequest members + + /// + /// 每页条数 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 分页起始点 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 分页起始点 + /// + + std::string getMarker() const; + bool markerIsSet() const; + void unsetmarker(); + void setMarker(const std::string& value); + + /// + /// 翻页方向 + /// + + bool isPageReverse() const; + bool pageReverseIsSet() const; + void unsetpageReverse(); + void setPageReverse(bool value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + /// + /// 按照sort_key指定的字段排序 + /// + + std::vector& getSortKey(); + bool sortKeyIsSet() const; + void unsetsortKey(); + void setSortKey(const std::vector& value); + + /// + /// 排序的方向,倒序或者正序 + /// + + std::vector& getSortDir(); + bool sortDirIsSet() const; + void unsetsortDir(); + void setSortDir(const std::vector& value); + + /// + /// 根据ID过滤 + /// + + std::vector& getId(); + bool idIsSet() const; + void unsetid(); + void setId(const std::vector& value); + + /// + /// 根据实例类型过滤 + /// + + std::vector& getInstanceType(); + bool instanceTypeIsSet() const; + void unsetinstanceType(); + void setInstanceType(const std::vector& value); + + /// + /// 根据边缘信息过滤,中心站点or边缘站点 + /// + + std::vector& getPublicBorderGroup(); + bool publicBorderGroupIsSet() const; + void unsetpublicBorderGroup(); + void setPublicBorderGroup(const std::vector& value); + + /// + /// 根据接入点过滤 + /// + + std::vector& getAccessSite(); + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::vector& value); + + /// + /// 根据region_id过滤 + /// + + std::vector& getRegionId(); + bool regionIdIsSet() const; + void unsetregionId(); + void setRegionId(const std::vector& value); + + /// + /// query by remote_endpoint + /// + + std::vector& getRemoteEndpoint(); + bool remoteEndpointIsSet() const; + void unsetremoteEndpoint(); + void setRemoteEndpoint(const std::vector& value); + + /// + /// 根据资源状态过滤 + /// + + std::vector& getStatus(); + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string marker_; + bool markerIsSet_; + bool pageReverse_; + bool pageReverseIsSet_; + std::vector fields_; + bool fieldsIsSet_; + std::vector sortKey_; + bool sortKeyIsSet_; + std::vector sortDir_; + bool sortDirIsSet_; + std::vector id_; + bool idIsSet_; + std::vector instanceType_; + bool instanceTypeIsSet_; + std::vector publicBorderGroup_; + bool publicBorderGroupIsSet_; + std::vector accessSite_; + bool accessSiteIsSet_; + std::vector regionId_; + bool regionIdIsSet_; + std::vector remoteEndpoint_; + bool remoteEndpointIsSet_; + std::vector status_; + bool statusIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListSupportRegionsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegionsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListSupportRegionsResponse.h b/geip/include/huaweicloud/geip/v3/model/ListSupportRegionsResponse.h new file mode 100644 index 000000000..5597cd95d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListSupportRegionsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegionsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegionsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListSupportRegionsResponse + : public ModelBase, public HttpResponse +{ +public: + ListSupportRegionsResponse(); + virtual ~ListSupportRegionsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListSupportRegionsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 支持的Region对象 + /// + + std::vector& getSupportRegions(); + bool supportRegionsIsSet() const; + void unsetsupportRegions(); + void setSupportRegions(const std::vector& value); + + /// + /// + /// + + ListGlobalEipsResponseBody_page_info getPageInfo() const; + bool pageInfoIsSet() const; + void unsetpageInfo(); + void setPageInfo(const ListGlobalEipsResponseBody_page_info& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector supportRegions_; + bool supportRegionsIsSet_; + ListGlobalEipsResponseBody_page_info pageInfo_; + bool pageInfoIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListSupportRegionsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesRequest.h b/geip/include/huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesRequest.h new file mode 100644 index 000000000..3ae5903b5 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListTenantGeipSupportInstancesRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListTenantGeipSupportInstancesRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListTenantGeipSupportInstancesRequest + : public ModelBase +{ +public: + ListTenantGeipSupportInstancesRequest(); + virtual ~ListTenantGeipSupportInstancesRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListTenantGeipSupportInstancesRequest members + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + +protected: + std::string accessSite_; + bool accessSiteIsSet_; + std::vector fields_; + bool fieldsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListTenantGeipSupportInstancesRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListTenantGeipSupportInstancesRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesResponse.h b/geip/include/huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesResponse.h new file mode 100644 index 000000000..893013b01 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesResponse.h @@ -0,0 +1,91 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListTenantGeipSupportInstancesResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListTenantGeipSupportInstancesResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ListTenantGeipSupportInstancesResponse + : public ModelBase, public HttpResponse +{ +public: + ListTenantGeipSupportInstancesResponse(); + virtual ~ListTenantGeipSupportInstancesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListTenantGeipSupportInstancesResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 支持的Region对象 + /// + + std::vector& getSupportRegions(); + bool supportRegionsIsSet() const; + void unsetsupportRegions(); + void setSupportRegions(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector supportRegions_; + bool supportRegionsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ListTenantGeipSupportInstancesResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/LockInfo.h b/geip/include/huaweicloud/geip/v3/model/LockInfo.h new file mode 100644 index 000000000..97fd3f8a6 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/LockInfo.h @@ -0,0 +1,164 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_LockInfo_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_LockInfo_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT LockInfo + : public ModelBase +{ +public: + LockInfo(); + virtual ~LockInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// LockInfo members + + /// + /// 锁id + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源类型 + /// + + std::string getResourceType() const; + bool resourceTypeIsSet() const; + void unsetresourceType(); + void setResourceType(const std::string& value); + + /// + /// 资源id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + /// + /// 场景类型 + /// + + std::string getScene() const; + bool sceneIsSet() const; + void unsetscene(); + void setScene(const std::string& value); + + /// + /// 源类型 + /// + + std::string getSourceType() const; + bool sourceTypeIsSet() const; + void unsetsourceType(); + void setSourceType(const std::string& value); + + /// + /// 源id + /// + + std::string getSourceId() const; + bool sourceIdIsSet() const; + void unsetsourceId(); + void setSourceId(const std::string& value); + + /// + /// check地址 + /// + + std::string getCheckUrl() const; + bool checkUrlIsSet() const; + void unsetcheckUrl(); + void setCheckUrl(const std::string& value); + + /// + /// 动作类型 + /// + + std::string getAction() const; + bool actionIsSet() const; + void unsetaction(); + void setAction(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string resourceType_; + bool resourceTypeIsSet_; + std::string resourceId_; + bool resourceIdIsSet_; + std::string scene_; + bool sceneIsSet_; + std::string sourceType_; + bool sourceTypeIsSet_; + std::string sourceId_; + bool sourceIdIsSet_; + std::string checkUrl_; + bool checkUrlIsSet_; + std::string action_; + bool actionIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_LockInfo_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/NativeUUID.h b/geip/include/huaweicloud/geip/v3/model/NativeUUID.h new file mode 100644 index 000000000..7d454671f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/NativeUUID.h @@ -0,0 +1,52 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_NativeUUID_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_NativeUUID_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 资源ID标识符。 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT NativeUUID + : public ModelBase +{ +public: + NativeUUID(); + virtual ~NativeUUID(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// NativeUUID members + + +protected: + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_NativeUUID_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ResourcesInfo.h b/geip/include/huaweicloud/geip/v3/model/ResourcesInfo.h new file mode 100644 index 000000000..410b6c64b --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ResourcesInfo.h @@ -0,0 +1,97 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ResourcesInfo_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ResourcesInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ResourcesInfo + : public ModelBase +{ +public: + ResourcesInfo(); + virtual ~ResourcesInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResourcesInfo members + + /// + /// 配额类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 已使用配额 + /// + + int32_t getUsed() const; + bool usedIsSet() const; + void unsetused(); + void setUsed(int32_t value); + + /// + /// 总配额数 + /// + + int32_t getQuota() const; + bool quotaIsSet() const; + void unsetquota(); + void setQuota(int32_t value); + + /// + /// 最小配额值 + /// + + int32_t getMin() const; + bool minIsSet() const; + void unsetmin(); + void setMin(int32_t value); + + +protected: + std::string type_; + bool typeIsSet_; + int32_t used_; + bool usedIsSet_; + int32_t quota_; + bool quotaIsSet_; + int32_t min_; + bool minIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ResourcesInfo_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShortGlobalEipSegment.h b/geip/include/huaweicloud/geip/v3/model/ShortGlobalEipSegment.h new file mode 100644 index 000000000..faa657d9d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShortGlobalEipSegment.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShortGlobalEipSegment_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShortGlobalEipSegment_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShortGlobalEipSegment + : public ModelBase +{ +public: + ShortGlobalEipSegment(); + virtual ~ShortGlobalEipSegment(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShortGlobalEipSegment members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShortGlobalEipSegment_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGeipSegmentTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowGeipSegmentTagsRequest.h new file mode 100644 index 000000000..673dabe25 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGeipSegmentTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGeipSegmentTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGeipSegmentTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGeipSegmentTagsRequest + : public ModelBase +{ +public: + ShowGeipSegmentTagsRequest(); + virtual ~ShowGeipSegmentTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGeipSegmentTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowGeipSegmentTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGeipSegmentTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGeipSegmentTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowGeipSegmentTagsResponse.h new file mode 100644 index 000000000..43c404307 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGeipSegmentTagsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGeipSegmentTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGeipSegmentTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGeipSegmentTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowGeipSegmentTagsResponse(); + virtual ~ShowGeipSegmentTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGeipSegmentTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 单个资源的租户标签列表。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 单个资源的系统标签列表。 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGeipSegmentTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEip.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEip.h new file mode 100644 index 000000000..465b7fd0d --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEip.h @@ -0,0 +1,312 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEip_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEip + : public ModelBase +{ +public: + ShowGlobalEip(); + virtual ~ShowGlobalEip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEip members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// IPv4地址 + /// + + std::string getIpAddress() const; + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::string& value); + + /// + /// IPv6地址 + /// + + std::string getIpv6Address() const; + bool ipv6AddressIsSet() const; + void unsetipv6Address(); + void setIpv6Address(const std::string& value); + + /// + /// 是否冻结 + /// + + bool isFreezen() const; + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(bool value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 是否污染 + /// + + bool isPolluted() const; + bool pollutedIsSet() const; + void unsetpolluted(); + void setPolluted(bool value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + InternetBandwidthInfo getInternetBandwidthInfo() const; + bool internetBandwidthInfoIsSet() const; + void unsetinternetBandwidthInfo(); + void setInternetBandwidthInfo(const InternetBandwidthInfo& value); + + /// + /// + /// + + GlobalConnectionBandwidthInfo getGlobalConnectionBandwidthInfo() const; + bool globalConnectionBandwidthInfoIsSet() const; + void unsetglobalConnectionBandwidthInfo(); + void setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value); + + /// + /// + /// + + InstanceInfo getAssociateInstanceInfo() const; + bool associateInstanceInfoIsSet() const; + void unsetassociateInstanceInfo(); + void setAssociateInstanceInfo(const InstanceInfo& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域弹性公网IP标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string ipAddress_; + bool ipAddressIsSet_; + std::string ipv6Address_; + bool ipv6AddressIsSet_; + bool freezen_; + bool freezenIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + bool polluted_; + bool pollutedIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + InternetBandwidthInfo internetBandwidthInfo_; + bool internetBandwidthInfoIsSet_; + GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo_; + bool globalConnectionBandwidthInfoIsSet_; + InstanceInfo associateInstanceInfo_; + bool associateInstanceInfoIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipRequest.h new file mode 100644 index 000000000..e4c82ef13 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEipRequest + : public ModelBase +{ +public: + ShowGlobalEipRequest(); + virtual ~ShowGlobalEipRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEipRequest members + + /// + /// global_eip_id + /// + + std::string getGlobalEipId() const; + bool globalEipIdIsSet() const; + void unsetglobalEipId(); + void setGlobalEipId(const std::string& value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + +protected: + std::string globalEipId_; + bool globalEipIdIsSet_; + std::vector fields_; + bool fieldsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowGlobalEipRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipResponse.h new file mode 100644 index 000000000..cea2d54d2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEipResponse + : public ModelBase, public HttpResponse +{ +public: + ShowGlobalEipResponse(); + virtual ~ShowGlobalEipResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEipResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + ShowGlobalEip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const ShowGlobalEip& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + ShowGlobalEip globalEip_; + bool globalEipIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegment.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegment.h new file mode 100644 index 000000000..bd3abb319 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegment.h @@ -0,0 +1,289 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegment_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegment_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEipSegment + : public ModelBase +{ +public: + ShowGlobalEipSegment(); + virtual ~ShowGlobalEipSegment(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEipSegment members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域弹性公网IP池子名称 + /// + + std::string getGeipPoolName() const; + bool geipPoolNameIsSet() const; + void unsetgeipPoolName(); + void setGeipPoolName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// IPv4或IPv6 + /// + + int32_t getIpVersion() const; + bool ipVersionIsSet() const; + void unsetipVersion(); + void setIpVersion(int32_t value); + + /// + /// 全域公网IP段的cidr + /// + + std::string getCidr() const; + bool cidrIsSet() const; + void unsetcidr(); + void setCidr(const std::string& value); + + /// + /// 指定cidr-v6创建 + /// + + std::string getCidrV6() const; + bool cidrV6IsSet() const; + void unsetcidrV6(); + void setCidrV6(const std::string& value); + + /// + /// 是否冻结 + /// + + bool isFreezen() const; + bool freezenIsSet() const; + void unsetfreezen(); + void setFreezen(bool value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// + /// + + InternetBandwidthInfo getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const InternetBandwidthInfo& value); + + /// + /// + /// + + InstanceInfo getAssociateInstance() const; + bool associateInstanceIsSet() const; + void unsetassociateInstance(); + void setAssociateInstance(const InstanceInfo& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域弹性公网IP段标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + std::string geipPoolName_; + bool geipPoolNameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ipVersion_; + bool ipVersionIsSet_; + std::string cidr_; + bool cidrIsSet_; + std::string cidrV6_; + bool cidrV6IsSet_; + bool freezen_; + bool freezenIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + InternetBandwidthInfo internetBandwidth_; + bool internetBandwidthIsSet_; + InstanceInfo associateInstance_; + bool associateInstanceIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegment_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegmentRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegmentRequest.h new file mode 100644 index 000000000..2de819544 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegmentRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegmentRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegmentRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEipSegmentRequest + : public ModelBase +{ +public: + ShowGlobalEipSegmentRequest(); + virtual ~ShowGlobalEipSegmentRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEipSegmentRequest members + + /// + /// global_eip_segment_id + /// + + std::string getGlobalEipSegmentId() const; + bool globalEipSegmentIdIsSet() const; + void unsetglobalEipSegmentId(); + void setGlobalEipSegmentId(const std::string& value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + +protected: + std::string globalEipSegmentId_; + bool globalEipSegmentIdIsSet_; + std::vector fields_; + bool fieldsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowGlobalEipSegmentRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegmentRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegmentResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegmentResponse.h new file mode 100644 index 000000000..3ef445922 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipSegmentResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegmentResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegmentResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEipSegmentResponse + : public ModelBase, public HttpResponse +{ +public: + ShowGlobalEipSegmentResponse(); + virtual ~ShowGlobalEipSegmentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEipSegmentResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + ShowGlobalEipSegment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const ShowGlobalEipSegment& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + ShowGlobalEipSegment globalEipSegment_; + bool globalEipSegmentIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipSegmentResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipTagsRequest.h new file mode 100644 index 000000000..be875fb2e --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEipTagsRequest + : public ModelBase +{ +public: + ShowGlobalEipTagsRequest(); + virtual ~ShowGlobalEipTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEipTagsRequest members + + /// + /// 全域弹性公网IP的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowGlobalEipTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipTagsResponse.h new file mode 100644 index 000000000..c6eda9d77 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowGlobalEipTagsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowGlobalEipTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowGlobalEipTagsResponse(); + virtual ~ShowGlobalEipTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowGlobalEipTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 单个资源的租户标签列表。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 单个资源的系统标签列表。 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowGlobalEipTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidth.h b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidth.h new file mode 100644 index 000000000..5ca4da0de --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidth.h @@ -0,0 +1,288 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidth_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowInternetBandwidth + : public ModelBase +{ +public: + ShowInternetBandwidth(); + virtual ~ShowInternetBandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowInternetBandwidth members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 增强95保底率 + /// + + int32_t getRatio95peak() const; + bool ratio95peakIsSet() const; + void unsetratio95peak(); + void setRatio95peak(int32_t value); + + /// + /// 订单信息 + /// + + std::string getBillingInfo() const; + bool billingInfoIsSet() const; + void unsetbillingInfo(); + void setBillingInfo(const std::string& value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域公网带宽标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 全域公网带宽类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 全域公网带宽资源的锁状态 + /// + + std::vector& getLockInfos(); + bool lockInfosIsSet() const; + void unsetlockInfos(); + void setLockInfos(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t ratio95peak_; + bool ratio95peakIsSet_; + std::string billingInfo_; + bool billingInfoIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string type_; + bool typeIsSet_; + std::vector lockInfos_; + bool lockInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthRequest.h new file mode 100644 index 000000000..e1beab04f --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowInternetBandwidthRequest + : public ModelBase +{ +public: + ShowInternetBandwidthRequest(); + virtual ~ShowInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowInternetBandwidthRequest members + + /// + /// 全域公网带宽的ID + /// + + std::string getInternetBandwidthId() const; + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::string& value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + +protected: + std::string internetBandwidthId_; + bool internetBandwidthIdIsSet_; + std::vector fields_; + bool fieldsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthResponse.h new file mode 100644 index 000000000..84e7d25a4 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + ShowInternetBandwidthResponse(); + virtual ~ShowInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowInternetBandwidthResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + ShowInternetBandwidth getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const ShowInternetBandwidth& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + ShowInternetBandwidth internetBandwidth_; + bool internetBandwidthIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthTagsRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthTagsRequest.h new file mode 100644 index 000000000..d8ac6d829 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthTagsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthTagsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthTagsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowInternetBandwidthTagsRequest + : public ModelBase +{ +public: + ShowInternetBandwidthTagsRequest(); + virtual ~ShowInternetBandwidthTagsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowInternetBandwidthTagsRequest members + + /// + /// 全域公网带宽的id + /// + + std::string getResourceId() const; + bool resourceIdIsSet() const; + void unsetresourceId(); + void setResourceId(const std::string& value); + + +protected: + std::string resourceId_; + bool resourceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowInternetBandwidthTagsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthTagsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthTagsResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthTagsResponse.h new file mode 100644 index 000000000..7d37f9872 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowInternetBandwidthTagsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthTagsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthTagsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowInternetBandwidthTagsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowInternetBandwidthTagsResponse(); + virtual ~ShowInternetBandwidthTagsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowInternetBandwidthTagsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// 单个资源的租户标签列表。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 单个资源的系统标签列表。 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowInternetBandwidthTagsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowJob.h b/geip/include/huaweicloud/geip/v3/model/ShowJob.h new file mode 100644 index 000000000..4a642f472 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowJob.h @@ -0,0 +1,142 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJob_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJob_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowJob + : public ModelBase +{ +public: + ShowJob(); + virtual ~ShowJob(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowJob members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 处理规则 + /// + + std::string getAction() const; + bool actionIsSet() const; + void unsetaction(); + void setAction(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// error_task + /// + + std::string getErrorTask() const; + bool errorTaskIsSet() const; + void unseterrorTask(); + void setErrorTask(const std::string& value); + + /// + /// error_code + /// + + std::string getErrorCode() const; + bool errorCodeIsSet() const; + void unseterrorCode(); + void setErrorCode(const std::string& value); + + /// + /// error_message + /// + + std::string getErrorMessage() const; + bool errorMessageIsSet() const; + void unseterrorMessage(); + void setErrorMessage(const std::string& value); + + /// + /// 起始时间 + /// + + utility::datetime getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const utility::datetime& value); + + /// + /// 结束时间 + /// + + utility::datetime getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string action_; + bool actionIsSet_; + std::string status_; + bool statusIsSet_; + std::string errorTask_; + bool errorTaskIsSet_; + std::string errorCode_; + bool errorCodeIsSet_; + std::string errorMessage_; + bool errorMessageIsSet_; + utility::datetime startTime_; + bool startTimeIsSet_; + utility::datetime endTime_; + bool endTimeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJob_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowJobsRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowJobsRequest.h new file mode 100644 index 000000000..e1c31d909 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowJobsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJobsRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJobsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowJobsRequest + : public ModelBase +{ +public: + ShowJobsRequest(); + virtual ~ShowJobsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowJobsRequest members + + /// + /// job_id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + std::vector fields_; + bool fieldsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowJobsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJobsRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowJobsResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowJobsResponse.h new file mode 100644 index 000000000..de35b22f9 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowJobsResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJobsResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJobsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowJobsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowJobsResponse(); + virtual ~ShowJobsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowJobsResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + ShowJob getJob() const; + bool jobIsSet() const; + void unsetjob(); + void setJob(const ShowJob& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + ShowJob job_; + bool jobIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowJobsResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerRecord.h b/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerRecord.h new file mode 100644 index 000000000..88e84d845 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerRecord.h @@ -0,0 +1,87 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerRecord_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerRecord_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowUserDisclaimerRecord + : public ModelBase +{ +public: + ShowUserDisclaimerRecord(); + virtual ~ShowUserDisclaimerRecord(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowUserDisclaimerRecord members + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + +protected: + std::string domainId_; + bool domainIdIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerRecord_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerRequest.h b/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerRequest.h new file mode 100644 index 000000000..f4552cfc5 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerRequest.h @@ -0,0 +1,72 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowUserDisclaimerRequest + : public ModelBase +{ +public: + ShowUserDisclaimerRequest(); + virtual ~ShowUserDisclaimerRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowUserDisclaimerRequest members + + /// + /// 只显示指定的字段 + /// + + std::vector& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::vector& value); + + +protected: + std::vector fields_; + bool fieldsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowUserDisclaimerRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerResponse.h b/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerResponse.h new file mode 100644 index 000000000..9daee1cb0 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/ShowUserDisclaimerResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT ShowUserDisclaimerResponse + : public ModelBase, public HttpResponse +{ +public: + ShowUserDisclaimerResponse(); + virtual ~ShowUserDisclaimerResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowUserDisclaimerResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + ShowUserDisclaimerRecord getUserDisclaimerRecord() const; + bool userDisclaimerRecordIsSet() const; + void unsetuserDisclaimerRecord(); + void setUserDisclaimerRecord(const ShowUserDisclaimerRecord& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + ShowUserDisclaimerRecord userDisclaimerRecord_; + bool userDisclaimerRecordIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_ShowUserDisclaimerResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/SysTag.h b/geip/include/huaweicloud/geip/v3/model/SysTag.h new file mode 100644 index 000000000..0f3c83d51 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/SysTag.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_SysTag_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_SysTag_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 资源标签。 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT SysTag + : public ModelBase +{ +public: + SysTag(); + virtual ~SysTag(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SysTag members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_SysTag_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/Tag.h b/geip/include/huaweicloud/geip/v3/model/Tag.h new file mode 100644 index 000000000..d3c7436fc --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/Tag.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_Tag_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_Tag_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 资源标签 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT Tag + : public ModelBase +{ +public: + Tag(); + virtual ~Tag(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// Tag members + + /// + /// 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_Tag_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEip.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEip.h new file mode 100644 index 000000000..f06715470 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEip.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEip_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEip + : public ModelBase +{ +public: + UpdateGlobalEip(); + virtual ~UpdateGlobalEip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEip members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequest.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequest.h new file mode 100644 index 000000000..7e6a61690 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipRequest + : public ModelBase +{ +public: + UpdateGlobalEipRequest(); + virtual ~UpdateGlobalEipRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipRequest members + + /// + /// global_eip_id + /// + + std::string getGlobalEipId() const; + bool globalEipIdIsSet() const; + void unsetglobalEipId(); + void setGlobalEipId(const std::string& value); + + /// + /// + /// + + UpdateGlobalEipRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateGlobalEipRequestBody& value); + + +protected: + std::string globalEipId_; + bool globalEipIdIsSet_; + UpdateGlobalEipRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateGlobalEipRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody.h new file mode 100644 index 000000000..8fbd105e2 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipRequestBody + : public ModelBase +{ +public: + UpdateGlobalEipRequestBody(); + virtual ~UpdateGlobalEipRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipRequestBody members + + /// + /// + /// + + bool isDryRun() const; + bool dryRunIsSet() const; + void unsetdryRun(); + void setDryRun(bool value); + + /// + /// + /// + + UpdateGlobalEipRequestBody_global_eip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const UpdateGlobalEipRequestBody_global_eip& value); + + +protected: + bool dryRun_; + bool dryRunIsSet_; + UpdateGlobalEipRequestBody_global_eip globalEip_; + bool globalEipIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody_global_eip.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody_global_eip.h new file mode 100644 index 000000000..969fabd79 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody_global_eip.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequestBody_global_eip_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequestBody_global_eip_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 更新全域弹性公网IP请求体 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipRequestBody_global_eip + : public ModelBase +{ +public: + UpdateGlobalEipRequestBody_global_eip(); + virtual ~UpdateGlobalEipRequestBody_global_eip(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipRequestBody_global_eip members + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + +protected: + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipRequestBody_global_eip_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipResponse.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipResponse.h new file mode 100644 index 000000000..1950f7623 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateGlobalEipResponse(); + virtual ~UpdateGlobalEipResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipResponse members + + /// + /// + /// + + UpdateGlobalEip getGlobalEip() const; + bool globalEipIsSet() const; + void unsetglobalEip(); + void setGlobalEip(const UpdateGlobalEip& value); + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + UpdateGlobalEip globalEip_; + bool globalEipIsSet_; + std::string jobId_; + bool jobIdIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequest.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequest.h new file mode 100644 index 000000000..938c88240 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipSegmentRequest + : public ModelBase +{ +public: + UpdateGlobalEipSegmentRequest(); + virtual ~UpdateGlobalEipSegmentRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipSegmentRequest members + + /// + /// global_eip_segment_id + /// + + std::string getGlobalEipSegmentId() const; + bool globalEipSegmentIdIsSet() const; + void unsetglobalEipSegmentId(); + void setGlobalEipSegmentId(const std::string& value); + + /// + /// + /// + + UpdateGlobalEipSegmentRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateGlobalEipSegmentRequestBody& value); + + +protected: + std::string globalEipSegmentId_; + bool globalEipSegmentIdIsSet_; + UpdateGlobalEipSegmentRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateGlobalEipSegmentRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody.h new file mode 100644 index 000000000..c89c58553 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipSegmentRequestBody + : public ModelBase +{ +public: + UpdateGlobalEipSegmentRequestBody(); + virtual ~UpdateGlobalEipSegmentRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipSegmentRequestBody members + + /// + /// + /// + + UpdateGlobalEipSegmentRequestBody_global_eip_segment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const UpdateGlobalEipSegmentRequestBody_global_eip_segment& value); + + +protected: + UpdateGlobalEipSegmentRequestBody_global_eip_segment globalEipSegment_; + bool globalEipSegmentIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody_global_eip_segment.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody_global_eip_segment.h new file mode 100644 index 000000000..5d4972309 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody_global_eip_segment.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequestBody_global_eip_segment_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequestBody_global_eip_segment_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 更新全域弹性公网IP段请求对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipSegmentRequestBody_global_eip_segment + : public ModelBase +{ +public: + UpdateGlobalEipSegmentRequestBody_global_eip_segment(); + virtual ~UpdateGlobalEipSegmentRequestBody_global_eip_segment(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipSegmentRequestBody_global_eip_segment members + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + +protected: + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentRequestBody_global_eip_segment_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentResponse.h b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentResponse.h new file mode 100644 index 000000000..029777101 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateGlobalEipSegmentResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateGlobalEipSegmentResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateGlobalEipSegmentResponse(); + virtual ~UpdateGlobalEipSegmentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateGlobalEipSegmentResponse members + + /// + /// 本次请求的job id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// + /// + + ShortGlobalEipSegment getGlobalEipSegment() const; + bool globalEipSegmentIsSet() const; + void unsetglobalEipSegment(); + void setGlobalEipSegment(const ShortGlobalEipSegment& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + ShortGlobalEipSegment globalEipSegment_; + bool globalEipSegmentIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateGlobalEipSegmentResponse_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidth.h b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidth.h new file mode 100644 index 000000000..c30572b8b --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidth.h @@ -0,0 +1,266 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidth_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateInternetBandwidth + : public ModelBase +{ +public: + UpdateInternetBandwidth(); + virtual ~UpdateInternetBandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateInternetBandwidth members + + /// + /// ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 线路 + /// + + std::string getIsp() const; + bool ispIsSet() const; + void unsetisp(); + void setIsp(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + /// + /// 接入点信息 + /// + + std::string getAccessSite() const; + bool accessSiteIsSet() const; + void unsetaccessSite(); + void setAccessSite(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 增强95保底率 + /// + + int32_t getRatio95peak() const; + bool ratio95peakIsSet() const; + void unsetratio95peak(); + void setRatio95peak(int32_t value); + + /// + /// 冻结原因 + /// + + std::string getFreezenInfo() const; + bool freezenInfoIsSet() const; + void unsetfreezenInfo(); + void setFreezenInfo(const std::string& value); + + /// + /// 订单信息 + /// + + std::string getBillingInfo() const; + bool billingInfoIsSet() const; + void unsetbillingInfo(); + void setBillingInfo(const std::string& value); + + /// + /// 租户ID + /// + + std::string getDomainId() const; + bool domainIdIsSet() const; + void unsetdomainId(); + void setDomainId(const std::string& value); + + /// + /// 状态 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间 + /// + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(const utility::datetime& value); + + /// + /// 更新时间 + /// + + utility::datetime getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(const utility::datetime& value); + + /// + /// 是否包周期 + /// + + bool isIsPrePaid() const; + bool isPrePaidIsSet() const; + void unsetisPrePaid(); + void setIsPrePaid(bool value); + + /// + /// 全域公网带宽标签 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 资源的企业项目id + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 全域公网带宽资源的锁状态 + /// + + std::vector& getLockInfos(); + bool lockInfosIsSet() const; + void unsetlockInfos(); + void setLockInfos(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string isp_; + bool ispIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + std::string accessSite_; + bool accessSiteIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string description_; + bool descriptionIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t ratio95peak_; + bool ratio95peakIsSet_; + std::string freezenInfo_; + bool freezenInfoIsSet_; + std::string billingInfo_; + bool billingInfoIsSet_; + std::string domainId_; + bool domainIdIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime createdAt_; + bool createdAtIsSet_; + utility::datetime updatedAt_; + bool updatedAtIsSet_; + bool isPrePaid_; + bool isPrePaidIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::vector lockInfos_; + bool lockInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequest.h b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequest.h new file mode 100644 index 000000000..6a13c4b8c --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequest_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateInternetBandwidthRequest + : public ModelBase +{ +public: + UpdateInternetBandwidthRequest(); + virtual ~UpdateInternetBandwidthRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateInternetBandwidthRequest members + + /// + /// 全域公网带宽的ID + /// + + std::string getInternetBandwidthId() const; + bool internetBandwidthIdIsSet() const; + void unsetinternetBandwidthId(); + void setInternetBandwidthId(const std::string& value); + + /// + /// + /// + + UpdateInternetBandwidthRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateInternetBandwidthRequestBody& value); + + +protected: + std::string internetBandwidthId_; + bool internetBandwidthIdIsSet_; + UpdateInternetBandwidthRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateInternetBandwidthRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequest_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody.h b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody.h new file mode 100644 index 000000000..708141ece --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequestBody_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateInternetBandwidthRequestBody + : public ModelBase +{ +public: + UpdateInternetBandwidthRequestBody(); + virtual ~UpdateInternetBandwidthRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateInternetBandwidthRequestBody members + + /// + /// + /// + + UpdateInternetBandwidthRequestBody_internet_bandwidth getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const UpdateInternetBandwidthRequestBody_internet_bandwidth& value); + + +protected: + UpdateInternetBandwidthRequestBody_internet_bandwidth internetBandwidth_; + bool internetBandwidthIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequestBody_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody_internet_bandwidth.h b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody_internet_bandwidth.h new file mode 100644 index 000000000..8ec838ec3 --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody_internet_bandwidth.h @@ -0,0 +1,108 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequestBody_internet_bandwidth_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequestBody_internet_bandwidth_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 更新全域公网带宽请求对象 +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateInternetBandwidthRequestBody_internet_bandwidth + : public ModelBase +{ +public: + UpdateInternetBandwidthRequestBody_internet_bandwidth(); + virtual ~UpdateInternetBandwidthRequestBody_internet_bandwidth(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateInternetBandwidthRequestBody_internet_bandwidth members + + /// + /// 资源名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 用户自定义的资源描述 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + /// + /// 全域公网带宽大小(出云方向) + /// + + int32_t getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(int32_t value); + + /// + /// 计费模式 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + /// + /// 全域公网带宽大小(入云方向) + /// + + int32_t getIngressSize() const; + bool ingressSizeIsSet() const; + void unsetingressSize(); + void setIngressSize(int32_t value); + + +protected: + std::string name_; + bool nameIsSet_; + std::string description_; + bool descriptionIsSet_; + int32_t size_; + bool sizeIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + int32_t ingressSize_; + bool ingressSizeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthRequestBody_internet_bandwidth_H_ diff --git a/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthResponse.h b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthResponse.h new file mode 100644 index 000000000..4d23dc6aa --- /dev/null +++ b/geip/include/huaweicloud/geip/v3/model/UpdateInternetBandwidthResponse.h @@ -0,0 +1,90 @@ + +#ifndef HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthResponse_H_ +#define HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GEIP_V3_EXPORT UpdateInternetBandwidthResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateInternetBandwidthResponse(); + virtual ~UpdateInternetBandwidthResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateInternetBandwidthResponse members + + /// + /// 本次请求的编号 + /// + + std::string getRequestId() const; + bool requestIdIsSet() const; + void unsetrequestId(); + void setRequestId(const std::string& value); + + /// + /// + /// + + UpdateInternetBandwidth getInternetBandwidth() const; + bool internetBandwidthIsSet() const; + void unsetinternetBandwidth(); + void setInternetBandwidth(const UpdateInternetBandwidth& value); + + /// + /// + /// + + std::string getXRequestId() const; + bool xRequestIdIsSet() const; + void unsetxRequestId(); + void setXRequestId(const std::string& value); + + +protected: + std::string requestId_; + bool requestIdIsSet_; + UpdateInternetBandwidth internetBandwidth_; + bool internetBandwidthIsSet_; + std::string xRequestId_; + bool xRequestIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GEIP_V3_MODEL_UpdateInternetBandwidthResponse_H_ diff --git a/geip/src/v3/CMakeLists.txt b/geip/src/v3/CMakeLists.txt new file mode 100644 index 000000000..118013283 --- /dev/null +++ b/geip/src/v3/CMakeLists.txt @@ -0,0 +1,80 @@ +cmake_minimum_required (VERSION 3.10) + +#PROJECT's NAME +project(geip_v3) + +if(CMAKE_HOST_WIN32) + add_compile_options(-bigobj) +else() + set(cxx_base_flags "${cxx_base_flags} -bigobj") +endif() + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_UUID_FORCE_AUTO_LINK") + +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release) +endif() + +#HEADER FILES +file(GLOB service_client_header + ${CMAKE_SOURCE_DIR}/geip/include/huaweicloud/geip/v3/*.h) +file(GLOB service_model_header + ${CMAKE_SOURCE_DIR}/geip/include/huaweicloud/geip/v3/model/*.h) +#SOURCE FILES +file(GLOB source_file + ${CMAKE_SOURCE_DIR}/geip/src/v3/*.cpp + ${CMAKE_SOURCE_DIR}/geip/src/v3/model/*.cpp) + +add_library(geip_v3 ${LIB_TYPE} + ${source_file} + ${service_client_header} + ${service_model_header}) + +set_target_properties(geip_v3 + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME geip_v3 + ) + +if(CMAKE_HOST_WIN32) + if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(geip_v3 + PROPERTIES + DEFINE_SYMBOL HUAWEICLOUD_GEIP_V3_SHARED) + endif() +else() + if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(geip_v3 + PROPERTIES + DEFINE_SYMBOL HUAWEICLOUD_GEIP_V3_EXPORT) + endif() +endif() + +target_include_directories(geip_v3 PUBLIC + ${CMAKE_SOURCE_DIR}/geip/include + ) + +target_link_libraries(geip_v3 PUBLIC + core) + +if(ENABLE_RTTR) + if(NOT CMAKE_HOST_WIN32) + set(rttr_DIR /home/nfs/rttr/rttr-0.9.6/build/install/share/rttr/cmake) + endif() + find_package(rttr CONFIG REQUIRED) + target_link_libraries(geip_v3 PUBLIC + RTTR::Core) +endif() + +install(FILES ${service_client_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/huaweicloud/geip/v3) +install(FILES ${service_model_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/huaweicloud/geip/v3/model) +install(TARGETS geip_v3 + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} +) \ No newline at end of file diff --git a/geip/src/v3/GeipClient.cpp b/geip/src/v3/GeipClient.cpp new file mode 100644 index 000000000..de77688df --- /dev/null +++ b/geip/src/v3/GeipClient.cpp @@ -0,0 +1,3058 @@ +#include +#include + +#include + +#include + +template +std::string toString(const T value) +{ + std::ostringstream out; + out << std::setprecision(std::numeric_limits::digits10) << std::fixed << value; + return out.str(); +} + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { + +using namespace HuaweiCloud::Sdk::Geip::V3::Model; + +GeipClient::GeipClient() +{ +} + +GeipClient::~GeipClient() +{ +} + +ClientBuilder GeipClient::newBuilder() +{ + return ClientBuilder("GlobalCredentials"); +} +std::shared_ptr GeipClient::addInternetBandwidthTags(AddInternetBandwidthTagsRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/{resource_id}/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForAddInternetBandwidthTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchCreateInternetBandwidth(BatchCreateInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidths/batch-create"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchCreateInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchCreateInternetBandwidthTags(BatchCreateInternetBandwidthTagsRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/{resource_id}/tags/create"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchCreateInternetBandwidthTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchDeleteInternetBandwidthTags(BatchDeleteInternetBandwidthTagsRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/{resource_id}/tags/delete"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchDeleteInternetBandwidthTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::countInternetBandwidth(CountInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidths/count"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.sizeIsSet()) { + localVarQueryParams["size"] = parameterToString(request.getSize()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.nameLikeIsSet()) { + localVarQueryParams["name_like"] = parameterToString(request.getNameLike()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.tagsIsSet()) { + localVarQueryParams["tags"] = parameterToString(request.getTags()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForCountInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::createInternetBandwidth(CreateInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidths"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForCreateInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::createUserDisclaimer(CreateUserDisclaimerRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/user-disclaimer-records"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForCreateUserDisclaimer()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::deleteInternetBandwidth(DeleteInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidths/{internet_bandwidth_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["internet_bandwidth_id"] = parameterToString(request.getInternetBandwidthId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDeleteInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::deleteInternetBandwidthTag(DeleteInternetBandwidthTagRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/{resource_id}/tags/{tag_key}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + localVarPathParams["tag_key"] = parameterToString(request.getTagKey()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDeleteInternetBandwidthTag()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::deleteUserDisclaimer(DeleteUserDisclaimerRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/user-disclaimer-records"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDeleteUserDisclaimer()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listAccessSites(ListAccessSitesRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/access-sites"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.proxyRegionIsSet()) { + localVarQueryParams["proxy_region"] = parameterToString(request.getProxyRegion()); + } + if (request.iecAzCodeIsSet()) { + localVarQueryParams["iec_az_code"] = parameterToString(request.getIecAzCode()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListAccessSites()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listGeipResourceQuotas(ListGeipResourceQuotasRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/quotas"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGeipResourceQuotas()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listInternetBandwidthCountFilterTags(ListInternetBandwidthCountFilterTagsRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/resource-instances/count"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListInternetBandwidthCountFilterTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::listInternetBandwidthDomainTags(ListInternetBandwidthDomainTagsRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListInternetBandwidthDomainTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listInternetBandwidthFilterTags(ListInternetBandwidthFilterTagsRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/resource-instances/filter"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListInternetBandwidthFilterTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::listInternetBandwidthLimits(ListInternetBandwidthLimitsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidth-limits"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.chargeModeIsSet()) { + localVarQueryParams["charge_mode"] = parameterToString(request.getChargeMode()); + } + if (request.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListInternetBandwidthLimits()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listInternetBandwidths(ListInternetBandwidthsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidths"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.extFieldsIsSet()) { + localVarQueryParams["ext-fields"] = parameterToString(request.getExtFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.sizeIsSet()) { + localVarQueryParams["size"] = parameterToString(request.getSize()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.nameLikeIsSet()) { + localVarQueryParams["name_like"] = parameterToString(request.getNameLike()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.tagsIsSet()) { + localVarQueryParams["tags"] = parameterToString(request.getTags()); + } + if (request.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListInternetBandwidths()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listSupportMasks(ListSupportMasksRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/support-masks"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.ipVersionIsSet()) { + localVarQueryParams["ip_version"] = parameterToString(request.getIpVersion()); + } + if (request.maskIsSet()) { + localVarQueryParams["mask"] = parameterToString(request.getMask()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListSupportMasks()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showInternetBandwidth(ShowInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidths/{internet_bandwidth_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["internet_bandwidth_id"] = parameterToString(request.getInternetBandwidthId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showInternetBandwidthTags(ShowInternetBandwidthTagsRequest &request) +{ + std::string localVarPath = "/v3/internet-bandwidth/{resource_id}/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowInternetBandwidthTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showUserDisclaimer(ShowUserDisclaimerRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/user-disclaimer-records"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowUserDisclaimer()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::updateInternetBandwidth(UpdateInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/internet-bandwidths/{internet_bandwidth_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["internet_bandwidth_id"] = parameterToString(request.getInternetBandwidthId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForUpdateInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::addGeipSegmentTags(AddGeipSegmentTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/{resource_id}/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForAddGeipSegmentTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::addGlobalEipTags(AddGlobalEipTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip/{resource_id}/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForAddGlobalEipTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::associateGeipSegmentInstance(AssociateGeipSegmentInstanceRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/{global_eip_segment_id}/associate-instance"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_segment_id"] = parameterToString(request.getGlobalEipSegmentId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForAssociateGeipSegmentInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::associateInstance(AssociateInstanceRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/{global_eip_id}/associate-instance"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_id"] = parameterToString(request.getGlobalEipId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.bindingInstanceServiceIsSet()) { + localVarHeaderParams["binding-instance-service"] = parameterToString(request.getBindingInstanceService()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForAssociateInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::attachInternetBandwidth(AttachInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/{global_eip_id}/attach-internet-bandwidth"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_id"] = parameterToString(request.getGlobalEipId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForAttachInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchAttachGeipSegmentInternetBandwidth(BatchAttachGeipSegmentInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/batch-attach-internet-bandwidths"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchAttachGeipSegmentInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchAttachInternetBandwidth(BatchAttachInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/batch-attach-internet-bandwidths"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchAttachInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchCreateGeipSegmentTags(BatchCreateGeipSegmentTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/{resource_id}/tags/create"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchCreateGeipSegmentTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchCreateGlobalEip(BatchCreateGlobalEipRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/batch-create"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchCreateGlobalEip()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchCreateGlobalEipTags(BatchCreateGlobalEipTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip/{resource_id}/tags/create"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchCreateGlobalEipTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchDeleteGeipSegmentTags(BatchDeleteGeipSegmentTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/{resource_id}/tags/delete"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchDeleteGeipSegmentTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchDeleteGlobalEipTags(BatchDeleteGlobalEipTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip/{resource_id}/tags/delete"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchDeleteGlobalEipTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchDetachGeipSegmentInternetBandwidth(BatchDetachGeipSegmentInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/batch-detach-internet-bandwidths"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchDetachGeipSegmentInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::batchDetachInternetBandwidth(BatchDetachInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/batch-detach-internet-bandwidths"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForBatchDetachInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::countGlobalEipSegment(CountGlobalEipSegmentRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/count"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.internetBandwidthIdIsSet()) { + localVarQueryParams["internet_bandwidth_id"] = parameterToString(request.getInternetBandwidthId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.nameLikeIsSet()) { + localVarQueryParams["name_like"] = parameterToString(request.getNameLike()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.geipPoolNameIsSet()) { + localVarQueryParams["geip_pool_name"] = parameterToString(request.getGeipPoolName()); + } + if (request.ispIsSet()) { + localVarQueryParams["isp"] = parameterToString(request.getIsp()); + } + if (request.ipVersionIsSet()) { + localVarQueryParams["ip_version"] = parameterToString(request.getIpVersion()); + } + if (request.cidrIsSet()) { + localVarQueryParams["cidr"] = parameterToString(request.getCidr()); + } + if (request.cidrV6IsSet()) { + localVarQueryParams["cidr_v6"] = parameterToString(request.getCidrV6()); + } + if (request.freezenIsSet()) { + localVarQueryParams["freezen"] = parameterToString(request.getFreezen()); + } + if (request.internetBandwidthIsNullIsSet()) { + localVarQueryParams["internet_bandwidth_is_null"] = parameterToString(request.getInternetBandwidthIsNull()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + if (request.associateInstancePeriodregionIsSet()) { + localVarQueryParams["associate_instance.region"] = parameterToString(request.getAssociateInstancePeriodregion()); + } + if (request.associateInstancePeriodpublicBorderGroupIsSet()) { + localVarQueryParams["associate_instance.public_border_group"] = parameterToString(request.getAssociateInstancePeriodpublicBorderGroup()); + } + if (request.associateInstancePeriodinstanceSiteIsSet()) { + localVarQueryParams["associate_instance.instance_site"] = parameterToString(request.getAssociateInstancePeriodinstanceSite()); + } + if (request.associateInstancePeriodinstanceTypeIsSet()) { + localVarQueryParams["associate_instance.instance_type"] = parameterToString(request.getAssociateInstancePeriodinstanceType()); + } + if (request.associateInstancePeriodinstanceIdIsSet()) { + localVarQueryParams["associate_instance.instance_id"] = parameterToString(request.getAssociateInstancePeriodinstanceId()); + } + if (request.associateInstancePeriodprojectIdIsSet()) { + localVarQueryParams["associate_instance.project_id"] = parameterToString(request.getAssociateInstancePeriodprojectId()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.tagsIsSet()) { + localVarQueryParams["tags"] = parameterToString(request.getTags()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForCountGlobalEipSegment()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::countGlobalEips(CountGlobalEipsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/count"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.internetBandwidthIdIsSet()) { + localVarQueryParams["internet_bandwidth_id"] = parameterToString(request.getInternetBandwidthId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.nameLikeIsSet()) { + localVarQueryParams["name_like"] = parameterToString(request.getNameLike()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.geipPoolNameIsSet()) { + localVarQueryParams["geip_pool_name"] = parameterToString(request.getGeipPoolName()); + } + if (request.ispIsSet()) { + localVarQueryParams["isp"] = parameterToString(request.getIsp()); + } + if (request.ipVersionIsSet()) { + localVarQueryParams["ip_version"] = parameterToString(request.getIpVersion()); + } + if (request.ipAddressIsSet()) { + localVarQueryParams["ip_address"] = parameterToString(request.getIpAddress()); + } + if (request.ipv6AddressIsSet()) { + localVarQueryParams["ipv6_address"] = parameterToString(request.getIpv6Address()); + } + if (request.freezenIsSet()) { + localVarQueryParams["freezen"] = parameterToString(request.getFreezen()); + } + if (request.pollutedIsSet()) { + localVarQueryParams["polluted"] = parameterToString(request.getPolluted()); + } + if (request.internetBandwidthIsNullIsSet()) { + localVarQueryParams["internet_bandwidth_is_null"] = parameterToString(request.getInternetBandwidthIsNull()); + } + if (request.gcbBandwidthIsNullIsSet()) { + localVarQueryParams["gcb_bandwidth_is_null"] = parameterToString(request.getGcbBandwidthIsNull()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + if (request.associateInstanceInfoPeriodregionIsSet()) { + localVarQueryParams["associate_instance_info.region"] = parameterToString(request.getAssociateInstanceInfoPeriodregion()); + } + if (request.associateInstanceInfoPeriodpublicBorderGroupIsSet()) { + localVarQueryParams["associate_instance_info.public_border_group"] = parameterToString(request.getAssociateInstanceInfoPeriodpublicBorderGroup()); + } + if (request.associateInstanceInfoPeriodinstanceSiteIsSet()) { + localVarQueryParams["associate_instance_info.instance_site"] = parameterToString(request.getAssociateInstanceInfoPeriodinstanceSite()); + } + if (request.associateInstanceInfoPeriodinstanceTypeIsSet()) { + localVarQueryParams["associate_instance_info.instance_type"] = parameterToString(request.getAssociateInstanceInfoPeriodinstanceType()); + } + if (request.associateInstanceInfoPeriodinstanceIdIsSet()) { + localVarQueryParams["associate_instance_info.instance_id"] = parameterToString(request.getAssociateInstanceInfoPeriodinstanceId()); + } + if (request.associateInstanceInfoPeriodprojectIdIsSet()) { + localVarQueryParams["associate_instance_info.project_id"] = parameterToString(request.getAssociateInstanceInfoPeriodprojectId()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.tagsIsSet()) { + localVarQueryParams["tags"] = parameterToString(request.getTags()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForCountGlobalEips()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::createGlobalEip(CreateGlobalEipRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForCreateGlobalEip()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::createGlobalEipSegment(CreateGlobalEipSegmentRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForCreateGlobalEipSegment()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::deleteGeipSegmentTag(DeleteGeipSegmentTagRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/{resource_id}/tags/{tag_key}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + localVarPathParams["tag_key"] = parameterToString(request.getTagKey()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDeleteGeipSegmentTag()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::deleteGlobalEip(DeleteGlobalEipRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/{global_eip_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_id"] = parameterToString(request.getGlobalEipId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDeleteGlobalEip()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::deleteGlobalEipSegment(DeleteGlobalEipSegmentRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/{global_eip_segment_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_segment_id"] = parameterToString(request.getGlobalEipSegmentId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDeleteGlobalEipSegment()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::deleteGlobalEipTag(DeleteGlobalEipTagRequest &request) +{ + std::string localVarPath = "/v3/global-eip/{resource_id}/tags/{tag_key}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + localVarPathParams["tag_key"] = parameterToString(request.getTagKey()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDeleteGlobalEipTag()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::detachInternetBandwidth(DetachInternetBandwidthRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/{global_eip_id}/detach-internet-bandwidth"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_id"] = parameterToString(request.getGlobalEipId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.forceUnbindIsSet()) { + localVarQueryParams["force_unbind"] = parameterToString(request.isForceUnbind()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDetachInternetBandwidth()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::disassociateGeipSegmentInstance(DisassociateGeipSegmentInstanceRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/{global_eip_segment_id}/disassociate-instance"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_segment_id"] = parameterToString(request.getGlobalEipSegmentId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDisassociateGeipSegmentInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::disassociateInstance(DisassociateInstanceRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/{global_eip_id}/disassociate-instance"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_id"] = parameterToString(request.getGlobalEipId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.isReserveGcbIsSet()) { + localVarHeaderParams["is_reserve_gcb"] = parameterToString(request.isIsReserveGcb()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForDisassociateInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listGeipPools(ListGeipPoolsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/geip-pools"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.ispIsSet()) { + localVarQueryParams["isp"] = parameterToString(request.getIsp()); + } + if (request.ipVersionIsSet()) { + localVarQueryParams["ip_version"] = parameterToString(request.getIpVersion()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + if (request.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGeipPools()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listGeipSegmentCountFilterTags(ListGeipSegmentCountFilterTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/resource-instances/count"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGeipSegmentCountFilterTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::listGeipSegmentDomainTags(ListGeipSegmentDomainTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGeipSegmentDomainTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listGeipSegmentFilterTags(ListGeipSegmentFilterTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/resource-instances/filter"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGeipSegmentFilterTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::listGlobalEipCountFilterTags(ListGlobalEipCountFilterTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip/resource-instances/count"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGlobalEipCountFilterTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::listGlobalEipDomainTags(ListGlobalEipDomainTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGlobalEipDomainTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listGlobalEipFilterTags(ListGlobalEipFilterTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip/resource-instances/filter"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGlobalEipFilterTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::listGlobalEipSegments(ListGlobalEipSegmentsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.internetBandwidthIdIsSet()) { + localVarQueryParams["internet_bandwidth_id"] = parameterToString(request.getInternetBandwidthId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.nameLikeIsSet()) { + localVarQueryParams["name_like"] = parameterToString(request.getNameLike()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.geipPoolNameIsSet()) { + localVarQueryParams["geip_pool_name"] = parameterToString(request.getGeipPoolName()); + } + if (request.ispIsSet()) { + localVarQueryParams["isp"] = parameterToString(request.getIsp()); + } + if (request.ipVersionIsSet()) { + localVarQueryParams["ip_version"] = parameterToString(request.getIpVersion()); + } + if (request.cidrIsSet()) { + localVarQueryParams["cidr"] = parameterToString(request.getCidr()); + } + if (request.cidrV6IsSet()) { + localVarQueryParams["cidr_v6"] = parameterToString(request.getCidrV6()); + } + if (request.freezenIsSet()) { + localVarQueryParams["freezen"] = parameterToString(request.getFreezen()); + } + if (request.internetBandwidthIsNullIsSet()) { + localVarQueryParams["internet_bandwidth_is_null"] = parameterToString(request.getInternetBandwidthIsNull()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + if (request.associateInstancePeriodregionIsSet()) { + localVarQueryParams["associate_instance.region"] = parameterToString(request.getAssociateInstancePeriodregion()); + } + if (request.associateInstancePeriodinstanceTypeIsSet()) { + localVarQueryParams["associate_instance.instance_type"] = parameterToString(request.getAssociateInstancePeriodinstanceType()); + } + if (request.associateInstancePeriodpublicBorderGroupIsSet()) { + localVarQueryParams["associate_instance.public_border_group"] = parameterToString(request.getAssociateInstancePeriodpublicBorderGroup()); + } + if (request.associateInstancePeriodinstanceSiteIsSet()) { + localVarQueryParams["associate_instance.instance_site"] = parameterToString(request.getAssociateInstancePeriodinstanceSite()); + } + if (request.associateInstancePeriodinstanceIdIsSet()) { + localVarQueryParams["associate_instance.instance_id"] = parameterToString(request.getAssociateInstancePeriodinstanceId()); + } + if (request.associateInstancePeriodprojectIdIsSet()) { + localVarQueryParams["associate_instance.project_id"] = parameterToString(request.getAssociateInstancePeriodprojectId()); + } + if (request.associateInstancePeriodserviceIdIsSet()) { + localVarQueryParams["associate_instance.service_id"] = parameterToString(request.getAssociateInstancePeriodserviceId()); + } + if (request.associateInstancePeriodserviceTypeIsSet()) { + localVarQueryParams["associate_instance.service_type"] = parameterToString(request.getAssociateInstancePeriodserviceType()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.tagsIsSet()) { + localVarQueryParams["tags"] = parameterToString(request.getTags()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGlobalEipSegments()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listGlobalEips(ListGlobalEipsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.internetBandwidthIdIsSet()) { + localVarQueryParams["internet_bandwidth_id"] = parameterToString(request.getInternetBandwidthId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.nameLikeIsSet()) { + localVarQueryParams["name_like"] = parameterToString(request.getNameLike()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.geipPoolNameIsSet()) { + localVarQueryParams["geip_pool_name"] = parameterToString(request.getGeipPoolName()); + } + if (request.ispIsSet()) { + localVarQueryParams["isp"] = parameterToString(request.getIsp()); + } + if (request.ipVersionIsSet()) { + localVarQueryParams["ip_version"] = parameterToString(request.getIpVersion()); + } + if (request.ipAddressIsSet()) { + localVarQueryParams["ip_address"] = parameterToString(request.getIpAddress()); + } + if (request.ipv6AddressIsSet()) { + localVarQueryParams["ipv6_address"] = parameterToString(request.getIpv6Address()); + } + if (request.freezenIsSet()) { + localVarQueryParams["freezen"] = parameterToString(request.getFreezen()); + } + if (request.pollutedIsSet()) { + localVarQueryParams["polluted"] = parameterToString(request.getPolluted()); + } + if (request.internetBandwidthIsNullIsSet()) { + localVarQueryParams["internet_bandwidth_is_null"] = parameterToString(request.getInternetBandwidthIsNull()); + } + if (request.gcbBandwidthIsNullIsSet()) { + localVarQueryParams["gcb_bandwidth_is_null"] = parameterToString(request.getGcbBandwidthIsNull()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + if (request.associateInstanceInfoPeriodregionIsSet()) { + localVarQueryParams["associate_instance_info.region"] = parameterToString(request.getAssociateInstanceInfoPeriodregion()); + } + if (request.associateInstanceInfoPeriodinstanceTypeIsSet()) { + localVarQueryParams["associate_instance_info.instance_type"] = parameterToString(request.getAssociateInstanceInfoPeriodinstanceType()); + } + if (request.associateInstanceInfoPeriodpublicBorderGroupIsSet()) { + localVarQueryParams["associate_instance_info.public_border_group"] = parameterToString(request.getAssociateInstanceInfoPeriodpublicBorderGroup()); + } + if (request.associateInstanceInfoPeriodinstanceSiteIsSet()) { + localVarQueryParams["associate_instance_info.instance_site"] = parameterToString(request.getAssociateInstanceInfoPeriodinstanceSite()); + } + if (request.associateInstanceInfoPeriodinstanceIdIsSet()) { + localVarQueryParams["associate_instance_info.instance_id"] = parameterToString(request.getAssociateInstanceInfoPeriodinstanceId()); + } + if (request.associateInstanceInfoPeriodprojectIdIsSet()) { + localVarQueryParams["associate_instance_info.project_id"] = parameterToString(request.getAssociateInstanceInfoPeriodprojectId()); + } + if (request.associateInstanceInfoPeriodserviceIdIsSet()) { + localVarQueryParams["associate_instance_info.service_id"] = parameterToString(request.getAssociateInstanceInfoPeriodserviceId()); + } + if (request.associateInstanceInfoPeriodserviceTypeIsSet()) { + localVarQueryParams["associate_instance_info.service_type"] = parameterToString(request.getAssociateInstanceInfoPeriodserviceType()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.tagsIsSet()) { + localVarQueryParams["tags"] = parameterToString(request.getTags()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListGlobalEips()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showGeipSegmentTags(ShowGeipSegmentTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip-segment/{resource_id}/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowGeipSegmentTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showGlobalEip(ShowGlobalEipRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/{global_eip_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_id"] = parameterToString(request.getGlobalEipId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowGlobalEip()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showGlobalEipSegment(ShowGlobalEipSegmentRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/{global_eip_segment_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_segment_id"] = parameterToString(request.getGlobalEipSegmentId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowGlobalEipSegment()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showGlobalEipTags(ShowGlobalEipTagsRequest &request) +{ + std::string localVarPath = "/v3/global-eip/{resource_id}/tags"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["resource_id"] = parameterToString(request.getResourceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowGlobalEipTags()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::updateGlobalEip(UpdateGlobalEipRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/{global_eip_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_id"] = parameterToString(request.getGlobalEipId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForUpdateGlobalEip()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::updateGlobalEipSegment(UpdateGlobalEipSegmentRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eip-segments/{global_eip_segment_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["global_eip_segment_id"] = parameterToString(request.getGlobalEipSegmentId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForUpdateGlobalEipSegment()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr GeipClient::listJobs(ListJobsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/jobs"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.actionIsSet()) { + localVarQueryParams["action"] = parameterToString(request.getAction()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListJobs()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::showJobs(ShowJobsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/jobs/{job_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["job_id"] = parameterToString(request.getJobId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForShowJobs()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listSupportRegions(ListSupportRegionsRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/geip/support-regions"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.markerIsSet()) { + localVarQueryParams["marker"] = parameterToString(request.getMarker()); + } + if (request.pageReverseIsSet()) { + localVarQueryParams["page_reverse"] = parameterToString(request.isPageReverse()); + } + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + if (request.sortKeyIsSet()) { + localVarQueryParams["sort_key"] = parameterToString(request.getSortKey()); + } + if (request.sortDirIsSet()) { + localVarQueryParams["sort_dir"] = parameterToString(request.getSortDir()); + } + if (request.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.instanceTypeIsSet()) { + localVarQueryParams["instance_type"] = parameterToString(request.getInstanceType()); + } + if (request.publicBorderGroupIsSet()) { + localVarQueryParams["public_border_group"] = parameterToString(request.getPublicBorderGroup()); + } + if (request.accessSiteIsSet()) { + localVarQueryParams["access_site"] = parameterToString(request.getAccessSite()); + } + if (request.regionIdIsSet()) { + localVarQueryParams["region_id"] = parameterToString(request.getRegionId()); + } + if (request.remoteEndpointIsSet()) { + localVarQueryParams["remote_endpoint"] = parameterToString(request.getRemoteEndpoint()); + } + if (request.statusIsSet()) { + localVarQueryParams["status"] = parameterToString(request.getStatus()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListSupportRegions()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GeipClient::listTenantGeipSupportInstances(ListTenantGeipSupportInstancesRequest &request) +{ + std::string localVarPath = "/v3/{domain_id}/global-eips/support-instances/{access_site}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["access_site"] = parameterToString(request.getAccessSite()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.fieldsIsSet()) { + localVarQueryParams["fields"] = parameterToString(request.getFields()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GeipMeta::genRequestDefForListTenantGeipSupportInstances()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) +std::string GeipClient::parameterToString(utility::string_t value) +{ + return utility::conversions::to_utf8string(value); +} +#endif +std::string GeipClient::parameterToString(std::string value) +{ + return value; +} + +std::string GeipClient::parameterToString(int64_t value) +{ + std::stringstream valueAsStringStream; + valueAsStringStream << value; + return valueAsStringStream.str(); +} + +std::string GeipClient::parameterToString(int32_t value) +{ + std::stringstream valueAsStringStream; + valueAsStringStream << value; + return valueAsStringStream.str(); +} + +std::string GeipClient::parameterToString(float value) +{ + return toString(value); +} + +std::string GeipClient::parameterToString(double value) +{ + return toString(value); +} + +std::string GeipClient::parameterToString(const Object& obj) +{ + auto val = obj.toJson(); + std::string value; + ModelBase::fromJson(val, value); + return value; +} +std::string GeipClient::parameterToString(const utility::datetime &value) +{ + return utility::conversions::to_utf8string(value.to_string(utility::datetime::ISO_8601)); +} + +} +} +} +} + diff --git a/geip/src/v3/GeipMeta.cpp b/geip/src/v3/GeipMeta.cpp new file mode 100644 index 000000000..e8ae1eda8 --- /dev/null +++ b/geip/src/v3/GeipMeta.cpp @@ -0,0 +1,1463 @@ + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { + +using namespace HuaweiCloud::Sdk::Core::Http; + +HttpRequestDef GeipMeta::genRequestDefForAddInternetBandwidthTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchCreateInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchCreateInternetBandwidthTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("x-request-id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchDeleteInternetBandwidthTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("x-request-id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForCountInternetBandwidth() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Size") + .withJsonTag("size") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("NameLike") + .withJsonTag("name_like") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Tags") + .withJsonTag("tags") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForCreateInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForCreateUserDisclaimer() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDeleteInternetBandwidth() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDeleteInternetBandwidthTag() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDeleteUserDisclaimer() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListAccessSites() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("ProxyRegion") + .withJsonTag("proxy_region") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IecAzCode") + .withJsonTag("iec_az_code") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGeipResourceQuotas() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListInternetBandwidthCountFilterTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListInternetBandwidthDomainTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListInternetBandwidthFilterTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListInternetBandwidthLimits() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("ChargeMode") + .withJsonTag("charge_mode") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListInternetBandwidths() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("ExtFields") + .withJsonTag("ext-fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Size") + .withJsonTag("size") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("NameLike") + .withJsonTag("name_like") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Tags") + .withJsonTag("tags") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListSupportMasks() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpVersion") + .withJsonTag("ip_version") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Mask") + .withJsonTag("mask") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowInternetBandwidth() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowInternetBandwidthTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowUserDisclaimer() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForUpdateInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForAddGeipSegmentTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForAddGlobalEipTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForAssociateGeipSegmentInstance() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForAssociateInstance() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamBindingInstanceService; + reqDefBuilder.withRequestField(headerParamBindingInstanceService + .withName("BindingInstanceService") + .withJsonTag("binding-instance-service") + .withLocationType(Header_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForAttachInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchAttachGeipSegmentInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchAttachInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchCreateGeipSegmentTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("x-request-id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchCreateGlobalEip() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchCreateGlobalEipTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("x-request-id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchDeleteGeipSegmentTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("x-request-id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchDeleteGlobalEipTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("x-request-id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchDetachGeipSegmentInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForBatchDetachInternetBandwidth() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForCountGlobalEipSegment() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthId") + .withJsonTag("internet_bandwidth_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("NameLike") + .withJsonTag("name_like") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GeipPoolName") + .withJsonTag("geip_pool_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Isp") + .withJsonTag("isp") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpVersion") + .withJsonTag("ip_version") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Cidr") + .withJsonTag("cidr") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("CidrV6") + .withJsonTag("cidr_v6") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Freezen") + .withJsonTag("freezen") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthIsNull") + .withJsonTag("internet_bandwidth_is_null") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodregion") + .withJsonTag("associate_instance.region") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodpublicBorderGroup") + .withJsonTag("associate_instance.public_border_group") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodinstanceSite") + .withJsonTag("associate_instance.instance_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodinstanceType") + .withJsonTag("associate_instance.instance_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodinstanceId") + .withJsonTag("associate_instance.instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodprojectId") + .withJsonTag("associate_instance.project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Tags") + .withJsonTag("tags") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForCountGlobalEips() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthId") + .withJsonTag("internet_bandwidth_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("NameLike") + .withJsonTag("name_like") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GeipPoolName") + .withJsonTag("geip_pool_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Isp") + .withJsonTag("isp") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpVersion") + .withJsonTag("ip_version") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpAddress") + .withJsonTag("ip_address") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Ipv6Address") + .withJsonTag("ipv6_address") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Freezen") + .withJsonTag("freezen") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Polluted") + .withJsonTag("polluted") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthIsNull") + .withJsonTag("internet_bandwidth_is_null") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GcbBandwidthIsNull") + .withJsonTag("gcb_bandwidth_is_null") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodregion") + .withJsonTag("associate_instance_info.region") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodpublicBorderGroup") + .withJsonTag("associate_instance_info.public_border_group") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodinstanceSite") + .withJsonTag("associate_instance_info.instance_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodinstanceType") + .withJsonTag("associate_instance_info.instance_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodinstanceId") + .withJsonTag("associate_instance_info.instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodprojectId") + .withJsonTag("associate_instance_info.project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Tags") + .withJsonTag("tags") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForCreateGlobalEip() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForCreateGlobalEipSegment() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDeleteGeipSegmentTag() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDeleteGlobalEip() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDeleteGlobalEipSegment() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDeleteGlobalEipTag() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDetachInternetBandwidth() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("ForceUnbind") + .withJsonTag("force_unbind") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDisassociateGeipSegmentInstance() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForDisassociateInstance() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamIsReserveGcb; + reqDefBuilder.withRequestField(headerParamIsReserveGcb + .withName("IsReserveGcb") + .withJsonTag("is_reserve_gcb") + .withLocationType(Header_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGeipPools() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Isp") + .withJsonTag("isp") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpVersion") + .withJsonTag("ip_version") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGeipSegmentCountFilterTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGeipSegmentDomainTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGeipSegmentFilterTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGlobalEipCountFilterTags() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGlobalEipDomainTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGlobalEipFilterTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGlobalEipSegments() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthId") + .withJsonTag("internet_bandwidth_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("NameLike") + .withJsonTag("name_like") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GeipPoolName") + .withJsonTag("geip_pool_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Isp") + .withJsonTag("isp") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpVersion") + .withJsonTag("ip_version") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Cidr") + .withJsonTag("cidr") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("CidrV6") + .withJsonTag("cidr_v6") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Freezen") + .withJsonTag("freezen") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthIsNull") + .withJsonTag("internet_bandwidth_is_null") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodregion") + .withJsonTag("associate_instance.region") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodinstanceType") + .withJsonTag("associate_instance.instance_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodpublicBorderGroup") + .withJsonTag("associate_instance.public_border_group") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodinstanceSite") + .withJsonTag("associate_instance.instance_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodinstanceId") + .withJsonTag("associate_instance.instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodprojectId") + .withJsonTag("associate_instance.project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodserviceId") + .withJsonTag("associate_instance.service_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstancePeriodserviceType") + .withJsonTag("associate_instance.service_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Tags") + .withJsonTag("tags") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListGlobalEips() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthId") + .withJsonTag("internet_bandwidth_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("NameLike") + .withJsonTag("name_like") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GeipPoolName") + .withJsonTag("geip_pool_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Isp") + .withJsonTag("isp") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpVersion") + .withJsonTag("ip_version") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IpAddress") + .withJsonTag("ip_address") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Ipv6Address") + .withJsonTag("ipv6_address") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Freezen") + .withJsonTag("freezen") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Polluted") + .withJsonTag("polluted") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InternetBandwidthIsNull") + .withJsonTag("internet_bandwidth_is_null") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("GcbBandwidthIsNull") + .withJsonTag("gcb_bandwidth_is_null") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodregion") + .withJsonTag("associate_instance_info.region") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodinstanceType") + .withJsonTag("associate_instance_info.instance_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodpublicBorderGroup") + .withJsonTag("associate_instance_info.public_border_group") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodinstanceSite") + .withJsonTag("associate_instance_info.instance_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodinstanceId") + .withJsonTag("associate_instance_info.instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodprojectId") + .withJsonTag("associate_instance_info.project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodserviceId") + .withJsonTag("associate_instance_info.service_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AssociateInstanceInfoPeriodserviceType") + .withJsonTag("associate_instance_info.service_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Tags") + .withJsonTag("tags") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowGeipSegmentTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowGlobalEip() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowGlobalEipSegment() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowGlobalEipTags() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForUpdateGlobalEip() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForUpdateGlobalEipSegment() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListJobs() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Action") + .withJsonTag("action") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForShowJobs() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListSupportRegions() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Marker") + .withJsonTag("marker") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PageReverse") + .withJsonTag("page_reverse") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortKey") + .withJsonTag("sort_key") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SortDir") + .withJsonTag("sort_dir") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InstanceType") + .withJsonTag("instance_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("PublicBorderGroup") + .withJsonTag("public_border_group") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("AccessSite") + .withJsonTag("access_site") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("RegionId") + .withJsonTag("region_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("RemoteEndpoint") + .withJsonTag("remote_endpoint") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Status") + .withJsonTag("status") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GeipMeta::genRequestDefForListTenantGeipSupportInstances() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Fields") + .withJsonTag("fields") + .withLocationType(Query_)); + reqDefBuilder.withResponseField(FieldDef(). + withName("xRequestId"). + withJsonTag("X-Request-Id"). + withKindName("std::string"). + withLocationType(Header_)); + return reqDefBuilder; +} + + +} +} +} +} + diff --git a/geip/src/v3/GeipRegion.cpp b/geip/src/v3/GeipRegion.cpp new file mode 100644 index 000000000..bffda67d8 --- /dev/null +++ b/geip/src/v3/GeipRegion.cpp @@ -0,0 +1,33 @@ +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { + +using namespace HuaweiCloud::Sdk::Core::Auth; +using namespace HuaweiCloud::Sdk::Core::Exception; + +GeipRegion::GeipRegion() +{} + +GeipRegion::~GeipRegion() +{} + +std::map GeipRegion::regions = GeipRegion::initRegions(); + +Region GeipRegion::valueOf(std::string regionId) { + if (regionId.empty()) { + throw SdkException("the regionId can not be null!"); + } + auto iter = regions.find(regionId); + if (iter != regions.end()) { + return iter->second; + } + throw SdkException("the regionId is supported for the service!"); +} + +} +} +} +} diff --git a/geip/src/v3/model/AddGeipSegmentTagsRequest.cpp b/geip/src/v3/model/AddGeipSegmentTagsRequest.cpp new file mode 100644 index 000000000..57d72266d --- /dev/null +++ b/geip/src/v3/model/AddGeipSegmentTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/AddGeipSegmentTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AddGeipSegmentTagsRequest::AddGeipSegmentTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +AddGeipSegmentTagsRequest::~AddGeipSegmentTagsRequest() = default; + +void AddGeipSegmentTagsRequest::validate() +{ +} + +web::json::value AddGeipSegmentTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool AddGeipSegmentTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateV2TagRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string AddGeipSegmentTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void AddGeipSegmentTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool AddGeipSegmentTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void AddGeipSegmentTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +CreateV2TagRequestBody AddGeipSegmentTagsRequest::getBody() const +{ + return body_; +} + +void AddGeipSegmentTagsRequest::setBody(const CreateV2TagRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool AddGeipSegmentTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void AddGeipSegmentTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AddGeipSegmentTagsResponse.cpp b/geip/src/v3/model/AddGeipSegmentTagsResponse.cpp new file mode 100644 index 000000000..051abd537 --- /dev/null +++ b/geip/src/v3/model/AddGeipSegmentTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/AddGeipSegmentTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AddGeipSegmentTagsResponse::AddGeipSegmentTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +AddGeipSegmentTagsResponse::~AddGeipSegmentTagsResponse() = default; + +void AddGeipSegmentTagsResponse::validate() +{ +} + +web::json::value AddGeipSegmentTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool AddGeipSegmentTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string AddGeipSegmentTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void AddGeipSegmentTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool AddGeipSegmentTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void AddGeipSegmentTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AddGlobalEipTagsRequest.cpp b/geip/src/v3/model/AddGlobalEipTagsRequest.cpp new file mode 100644 index 000000000..0c01782a3 --- /dev/null +++ b/geip/src/v3/model/AddGlobalEipTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/AddGlobalEipTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AddGlobalEipTagsRequest::AddGlobalEipTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +AddGlobalEipTagsRequest::~AddGlobalEipTagsRequest() = default; + +void AddGlobalEipTagsRequest::validate() +{ +} + +web::json::value AddGlobalEipTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool AddGlobalEipTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateV2TagRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string AddGlobalEipTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void AddGlobalEipTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool AddGlobalEipTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void AddGlobalEipTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +CreateV2TagRequestBody AddGlobalEipTagsRequest::getBody() const +{ + return body_; +} + +void AddGlobalEipTagsRequest::setBody(const CreateV2TagRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool AddGlobalEipTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void AddGlobalEipTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AddGlobalEipTagsResponse.cpp b/geip/src/v3/model/AddGlobalEipTagsResponse.cpp new file mode 100644 index 000000000..55364a250 --- /dev/null +++ b/geip/src/v3/model/AddGlobalEipTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/AddGlobalEipTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AddGlobalEipTagsResponse::AddGlobalEipTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +AddGlobalEipTagsResponse::~AddGlobalEipTagsResponse() = default; + +void AddGlobalEipTagsResponse::validate() +{ +} + +web::json::value AddGlobalEipTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool AddGlobalEipTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string AddGlobalEipTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void AddGlobalEipTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool AddGlobalEipTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void AddGlobalEipTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AddInternetBandwidthTagsRequest.cpp b/geip/src/v3/model/AddInternetBandwidthTagsRequest.cpp new file mode 100644 index 000000000..0c2a708e4 --- /dev/null +++ b/geip/src/v3/model/AddInternetBandwidthTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/AddInternetBandwidthTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AddInternetBandwidthTagsRequest::AddInternetBandwidthTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +AddInternetBandwidthTagsRequest::~AddInternetBandwidthTagsRequest() = default; + +void AddInternetBandwidthTagsRequest::validate() +{ +} + +web::json::value AddInternetBandwidthTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool AddInternetBandwidthTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateV2TagRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string AddInternetBandwidthTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void AddInternetBandwidthTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool AddInternetBandwidthTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void AddInternetBandwidthTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +CreateV2TagRequestBody AddInternetBandwidthTagsRequest::getBody() const +{ + return body_; +} + +void AddInternetBandwidthTagsRequest::setBody(const CreateV2TagRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool AddInternetBandwidthTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void AddInternetBandwidthTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AddInternetBandwidthTagsResponse.cpp b/geip/src/v3/model/AddInternetBandwidthTagsResponse.cpp new file mode 100644 index 000000000..d23dcf81e --- /dev/null +++ b/geip/src/v3/model/AddInternetBandwidthTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/AddInternetBandwidthTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AddInternetBandwidthTagsResponse::AddInternetBandwidthTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +AddInternetBandwidthTagsResponse::~AddInternetBandwidthTagsResponse() = default; + +void AddInternetBandwidthTagsResponse::validate() +{ +} + +web::json::value AddInternetBandwidthTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool AddInternetBandwidthTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string AddInternetBandwidthTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void AddInternetBandwidthTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool AddInternetBandwidthTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void AddInternetBandwidthTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AllowedBandwidthTypes.cpp b/geip/src/v3/model/AllowedBandwidthTypes.cpp new file mode 100644 index 000000000..26e65943f --- /dev/null +++ b/geip/src/v3/model/AllowedBandwidthTypes.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/AllowedBandwidthTypes.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AllowedBandwidthTypes::AllowedBandwidthTypes() +{ + type_ = ""; + typeIsSet_ = false; + cnName_ = ""; + cnNameIsSet_ = false; + enName_ = ""; + enNameIsSet_ = false; +} + +AllowedBandwidthTypes::~AllowedBandwidthTypes() = default; + +void AllowedBandwidthTypes::validate() +{ +} + +web::json::value AllowedBandwidthTypes::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(cnNameIsSet_) { + val[utility::conversions::to_string_t("cn_name")] = ModelBase::toJson(cnName_); + } + if(enNameIsSet_) { + val[utility::conversions::to_string_t("en_name")] = ModelBase::toJson(enName_); + } + + return val; +} +bool AllowedBandwidthTypes::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cn_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cn_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCnName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("en_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("en_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnName(refVal); + } + } + return ok; +} + + +std::string AllowedBandwidthTypes::getType() const +{ + return type_; +} + +void AllowedBandwidthTypes::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool AllowedBandwidthTypes::typeIsSet() const +{ + return typeIsSet_; +} + +void AllowedBandwidthTypes::unsettype() +{ + typeIsSet_ = false; +} + +std::string AllowedBandwidthTypes::getCnName() const +{ + return cnName_; +} + +void AllowedBandwidthTypes::setCnName(const std::string& value) +{ + cnName_ = value; + cnNameIsSet_ = true; +} + +bool AllowedBandwidthTypes::cnNameIsSet() const +{ + return cnNameIsSet_; +} + +void AllowedBandwidthTypes::unsetcnName() +{ + cnNameIsSet_ = false; +} + +std::string AllowedBandwidthTypes::getEnName() const +{ + return enName_; +} + +void AllowedBandwidthTypes::setEnName(const std::string& value) +{ + enName_ = value; + enNameIsSet_ = true; +} + +bool AllowedBandwidthTypes::enNameIsSet() const +{ + return enNameIsSet_; +} + +void AllowedBandwidthTypes::unsetenName() +{ + enNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateGeipSegmentInstanceRequest.cpp b/geip/src/v3/model/AssociateGeipSegmentInstanceRequest.cpp new file mode 100644 index 000000000..0392623c8 --- /dev/null +++ b/geip/src/v3/model/AssociateGeipSegmentInstanceRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateGeipSegmentInstanceRequest::AssociateGeipSegmentInstanceRequest() +{ + globalEipSegmentId_ = ""; + globalEipSegmentIdIsSet_ = false; + bodyIsSet_ = false; +} + +AssociateGeipSegmentInstanceRequest::~AssociateGeipSegmentInstanceRequest() = default; + +void AssociateGeipSegmentInstanceRequest::validate() +{ +} + +web::json::value AssociateGeipSegmentInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment_id")] = ModelBase::toJson(globalEipSegmentId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool AssociateGeipSegmentInstanceRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + AssociateInstanceGlobalEipSegmentRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string AssociateGeipSegmentInstanceRequest::getGlobalEipSegmentId() const +{ + return globalEipSegmentId_; +} + +void AssociateGeipSegmentInstanceRequest::setGlobalEipSegmentId(const std::string& value) +{ + globalEipSegmentId_ = value; + globalEipSegmentIdIsSet_ = true; +} + +bool AssociateGeipSegmentInstanceRequest::globalEipSegmentIdIsSet() const +{ + return globalEipSegmentIdIsSet_; +} + +void AssociateGeipSegmentInstanceRequest::unsetglobalEipSegmentId() +{ + globalEipSegmentIdIsSet_ = false; +} + +AssociateInstanceGlobalEipSegmentRequestBody AssociateGeipSegmentInstanceRequest::getBody() const +{ + return body_; +} + +void AssociateGeipSegmentInstanceRequest::setBody(const AssociateInstanceGlobalEipSegmentRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool AssociateGeipSegmentInstanceRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void AssociateGeipSegmentInstanceRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateGeipSegmentInstanceResponse.cpp b/geip/src/v3/model/AssociateGeipSegmentInstanceResponse.cpp new file mode 100644 index 000000000..8ff057da9 --- /dev/null +++ b/geip/src/v3/model/AssociateGeipSegmentInstanceResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/AssociateGeipSegmentInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateGeipSegmentInstanceResponse::AssociateGeipSegmentInstanceResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; + globalEipSegmentIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +AssociateGeipSegmentInstanceResponse::~AssociateGeipSegmentInstanceResponse() = default; + +void AssociateGeipSegmentInstanceResponse::validate() +{ +} + +web::json::value AssociateGeipSegmentInstanceResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool AssociateGeipSegmentInstanceResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + ShortGlobalEipSegment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string AssociateGeipSegmentInstanceResponse::getJobId() const +{ + return jobId_; +} + +void AssociateGeipSegmentInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool AssociateGeipSegmentInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void AssociateGeipSegmentInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +ShortGlobalEipSegment AssociateGeipSegmentInstanceResponse::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void AssociateGeipSegmentInstanceResponse::setGlobalEipSegment(const ShortGlobalEipSegment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool AssociateGeipSegmentInstanceResponse::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void AssociateGeipSegmentInstanceResponse::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +std::string AssociateGeipSegmentInstanceResponse::getXRequestId() const +{ + return xRequestId_; +} + +void AssociateGeipSegmentInstanceResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool AssociateGeipSegmentInstanceResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void AssociateGeipSegmentInstanceResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody.cpp b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody.cpp new file mode 100644 index 000000000..d27e6cc25 --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceGlobalEipRequestBody::AssociateInstanceGlobalEipRequestBody() +{ + dryRun_ = false; + dryRunIsSet_ = false; + globalEipIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody::~AssociateInstanceGlobalEipRequestBody() = default; + +void AssociateInstanceGlobalEipRequestBody::validate() +{ +} + +web::json::value AssociateInstanceGlobalEipRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dryRunIsSet_) { + val[utility::conversions::to_string_t("dry_run")] = ModelBase::toJson(dryRun_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + + return val; +} +bool AssociateInstanceGlobalEipRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dry_run"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dry_run")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDryRun(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + AssociateInstanceGlobalEipRequestBody_global_eip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + return ok; +} + + +bool AssociateInstanceGlobalEipRequestBody::isDryRun() const +{ + return dryRun_; +} + +void AssociateInstanceGlobalEipRequestBody::setDryRun(bool value) +{ + dryRun_ = value; + dryRunIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody::dryRunIsSet() const +{ + return dryRunIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody::unsetdryRun() +{ + dryRunIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody_global_eip AssociateInstanceGlobalEipRequestBody::getGlobalEip() const +{ + return globalEip_; +} + +void AssociateInstanceGlobalEipRequestBody::setGlobalEip(const AssociateInstanceGlobalEipRequestBody_global_eip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip.cpp b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip.cpp new file mode 100644 index 000000000..06fd45c33 --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip.cpp @@ -0,0 +1,112 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceGlobalEipRequestBody_global_eip::AssociateInstanceGlobalEipRequestBody_global_eip() +{ + associateInstanceInfoIsSet_ = false; + gcBandwidthInfoIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody_global_eip::~AssociateInstanceGlobalEipRequestBody_global_eip() = default; + +void AssociateInstanceGlobalEipRequestBody_global_eip::validate() +{ +} + +web::json::value AssociateInstanceGlobalEipRequestBody_global_eip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(associateInstanceInfoIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info")] = ModelBase::toJson(associateInstanceInfo_); + } + if(gcBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("gc_bandwidth_info")] = ModelBase::toJson(gcBandwidthInfo_); + } + + return val; +} +bool AssociateInstanceGlobalEipRequestBody_global_eip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("associate_instance_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info")); + if(!fieldValue.is_null()) + { + AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gc_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gc_bandwidth_info")); + if(!fieldValue.is_null()) + { + AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcBandwidthInfo(refVal); + } + } + return ok; +} + + +AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info AssociateInstanceGlobalEipRequestBody_global_eip::getAssociateInstanceInfo() const +{ + return associateInstanceInfo_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip::setAssociateInstanceInfo(const AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info& value) +{ + associateInstanceInfo_ = value; + associateInstanceInfoIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip::associateInstanceInfoIsSet() const +{ + return associateInstanceInfoIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip::unsetassociateInstanceInfo() +{ + associateInstanceInfoIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info AssociateInstanceGlobalEipRequestBody_global_eip::getGcBandwidthInfo() const +{ + return gcBandwidthInfo_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip::setGcBandwidthInfo(const AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info& value) +{ + gcBandwidthInfo_ = value; + gcBandwidthInfoIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip::gcBandwidthInfoIsSet() const +{ + return gcBandwidthInfoIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip::unsetgcBandwidthInfo() +{ + gcBandwidthInfoIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info.cpp b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info.cpp new file mode 100644 index 000000000..cee7f7a8d --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info.cpp @@ -0,0 +1,254 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info() +{ + region_ = ""; + regionIsSet_ = false; + instanceType_ = ""; + instanceTypeIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + projectId_ = ""; + projectIdIsSet_ = false; + serviceId_ = ""; + serviceIdIsSet_ = false; + serviceType_ = ""; + serviceTypeIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::~AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info() = default; + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::validate() +{ +} + +web::json::value AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(regionIsSet_) { + val[utility::conversions::to_string_t("region")] = ModelBase::toJson(region_); + } + if(instanceTypeIsSet_) { + val[utility::conversions::to_string_t("instance_type")] = ModelBase::toJson(instanceType_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(projectIdIsSet_) { + val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); + } + if(serviceIdIsSet_) { + val[utility::conversions::to_string_t("service_id")] = ModelBase::toJson(serviceId_); + } + if(serviceTypeIsSet_) { + val[utility::conversions::to_string_t("service_type")] = ModelBase::toJson(serviceType_); + } + + return val; +} +bool AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceType(refVal); + } + } + return ok; +} + + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::getRegion() const +{ + return region_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::setRegion(const std::string& value) +{ + region_ = value; + regionIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::regionIsSet() const +{ + return regionIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::unsetregion() +{ + regionIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::getInstanceType() const +{ + return instanceType_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::setInstanceType(const std::string& value) +{ + instanceType_ = value; + instanceTypeIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::instanceTypeIsSet() const +{ + return instanceTypeIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::unsetinstanceType() +{ + instanceTypeIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::getInstanceId() const +{ + return instanceId_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::getProjectId() const +{ + return projectId_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::setProjectId(const std::string& value) +{ + projectId_ = value; + projectIdIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::projectIdIsSet() const +{ + return projectIdIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::unsetprojectId() +{ + projectIdIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::getServiceId() const +{ + return serviceId_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::setServiceId(const std::string& value) +{ + serviceId_ = value; + serviceIdIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::serviceIdIsSet() const +{ + return serviceIdIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::unsetserviceId() +{ + serviceIdIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::getServiceType() const +{ + return serviceType_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::setServiceType(const std::string& value) +{ + serviceType_ = value; + serviceTypeIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::serviceTypeIsSet() const +{ + return serviceTypeIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_associate_instance_info::unsetserviceType() +{ + serviceTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info.cpp b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info.cpp new file mode 100644 index 000000000..88f9de116 --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info.cpp @@ -0,0 +1,428 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + bandwidth_ = 0; + bandwidthIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + localArea_ = ""; + localAreaIsSet_ = false; + remoteArea_ = ""; + remoteAreaIsSet_ = false; + tagsIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::~AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info() = default; + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::validate() +{ +} + +web::json::value AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(bandwidthIsSet_) { + val[utility::conversions::to_string_t("bandwidth")] = ModelBase::toJson(bandwidth_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(localAreaIsSet_) { + val[utility::conversions::to_string_t("local_area")] = ModelBase::toJson(localArea_); + } + if(remoteAreaIsSet_) { + val[utility::conversions::to_string_t("remote_area")] = ModelBase::toJson(remoteArea_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("bandwidth")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("local_area"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("local_area")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLocalArea(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("remote_area"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("remote_area")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRemoteArea(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getId() const +{ + return id_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::idIsSet() const +{ + return idIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetid() +{ + idIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getName() const +{ + return name_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::nameIsSet() const +{ + return nameIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetname() +{ + nameIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getDescription() const +{ + return description_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getType() const +{ + return type_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::typeIsSet() const +{ + return typeIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsettype() +{ + typeIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getChargeMode() const +{ + return chargeMode_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getBandwidth() const +{ + return bandwidth_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setBandwidth(int32_t value) +{ + bandwidth_ = value; + bandwidthIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::bandwidthIsSet() const +{ + return bandwidthIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetbandwidth() +{ + bandwidthIsSet_ = false; +} + +int32_t AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getSize() const +{ + return size_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::sizeIsSet() const +{ + return sizeIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getLocalArea() const +{ + return localArea_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setLocalArea(const std::string& value) +{ + localArea_ = value; + localAreaIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::localAreaIsSet() const +{ + return localAreaIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetlocalArea() +{ + localAreaIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getRemoteArea() const +{ + return remoteArea_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setRemoteArea(const std::string& value) +{ + remoteArea_ = value; + remoteAreaIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::remoteAreaIsSet() const +{ + return remoteAreaIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsetremoteArea() +{ + remoteAreaIsSet_ = false; +} + +std::vector& AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::getTags() +{ + return tags_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::tagsIsSet() const +{ + return tagsIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags.cpp b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags.cpp new file mode 100644 index 000000000..b5593ef7a --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::~AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags() = default; + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::validate() +{ +} + +web::json::value AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::getKey() const +{ + return key_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::keyIsSet() const +{ + return keyIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::unsetkey() +{ + keyIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::getValue() const +{ + return value_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::valueIsSet() const +{ + return valueIsSet_; +} + +void AssociateInstanceGlobalEipRequestBody_global_eip_gc_bandwidth_info_tags::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceGlobalEipSegmentRequestBody.cpp b/geip/src/v3/model/AssociateInstanceGlobalEipSegmentRequestBody.cpp new file mode 100644 index 000000000..b92c425aa --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceGlobalEipSegmentRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceGlobalEipSegmentRequestBody::AssociateInstanceGlobalEipSegmentRequestBody() +{ + globalEipSegmentIsSet_ = false; +} + +AssociateInstanceGlobalEipSegmentRequestBody::~AssociateInstanceGlobalEipSegmentRequestBody() = default; + +void AssociateInstanceGlobalEipSegmentRequestBody::validate() +{ +} + +web::json::value AssociateInstanceGlobalEipSegmentRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + + return val; +} +bool AssociateInstanceGlobalEipSegmentRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + return ok; +} + + +AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment AssociateInstanceGlobalEipSegmentRequestBody::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody::setGlobalEipSegment(const AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool AssociateInstanceGlobalEipSegmentRequestBody::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment.cpp b/geip/src/v3/model/AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment.cpp new file mode 100644 index 000000000..04801cd2a --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment.cpp @@ -0,0 +1,254 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment() +{ + region_ = ""; + regionIsSet_ = false; + instanceType_ = ""; + instanceTypeIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + projectId_ = ""; + projectIdIsSet_ = false; + serviceId_ = ""; + serviceIdIsSet_ = false; + serviceType_ = ""; + serviceTypeIsSet_ = false; +} + +AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::~AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment() = default; + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::validate() +{ +} + +web::json::value AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(regionIsSet_) { + val[utility::conversions::to_string_t("region")] = ModelBase::toJson(region_); + } + if(instanceTypeIsSet_) { + val[utility::conversions::to_string_t("instance_type")] = ModelBase::toJson(instanceType_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(projectIdIsSet_) { + val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); + } + if(serviceIdIsSet_) { + val[utility::conversions::to_string_t("service_id")] = ModelBase::toJson(serviceId_); + } + if(serviceTypeIsSet_) { + val[utility::conversions::to_string_t("service_type")] = ModelBase::toJson(serviceType_); + } + + return val; +} +bool AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceType(refVal); + } + } + return ok; +} + + +std::string AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::getRegion() const +{ + return region_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::setRegion(const std::string& value) +{ + region_ = value; + regionIsSet_ = true; +} + +bool AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::regionIsSet() const +{ + return regionIsSet_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::unsetregion() +{ + regionIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::getInstanceType() const +{ + return instanceType_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::setInstanceType(const std::string& value) +{ + instanceType_ = value; + instanceTypeIsSet_ = true; +} + +bool AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::instanceTypeIsSet() const +{ + return instanceTypeIsSet_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::unsetinstanceType() +{ + instanceTypeIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::getInstanceId() const +{ + return instanceId_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::getProjectId() const +{ + return projectId_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::setProjectId(const std::string& value) +{ + projectId_ = value; + projectIdIsSet_ = true; +} + +bool AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::projectIdIsSet() const +{ + return projectIdIsSet_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::unsetprojectId() +{ + projectIdIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::getServiceId() const +{ + return serviceId_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::setServiceId(const std::string& value) +{ + serviceId_ = value; + serviceIdIsSet_ = true; +} + +bool AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::serviceIdIsSet() const +{ + return serviceIdIsSet_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::unsetserviceId() +{ + serviceIdIsSet_ = false; +} + +std::string AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::getServiceType() const +{ + return serviceType_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::setServiceType(const std::string& value) +{ + serviceType_ = value; + serviceTypeIsSet_ = true; +} + +bool AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::serviceTypeIsSet() const +{ + return serviceTypeIsSet_; +} + +void AssociateInstanceGlobalEipSegmentRequestBody_global_eip_segment::unsetserviceType() +{ + serviceTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceRequest.cpp b/geip/src/v3/model/AssociateInstanceRequest.cpp new file mode 100644 index 000000000..c0eeaeeb3 --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceRequest::AssociateInstanceRequest() +{ + bindingInstanceService_ = ""; + bindingInstanceServiceIsSet_ = false; + globalEipId_ = ""; + globalEipIdIsSet_ = false; + bodyIsSet_ = false; +} + +AssociateInstanceRequest::~AssociateInstanceRequest() = default; + +void AssociateInstanceRequest::validate() +{ +} + +web::json::value AssociateInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bindingInstanceServiceIsSet_) { + val[utility::conversions::to_string_t("binding-instance-service")] = ModelBase::toJson(bindingInstanceService_); + } + if(globalEipIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_id")] = ModelBase::toJson(globalEipId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool AssociateInstanceRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("binding-instance-service"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("binding-instance-service")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBindingInstanceService(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + AssociateInstanceGlobalEipRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string AssociateInstanceRequest::getBindingInstanceService() const +{ + return bindingInstanceService_; +} + +void AssociateInstanceRequest::setBindingInstanceService(const std::string& value) +{ + bindingInstanceService_ = value; + bindingInstanceServiceIsSet_ = true; +} + +bool AssociateInstanceRequest::bindingInstanceServiceIsSet() const +{ + return bindingInstanceServiceIsSet_; +} + +void AssociateInstanceRequest::unsetbindingInstanceService() +{ + bindingInstanceServiceIsSet_ = false; +} + +std::string AssociateInstanceRequest::getGlobalEipId() const +{ + return globalEipId_; +} + +void AssociateInstanceRequest::setGlobalEipId(const std::string& value) +{ + globalEipId_ = value; + globalEipIdIsSet_ = true; +} + +bool AssociateInstanceRequest::globalEipIdIsSet() const +{ + return globalEipIdIsSet_; +} + +void AssociateInstanceRequest::unsetglobalEipId() +{ + globalEipIdIsSet_ = false; +} + +AssociateInstanceGlobalEipRequestBody AssociateInstanceRequest::getBody() const +{ + return body_; +} + +void AssociateInstanceRequest::setBody(const AssociateInstanceGlobalEipRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool AssociateInstanceRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void AssociateInstanceRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AssociateInstanceResponse.cpp b/geip/src/v3/model/AssociateInstanceResponse.cpp new file mode 100644 index 000000000..e31ab9620 --- /dev/null +++ b/geip/src/v3/model/AssociateInstanceResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/AssociateInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AssociateInstanceResponse::AssociateInstanceResponse() +{ + globalEipIsSet_ = false; + jobId_ = ""; + jobIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +AssociateInstanceResponse::~AssociateInstanceResponse() = default; + +void AssociateInstanceResponse::validate() +{ +} + +web::json::value AssociateInstanceResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool AssociateInstanceResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + UpdateGlobalEip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +UpdateGlobalEip AssociateInstanceResponse::getGlobalEip() const +{ + return globalEip_; +} + +void AssociateInstanceResponse::setGlobalEip(const UpdateGlobalEip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool AssociateInstanceResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void AssociateInstanceResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string AssociateInstanceResponse::getJobId() const +{ + return jobId_; +} + +void AssociateInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool AssociateInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void AssociateInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +std::string AssociateInstanceResponse::getXRequestId() const +{ + return xRequestId_; +} + +void AssociateInstanceResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool AssociateInstanceResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void AssociateInstanceResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AttachInternetBandwidth.cpp b/geip/src/v3/model/AttachInternetBandwidth.cpp new file mode 100644 index 000000000..8512ebe97 --- /dev/null +++ b/geip/src/v3/model/AttachInternetBandwidth.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/AttachInternetBandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AttachInternetBandwidth::AttachInternetBandwidth() +{ + globalEipSegmentId_ = ""; + globalEipSegmentIdIsSet_ = false; + internetBandwidthId_ = ""; + internetBandwidthIdIsSet_ = false; +} + +AttachInternetBandwidth::~AttachInternetBandwidth() = default; + +void AttachInternetBandwidth::validate() +{ +} + +web::json::value AttachInternetBandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment_id")] = ModelBase::toJson(globalEipSegmentId_); + } + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + + return val; +} +bool AttachInternetBandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + return ok; +} + + +std::string AttachInternetBandwidth::getGlobalEipSegmentId() const +{ + return globalEipSegmentId_; +} + +void AttachInternetBandwidth::setGlobalEipSegmentId(const std::string& value) +{ + globalEipSegmentId_ = value; + globalEipSegmentIdIsSet_ = true; +} + +bool AttachInternetBandwidth::globalEipSegmentIdIsSet() const +{ + return globalEipSegmentIdIsSet_; +} + +void AttachInternetBandwidth::unsetglobalEipSegmentId() +{ + globalEipSegmentIdIsSet_ = false; +} + +std::string AttachInternetBandwidth::getInternetBandwidthId() const +{ + return internetBandwidthId_; +} + +void AttachInternetBandwidth::setInternetBandwidthId(const std::string& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool AttachInternetBandwidth::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void AttachInternetBandwidth::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AttachInternetBandwidthGlobalEip.cpp b/geip/src/v3/model/AttachInternetBandwidthGlobalEip.cpp new file mode 100644 index 000000000..a24a0fdff --- /dev/null +++ b/geip/src/v3/model/AttachInternetBandwidthGlobalEip.cpp @@ -0,0 +1,844 @@ + + +#include "huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AttachInternetBandwidthGlobalEip::AttachInternetBandwidthGlobalEip() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + ipAddress_ = ""; + ipAddressIsSet_ = false; + ipv6Address_ = ""; + ipv6AddressIsSet_ = false; + freezen_ = false; + freezenIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + polluted_ = false; + pollutedIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + internetBandwidthInfoIsSet_ = false; + globalConnectionBandwidthInfoIsSet_ = false; + associateInstanceInfoIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +AttachInternetBandwidthGlobalEip::~AttachInternetBandwidthGlobalEip() = default; + +void AttachInternetBandwidthGlobalEip::validate() +{ +} + +web::json::value AttachInternetBandwidthGlobalEip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(ipv6AddressIsSet_) { + val[utility::conversions::to_string_t("ipv6_address")] = ModelBase::toJson(ipv6Address_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(pollutedIsSet_) { + val[utility::conversions::to_string_t("polluted")] = ModelBase::toJson(polluted_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(internetBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_info")] = ModelBase::toJson(internetBandwidthInfo_); + } + if(globalConnectionBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("global_connection_bandwidth_info")] = ModelBase::toJson(globalConnectionBandwidthInfo_); + } + if(associateInstanceInfoIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info")] = ModelBase::toJson(associateInstanceInfo_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool AttachInternetBandwidthGlobalEip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ipv6_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpv6Address(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("polluted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("polluted")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPolluted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_info")); + if(!fieldValue.is_null()) + { + InternetBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_connection_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_connection_bandwidth_info")); + if(!fieldValue.is_null()) + { + GlobalConnectionBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalConnectionBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info")); + if(!fieldValue.is_null()) + { + InstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string AttachInternetBandwidthGlobalEip::getId() const +{ + return id_; +} + +void AttachInternetBandwidthGlobalEip::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::idIsSet() const +{ + return idIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetid() +{ + idIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getName() const +{ + return name_; +} + +void AttachInternetBandwidthGlobalEip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::nameIsSet() const +{ + return nameIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetname() +{ + nameIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getDomainId() const +{ + return domainId_; +} + +void AttachInternetBandwidthGlobalEip::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getDescription() const +{ + return description_; +} + +void AttachInternetBandwidthGlobalEip::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getAccessSite() const +{ + return accessSite_; +} + +void AttachInternetBandwidthGlobalEip::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getGeipPoolName() const +{ + return geipPoolName_; +} + +void AttachInternetBandwidthGlobalEip::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getIsp() const +{ + return isp_; +} + +void AttachInternetBandwidthGlobalEip::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::ispIsSet() const +{ + return ispIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t AttachInternetBandwidthGlobalEip::getIpVersion() const +{ + return ipVersion_; +} + +void AttachInternetBandwidthGlobalEip::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getIpAddress() const +{ + return ipAddress_; +} + +void AttachInternetBandwidthGlobalEip::setIpAddress(const std::string& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getIpv6Address() const +{ + return ipv6Address_; +} + +void AttachInternetBandwidthGlobalEip::setIpv6Address(const std::string& value) +{ + ipv6Address_ = value; + ipv6AddressIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::ipv6AddressIsSet() const +{ + return ipv6AddressIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetipv6Address() +{ + ipv6AddressIsSet_ = false; +} + +bool AttachInternetBandwidthGlobalEip::isFreezen() const +{ + return freezen_; +} + +void AttachInternetBandwidthGlobalEip::setFreezen(bool value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::freezenIsSet() const +{ + return freezenIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getFreezenInfo() const +{ + return freezenInfo_; +} + +void AttachInternetBandwidthGlobalEip::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +bool AttachInternetBandwidthGlobalEip::isPolluted() const +{ + return polluted_; +} + +void AttachInternetBandwidthGlobalEip::setPolluted(bool value) +{ + polluted_ = value; + pollutedIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::pollutedIsSet() const +{ + return pollutedIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetpolluted() +{ + pollutedIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getStatus() const +{ + return status_; +} + +void AttachInternetBandwidthGlobalEip::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::statusIsSet() const +{ + return statusIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime AttachInternetBandwidthGlobalEip::getCreatedAt() const +{ + return createdAt_; +} + +void AttachInternetBandwidthGlobalEip::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime AttachInternetBandwidthGlobalEip::getUpdatedAt() const +{ + return updatedAt_; +} + +void AttachInternetBandwidthGlobalEip::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +InternetBandwidthInfo AttachInternetBandwidthGlobalEip::getInternetBandwidthInfo() const +{ + return internetBandwidthInfo_; +} + +void AttachInternetBandwidthGlobalEip::setInternetBandwidthInfo(const InternetBandwidthInfo& value) +{ + internetBandwidthInfo_ = value; + internetBandwidthInfoIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::internetBandwidthInfoIsSet() const +{ + return internetBandwidthInfoIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetinternetBandwidthInfo() +{ + internetBandwidthInfoIsSet_ = false; +} + +GlobalConnectionBandwidthInfo AttachInternetBandwidthGlobalEip::getGlobalConnectionBandwidthInfo() const +{ + return globalConnectionBandwidthInfo_; +} + +void AttachInternetBandwidthGlobalEip::setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value) +{ + globalConnectionBandwidthInfo_ = value; + globalConnectionBandwidthInfoIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::globalConnectionBandwidthInfoIsSet() const +{ + return globalConnectionBandwidthInfoIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetglobalConnectionBandwidthInfo() +{ + globalConnectionBandwidthInfoIsSet_ = false; +} + +InstanceInfo AttachInternetBandwidthGlobalEip::getAssociateInstanceInfo() const +{ + return associateInstanceInfo_; +} + +void AttachInternetBandwidthGlobalEip::setAssociateInstanceInfo(const InstanceInfo& value) +{ + associateInstanceInfo_ = value; + associateInstanceInfoIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::associateInstanceInfoIsSet() const +{ + return associateInstanceInfoIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetassociateInstanceInfo() +{ + associateInstanceInfoIsSet_ = false; +} + +bool AttachInternetBandwidthGlobalEip::isIsPrePaid() const +{ + return isPrePaid_; +} + +void AttachInternetBandwidthGlobalEip::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& AttachInternetBandwidthGlobalEip::getTags() +{ + return tags_; +} + +void AttachInternetBandwidthGlobalEip::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::tagsIsSet() const +{ + return tagsIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& AttachInternetBandwidthGlobalEip::getSysTags() +{ + return sysTags_; +} + +void AttachInternetBandwidthGlobalEip::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string AttachInternetBandwidthGlobalEip::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void AttachInternetBandwidthGlobalEip::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEip::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void AttachInternetBandwidthGlobalEip::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AttachInternetBandwidthGlobalEipRequestBody.cpp b/geip/src/v3/model/AttachInternetBandwidthGlobalEipRequestBody.cpp new file mode 100644 index 000000000..ac7870510 --- /dev/null +++ b/geip/src/v3/model/AttachInternetBandwidthGlobalEipRequestBody.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AttachInternetBandwidthGlobalEipRequestBody::AttachInternetBandwidthGlobalEipRequestBody() +{ + dryRun_ = false; + dryRunIsSet_ = false; + globalEipIsSet_ = false; +} + +AttachInternetBandwidthGlobalEipRequestBody::~AttachInternetBandwidthGlobalEipRequestBody() = default; + +void AttachInternetBandwidthGlobalEipRequestBody::validate() +{ +} + +web::json::value AttachInternetBandwidthGlobalEipRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dryRunIsSet_) { + val[utility::conversions::to_string_t("dry_run")] = ModelBase::toJson(dryRun_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + + return val; +} +bool AttachInternetBandwidthGlobalEipRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dry_run"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dry_run")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDryRun(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + AttachInternetBandwidthGlobalEipRequestBody_global_eip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + return ok; +} + + +bool AttachInternetBandwidthGlobalEipRequestBody::isDryRun() const +{ + return dryRun_; +} + +void AttachInternetBandwidthGlobalEipRequestBody::setDryRun(bool value) +{ + dryRun_ = value; + dryRunIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEipRequestBody::dryRunIsSet() const +{ + return dryRunIsSet_; +} + +void AttachInternetBandwidthGlobalEipRequestBody::unsetdryRun() +{ + dryRunIsSet_ = false; +} + +AttachInternetBandwidthGlobalEipRequestBody_global_eip AttachInternetBandwidthGlobalEipRequestBody::getGlobalEip() const +{ + return globalEip_; +} + +void AttachInternetBandwidthGlobalEipRequestBody::setGlobalEip(const AttachInternetBandwidthGlobalEipRequestBody_global_eip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEipRequestBody::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void AttachInternetBandwidthGlobalEipRequestBody::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AttachInternetBandwidthGlobalEipRequestBody_global_eip.cpp b/geip/src/v3/model/AttachInternetBandwidthGlobalEipRequestBody_global_eip.cpp new file mode 100644 index 000000000..128e417fe --- /dev/null +++ b/geip/src/v3/model/AttachInternetBandwidthGlobalEipRequestBody_global_eip.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/AttachInternetBandwidthGlobalEipRequestBody_global_eip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AttachInternetBandwidthGlobalEipRequestBody_global_eip::AttachInternetBandwidthGlobalEipRequestBody_global_eip() +{ + internetBandwidthId_ = ""; + internetBandwidthIdIsSet_ = false; +} + +AttachInternetBandwidthGlobalEipRequestBody_global_eip::~AttachInternetBandwidthGlobalEipRequestBody_global_eip() = default; + +void AttachInternetBandwidthGlobalEipRequestBody_global_eip::validate() +{ +} + +web::json::value AttachInternetBandwidthGlobalEipRequestBody_global_eip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + + return val; +} +bool AttachInternetBandwidthGlobalEipRequestBody_global_eip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + return ok; +} + + +std::string AttachInternetBandwidthGlobalEipRequestBody_global_eip::getInternetBandwidthId() const +{ + return internetBandwidthId_; +} + +void AttachInternetBandwidthGlobalEipRequestBody_global_eip::setInternetBandwidthId(const std::string& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool AttachInternetBandwidthGlobalEipRequestBody_global_eip::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void AttachInternetBandwidthGlobalEipRequestBody_global_eip::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AttachInternetBandwidthRequest.cpp b/geip/src/v3/model/AttachInternetBandwidthRequest.cpp new file mode 100644 index 000000000..2e5aed8b8 --- /dev/null +++ b/geip/src/v3/model/AttachInternetBandwidthRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/AttachInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AttachInternetBandwidthRequest::AttachInternetBandwidthRequest() +{ + globalEipId_ = ""; + globalEipIdIsSet_ = false; + bodyIsSet_ = false; +} + +AttachInternetBandwidthRequest::~AttachInternetBandwidthRequest() = default; + +void AttachInternetBandwidthRequest::validate() +{ +} + +web::json::value AttachInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_id")] = ModelBase::toJson(globalEipId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool AttachInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + AttachInternetBandwidthGlobalEipRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string AttachInternetBandwidthRequest::getGlobalEipId() const +{ + return globalEipId_; +} + +void AttachInternetBandwidthRequest::setGlobalEipId(const std::string& value) +{ + globalEipId_ = value; + globalEipIdIsSet_ = true; +} + +bool AttachInternetBandwidthRequest::globalEipIdIsSet() const +{ + return globalEipIdIsSet_; +} + +void AttachInternetBandwidthRequest::unsetglobalEipId() +{ + globalEipIdIsSet_ = false; +} + +AttachInternetBandwidthGlobalEipRequestBody AttachInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void AttachInternetBandwidthRequest::setBody(const AttachInternetBandwidthGlobalEipRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool AttachInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void AttachInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/AttachInternetBandwidthResponse.cpp b/geip/src/v3/model/AttachInternetBandwidthResponse.cpp new file mode 100644 index 000000000..c948da003 --- /dev/null +++ b/geip/src/v3/model/AttachInternetBandwidthResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/AttachInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +AttachInternetBandwidthResponse::AttachInternetBandwidthResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +AttachInternetBandwidthResponse::~AttachInternetBandwidthResponse() = default; + +void AttachInternetBandwidthResponse::validate() +{ +} + +web::json::value AttachInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool AttachInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + AttachInternetBandwidthGlobalEip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string AttachInternetBandwidthResponse::getRequestId() const +{ + return requestId_; +} + +void AttachInternetBandwidthResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool AttachInternetBandwidthResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void AttachInternetBandwidthResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +AttachInternetBandwidthGlobalEip AttachInternetBandwidthResponse::getGlobalEip() const +{ + return globalEip_; +} + +void AttachInternetBandwidthResponse::setGlobalEip(const AttachInternetBandwidthGlobalEip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool AttachInternetBandwidthResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void AttachInternetBandwidthResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string AttachInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void AttachInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool AttachInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void AttachInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchAttachGeipSegmentInternetBandwidthRequest.cpp b/geip/src/v3/model/BatchAttachGeipSegmentInternetBandwidthRequest.cpp new file mode 100644 index 000000000..f521329e1 --- /dev/null +++ b/geip/src/v3/model/BatchAttachGeipSegmentInternetBandwidthRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchAttachGeipSegmentInternetBandwidthRequest::BatchAttachGeipSegmentInternetBandwidthRequest() +{ + bodyIsSet_ = false; +} + +BatchAttachGeipSegmentInternetBandwidthRequest::~BatchAttachGeipSegmentInternetBandwidthRequest() = default; + +void BatchAttachGeipSegmentInternetBandwidthRequest::validate() +{ +} + +web::json::value BatchAttachGeipSegmentInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchAttachGeipSegmentInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody BatchAttachGeipSegmentInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void BatchAttachGeipSegmentInternetBandwidthRequest::setBody(const BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchAttachGeipSegmentInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchAttachGeipSegmentInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchAttachGeipSegmentInternetBandwidthResponse.cpp b/geip/src/v3/model/BatchAttachGeipSegmentInternetBandwidthResponse.cpp new file mode 100644 index 000000000..a6844fa1c --- /dev/null +++ b/geip/src/v3/model/BatchAttachGeipSegmentInternetBandwidthResponse.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchAttachGeipSegmentInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchAttachGeipSegmentInternetBandwidthResponse::BatchAttachGeipSegmentInternetBandwidthResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchAttachGeipSegmentInternetBandwidthResponse::~BatchAttachGeipSegmentInternetBandwidthResponse() = default; + +void BatchAttachGeipSegmentInternetBandwidthResponse::validate() +{ +} + +web::json::value BatchAttachGeipSegmentInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchAttachGeipSegmentInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchAttachGeipSegmentInternetBandwidthResponse::getJobId() const +{ + return jobId_; +} + +void BatchAttachGeipSegmentInternetBandwidthResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool BatchAttachGeipSegmentInternetBandwidthResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void BatchAttachGeipSegmentInternetBandwidthResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +std::string BatchAttachGeipSegmentInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchAttachGeipSegmentInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchAttachGeipSegmentInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchAttachGeipSegmentInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchAttachInternetBandwidthRequest.cpp b/geip/src/v3/model/BatchAttachInternetBandwidthRequest.cpp new file mode 100644 index 000000000..d7a4afdd4 --- /dev/null +++ b/geip/src/v3/model/BatchAttachInternetBandwidthRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchAttachInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchAttachInternetBandwidthRequest::BatchAttachInternetBandwidthRequest() +{ + bodyIsSet_ = false; +} + +BatchAttachInternetBandwidthRequest::~BatchAttachInternetBandwidthRequest() = default; + +void BatchAttachInternetBandwidthRequest::validate() +{ +} + +web::json::value BatchAttachInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchAttachInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchAttachInternetBandwidthsGlobalEipRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +BatchAttachInternetBandwidthsGlobalEipRequestBody BatchAttachInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void BatchAttachInternetBandwidthRequest::setBody(const BatchAttachInternetBandwidthsGlobalEipRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchAttachInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchAttachInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchAttachInternetBandwidthResponse.cpp b/geip/src/v3/model/BatchAttachInternetBandwidthResponse.cpp new file mode 100644 index 000000000..b93112c38 --- /dev/null +++ b/geip/src/v3/model/BatchAttachInternetBandwidthResponse.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchAttachInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchAttachInternetBandwidthResponse::BatchAttachInternetBandwidthResponse() +{ + body_ = ""; + bodyIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchAttachInternetBandwidthResponse::~BatchAttachInternetBandwidthResponse() = default; + +void BatchAttachInternetBandwidthResponse::validate() +{ +} + +web::json::value BatchAttachInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchAttachInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchAttachInternetBandwidthResponse::getBody() const +{ + return body_; +} + +void BatchAttachInternetBandwidthResponse::setBody(const std::string& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchAttachInternetBandwidthResponse::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchAttachInternetBandwidthResponse::unsetbody() +{ + bodyIsSet_ = false; +} + +std::string BatchAttachInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchAttachInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchAttachInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchAttachInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchAttachInternetBandwidthsGlobalEipRequestBody.cpp b/geip/src/v3/model/BatchAttachInternetBandwidthsGlobalEipRequestBody.cpp new file mode 100644 index 000000000..6f2051014 --- /dev/null +++ b/geip/src/v3/model/BatchAttachInternetBandwidthsGlobalEipRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchAttachInternetBandwidthsGlobalEipRequestBody::BatchAttachInternetBandwidthsGlobalEipRequestBody() +{ + globalEipsIsSet_ = false; +} + +BatchAttachInternetBandwidthsGlobalEipRequestBody::~BatchAttachInternetBandwidthsGlobalEipRequestBody() = default; + +void BatchAttachInternetBandwidthsGlobalEipRequestBody::validate() +{ +} + +web::json::value BatchAttachInternetBandwidthsGlobalEipRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipsIsSet_) { + val[utility::conversions::to_string_t("global_eips")] = ModelBase::toJson(globalEips_); + } + + return val; +} +bool BatchAttachInternetBandwidthsGlobalEipRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eips")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEips(refVal); + } + } + return ok; +} + + +std::vector& BatchAttachInternetBandwidthsGlobalEipRequestBody::getGlobalEips() +{ + return globalEips_; +} + +void BatchAttachInternetBandwidthsGlobalEipRequestBody::setGlobalEips(const std::vector& value) +{ + globalEips_ = value; + globalEipsIsSet_ = true; +} + +bool BatchAttachInternetBandwidthsGlobalEipRequestBody::globalEipsIsSet() const +{ + return globalEipsIsSet_; +} + +void BatchAttachInternetBandwidthsGlobalEipRequestBody::unsetglobalEips() +{ + globalEipsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.cpp b/geip/src/v3/model/BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.cpp new file mode 100644 index 000000000..920f681b2 --- /dev/null +++ b/geip/src/v3/model/BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody() +{ + globalEipSegmentsIsSet_ = false; +} + +BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::~BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody() = default; + +void BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::validate() +{ +} + +web::json::value BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentsIsSet_) { + val[utility::conversions::to_string_t("global_eip_segments")] = ModelBase::toJson(globalEipSegments_); + } + + return val; +} +bool BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segments"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segments")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegments(refVal); + } + } + return ok; +} + + +std::vector& BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::getGlobalEipSegments() +{ + return globalEipSegments_; +} + +void BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::setGlobalEipSegments(const std::vector& value) +{ + globalEipSegments_ = value; + globalEipSegmentsIsSet_ = true; +} + +bool BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::globalEipSegmentsIsSet() const +{ + return globalEipSegmentsIsSet_; +} + +void BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody::unsetglobalEipSegments() +{ + globalEipSegmentsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGeipSegmentTagsRequest.cpp b/geip/src/v3/model/BatchCreateGeipSegmentTagsRequest.cpp new file mode 100644 index 000000000..046003531 --- /dev/null +++ b/geip/src/v3/model/BatchCreateGeipSegmentTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGeipSegmentTagsRequest::BatchCreateGeipSegmentTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +BatchCreateGeipSegmentTagsRequest::~BatchCreateGeipSegmentTagsRequest() = default; + +void BatchCreateGeipSegmentTagsRequest::validate() +{ +} + +web::json::value BatchCreateGeipSegmentTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchCreateGeipSegmentTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchCreateV2RequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string BatchCreateGeipSegmentTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void BatchCreateGeipSegmentTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool BatchCreateGeipSegmentTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void BatchCreateGeipSegmentTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +BatchCreateV2RequestBody BatchCreateGeipSegmentTagsRequest::getBody() const +{ + return body_; +} + +void BatchCreateGeipSegmentTagsRequest::setBody(const BatchCreateV2RequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchCreateGeipSegmentTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchCreateGeipSegmentTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGeipSegmentTagsResponse.cpp b/geip/src/v3/model/BatchCreateGeipSegmentTagsResponse.cpp new file mode 100644 index 000000000..d2dafbc65 --- /dev/null +++ b/geip/src/v3/model/BatchCreateGeipSegmentTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGeipSegmentTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGeipSegmentTagsResponse::BatchCreateGeipSegmentTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchCreateGeipSegmentTagsResponse::~BatchCreateGeipSegmentTagsResponse() = default; + +void BatchCreateGeipSegmentTagsResponse::validate() +{ +} + +web::json::value BatchCreateGeipSegmentTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("x-request-id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchCreateGeipSegmentTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("x-request-id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("x-request-id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchCreateGeipSegmentTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchCreateGeipSegmentTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchCreateGeipSegmentTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchCreateGeipSegmentTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEip.cpp b/geip/src/v3/model/BatchCreateGlobalEip.cpp new file mode 100644 index 000000000..e1e9a887c --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEip.cpp @@ -0,0 +1,844 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEip::BatchCreateGlobalEip() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + ipAddress_ = ""; + ipAddressIsSet_ = false; + ipv6Address_ = ""; + ipv6AddressIsSet_ = false; + freezen_ = false; + freezenIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + polluted_ = false; + pollutedIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + internetBandwidthInfoIsSet_ = false; + globalConnectionBandwidthInfoIsSet_ = false; + associateInstanceInfoIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +BatchCreateGlobalEip::~BatchCreateGlobalEip() = default; + +void BatchCreateGlobalEip::validate() +{ +} + +web::json::value BatchCreateGlobalEip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(ipv6AddressIsSet_) { + val[utility::conversions::to_string_t("ipv6_address")] = ModelBase::toJson(ipv6Address_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(pollutedIsSet_) { + val[utility::conversions::to_string_t("polluted")] = ModelBase::toJson(polluted_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(internetBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_info")] = ModelBase::toJson(internetBandwidthInfo_); + } + if(globalConnectionBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("global_connection_bandwidth_info")] = ModelBase::toJson(globalConnectionBandwidthInfo_); + } + if(associateInstanceInfoIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info")] = ModelBase::toJson(associateInstanceInfo_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool BatchCreateGlobalEip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ipv6_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpv6Address(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("polluted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("polluted")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPolluted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_info")); + if(!fieldValue.is_null()) + { + InternetBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_connection_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_connection_bandwidth_info")); + if(!fieldValue.is_null()) + { + GlobalConnectionBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalConnectionBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info")); + if(!fieldValue.is_null()) + { + InstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string BatchCreateGlobalEip::getId() const +{ + return id_; +} + +void BatchCreateGlobalEip::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool BatchCreateGlobalEip::idIsSet() const +{ + return idIsSet_; +} + +void BatchCreateGlobalEip::unsetid() +{ + idIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getName() const +{ + return name_; +} + +void BatchCreateGlobalEip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool BatchCreateGlobalEip::nameIsSet() const +{ + return nameIsSet_; +} + +void BatchCreateGlobalEip::unsetname() +{ + nameIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getDescription() const +{ + return description_; +} + +void BatchCreateGlobalEip::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool BatchCreateGlobalEip::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void BatchCreateGlobalEip::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getDomainId() const +{ + return domainId_; +} + +void BatchCreateGlobalEip::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool BatchCreateGlobalEip::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void BatchCreateGlobalEip::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getAccessSite() const +{ + return accessSite_; +} + +void BatchCreateGlobalEip::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool BatchCreateGlobalEip::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void BatchCreateGlobalEip::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getGeipPoolName() const +{ + return geipPoolName_; +} + +void BatchCreateGlobalEip::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool BatchCreateGlobalEip::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void BatchCreateGlobalEip::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getIsp() const +{ + return isp_; +} + +void BatchCreateGlobalEip::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool BatchCreateGlobalEip::ispIsSet() const +{ + return ispIsSet_; +} + +void BatchCreateGlobalEip::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t BatchCreateGlobalEip::getIpVersion() const +{ + return ipVersion_; +} + +void BatchCreateGlobalEip::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool BatchCreateGlobalEip::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void BatchCreateGlobalEip::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getIpAddress() const +{ + return ipAddress_; +} + +void BatchCreateGlobalEip::setIpAddress(const std::string& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool BatchCreateGlobalEip::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void BatchCreateGlobalEip::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getIpv6Address() const +{ + return ipv6Address_; +} + +void BatchCreateGlobalEip::setIpv6Address(const std::string& value) +{ + ipv6Address_ = value; + ipv6AddressIsSet_ = true; +} + +bool BatchCreateGlobalEip::ipv6AddressIsSet() const +{ + return ipv6AddressIsSet_; +} + +void BatchCreateGlobalEip::unsetipv6Address() +{ + ipv6AddressIsSet_ = false; +} + +bool BatchCreateGlobalEip::isFreezen() const +{ + return freezen_; +} + +void BatchCreateGlobalEip::setFreezen(bool value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool BatchCreateGlobalEip::freezenIsSet() const +{ + return freezenIsSet_; +} + +void BatchCreateGlobalEip::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getFreezenInfo() const +{ + return freezenInfo_; +} + +void BatchCreateGlobalEip::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool BatchCreateGlobalEip::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void BatchCreateGlobalEip::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +bool BatchCreateGlobalEip::isPolluted() const +{ + return polluted_; +} + +void BatchCreateGlobalEip::setPolluted(bool value) +{ + polluted_ = value; + pollutedIsSet_ = true; +} + +bool BatchCreateGlobalEip::pollutedIsSet() const +{ + return pollutedIsSet_; +} + +void BatchCreateGlobalEip::unsetpolluted() +{ + pollutedIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getStatus() const +{ + return status_; +} + +void BatchCreateGlobalEip::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool BatchCreateGlobalEip::statusIsSet() const +{ + return statusIsSet_; +} + +void BatchCreateGlobalEip::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime BatchCreateGlobalEip::getCreatedAt() const +{ + return createdAt_; +} + +void BatchCreateGlobalEip::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool BatchCreateGlobalEip::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void BatchCreateGlobalEip::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime BatchCreateGlobalEip::getUpdatedAt() const +{ + return updatedAt_; +} + +void BatchCreateGlobalEip::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool BatchCreateGlobalEip::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void BatchCreateGlobalEip::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +InternetBandwidthInfo BatchCreateGlobalEip::getInternetBandwidthInfo() const +{ + return internetBandwidthInfo_; +} + +void BatchCreateGlobalEip::setInternetBandwidthInfo(const InternetBandwidthInfo& value) +{ + internetBandwidthInfo_ = value; + internetBandwidthInfoIsSet_ = true; +} + +bool BatchCreateGlobalEip::internetBandwidthInfoIsSet() const +{ + return internetBandwidthInfoIsSet_; +} + +void BatchCreateGlobalEip::unsetinternetBandwidthInfo() +{ + internetBandwidthInfoIsSet_ = false; +} + +GlobalConnectionBandwidthInfo BatchCreateGlobalEip::getGlobalConnectionBandwidthInfo() const +{ + return globalConnectionBandwidthInfo_; +} + +void BatchCreateGlobalEip::setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value) +{ + globalConnectionBandwidthInfo_ = value; + globalConnectionBandwidthInfoIsSet_ = true; +} + +bool BatchCreateGlobalEip::globalConnectionBandwidthInfoIsSet() const +{ + return globalConnectionBandwidthInfoIsSet_; +} + +void BatchCreateGlobalEip::unsetglobalConnectionBandwidthInfo() +{ + globalConnectionBandwidthInfoIsSet_ = false; +} + +InstanceInfo BatchCreateGlobalEip::getAssociateInstanceInfo() const +{ + return associateInstanceInfo_; +} + +void BatchCreateGlobalEip::setAssociateInstanceInfo(const InstanceInfo& value) +{ + associateInstanceInfo_ = value; + associateInstanceInfoIsSet_ = true; +} + +bool BatchCreateGlobalEip::associateInstanceInfoIsSet() const +{ + return associateInstanceInfoIsSet_; +} + +void BatchCreateGlobalEip::unsetassociateInstanceInfo() +{ + associateInstanceInfoIsSet_ = false; +} + +bool BatchCreateGlobalEip::isIsPrePaid() const +{ + return isPrePaid_; +} + +void BatchCreateGlobalEip::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool BatchCreateGlobalEip::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void BatchCreateGlobalEip::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& BatchCreateGlobalEip::getTags() +{ + return tags_; +} + +void BatchCreateGlobalEip::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool BatchCreateGlobalEip::tagsIsSet() const +{ + return tagsIsSet_; +} + +void BatchCreateGlobalEip::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& BatchCreateGlobalEip::getSysTags() +{ + return sysTags_; +} + +void BatchCreateGlobalEip::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool BatchCreateGlobalEip::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void BatchCreateGlobalEip::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string BatchCreateGlobalEip::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void BatchCreateGlobalEip::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool BatchCreateGlobalEip::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void BatchCreateGlobalEip::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEipRequest.cpp b/geip/src/v3/model/BatchCreateGlobalEipRequest.cpp new file mode 100644 index 000000000..98b313bc3 --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEipRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEipRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEipRequest::BatchCreateGlobalEipRequest() +{ + bodyIsSet_ = false; +} + +BatchCreateGlobalEipRequest::~BatchCreateGlobalEipRequest() = default; + +void BatchCreateGlobalEipRequest::validate() +{ +} + +web::json::value BatchCreateGlobalEipRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchCreateGlobalEipRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchCreateGlobalEipRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +BatchCreateGlobalEipRequestBody BatchCreateGlobalEipRequest::getBody() const +{ + return body_; +} + +void BatchCreateGlobalEipRequest::setBody(const BatchCreateGlobalEipRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchCreateGlobalEipRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchCreateGlobalEipRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEipRequestBody.cpp b/geip/src/v3/model/BatchCreateGlobalEipRequestBody.cpp new file mode 100644 index 000000000..6a361a26c --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEipRequestBody.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEipRequestBody::BatchCreateGlobalEipRequestBody() +{ + dryRun_ = false; + dryRunIsSet_ = false; + globalEipIsSet_ = false; +} + +BatchCreateGlobalEipRequestBody::~BatchCreateGlobalEipRequestBody() = default; + +void BatchCreateGlobalEipRequestBody::validate() +{ +} + +web::json::value BatchCreateGlobalEipRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dryRunIsSet_) { + val[utility::conversions::to_string_t("dry_run")] = ModelBase::toJson(dryRun_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + + return val; +} +bool BatchCreateGlobalEipRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dry_run"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dry_run")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDryRun(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + BatchCreateGlobalEipRequestBody_global_eip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + return ok; +} + + +bool BatchCreateGlobalEipRequestBody::isDryRun() const +{ + return dryRun_; +} + +void BatchCreateGlobalEipRequestBody::setDryRun(bool value) +{ + dryRun_ = value; + dryRunIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody::dryRunIsSet() const +{ + return dryRunIsSet_; +} + +void BatchCreateGlobalEipRequestBody::unsetdryRun() +{ + dryRunIsSet_ = false; +} + +BatchCreateGlobalEipRequestBody_global_eip BatchCreateGlobalEipRequestBody::getGlobalEip() const +{ + return globalEip_; +} + +void BatchCreateGlobalEipRequestBody::setGlobalEip(const BatchCreateGlobalEipRequestBody_global_eip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void BatchCreateGlobalEipRequestBody::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEipRequestBody_global_eip.cpp b/geip/src/v3/model/BatchCreateGlobalEipRequestBody_global_eip.cpp new file mode 100644 index 000000000..9a796b1de --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEipRequestBody_global_eip.cpp @@ -0,0 +1,322 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEipRequestBody_global_eip::BatchCreateGlobalEipRequestBody_global_eip() +{ + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + internetBandwidthInfoIsSet_ = false; + count_ = 0; + countIsSet_ = false; + tagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +BatchCreateGlobalEipRequestBody_global_eip::~BatchCreateGlobalEipRequestBody_global_eip() = default; + +void BatchCreateGlobalEipRequestBody_global_eip::validate() +{ +} + +web::json::value BatchCreateGlobalEipRequestBody_global_eip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(internetBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_info")] = ModelBase::toJson(internetBandwidthInfo_); + } + if(countIsSet_) { + val[utility::conversions::to_string_t("count")] = ModelBase::toJson(count_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool BatchCreateGlobalEipRequestBody_global_eip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_info")); + if(!fieldValue.is_null()) + { + BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string BatchCreateGlobalEipRequestBody_global_eip::getName() const +{ + return name_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::nameIsSet() const +{ + return nameIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsetname() +{ + nameIsSet_ = false; +} + +std::string BatchCreateGlobalEipRequestBody_global_eip::getDescription() const +{ + return description_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string BatchCreateGlobalEipRequestBody_global_eip::getGeipPoolName() const +{ + return geipPoolName_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string BatchCreateGlobalEipRequestBody_global_eip::getAccessSite() const +{ + return accessSite_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info BatchCreateGlobalEipRequestBody_global_eip::getInternetBandwidthInfo() const +{ + return internetBandwidthInfo_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setInternetBandwidthInfo(const BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info& value) +{ + internetBandwidthInfo_ = value; + internetBandwidthInfoIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::internetBandwidthInfoIsSet() const +{ + return internetBandwidthInfoIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsetinternetBandwidthInfo() +{ + internetBandwidthInfoIsSet_ = false; +} + +int32_t BatchCreateGlobalEipRequestBody_global_eip::getCount() const +{ + return count_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setCount(int32_t value) +{ + count_ = value; + countIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::countIsSet() const +{ + return countIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsetcount() +{ + countIsSet_ = false; +} + +std::vector& BatchCreateGlobalEipRequestBody_global_eip::getTags() +{ + return tags_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::tagsIsSet() const +{ + return tagsIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsettags() +{ + tagsIsSet_ = false; +} + +std::string BatchCreateGlobalEipRequestBody_global_eip::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info.cpp b/geip/src/v3/model/BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info.cpp new file mode 100644 index 000000000..b3bf6acac --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info.cpp @@ -0,0 +1,288 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info() +{ + id_ = ""; + idIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + tagsIsSet_ = false; + type_ = ""; + typeIsSet_ = false; +} + +BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::~BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info() = default; + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::validate() +{ +} + +web::json::value BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +std::string BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::getId() const +{ + return id_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::idIsSet() const +{ + return idIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::unsetid() +{ + idIsSet_ = false; +} + +int32_t BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::getIngressSize() const +{ + return ingressSize_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::getChargeMode() const +{ + return chargeMode_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::getSize() const +{ + return size_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::sizeIsSet() const +{ + return sizeIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::getName() const +{ + return name_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::nameIsSet() const +{ + return nameIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::unsetname() +{ + nameIsSet_ = false; +} + +std::vector& BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::getTags() +{ + return tags_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::tagsIsSet() const +{ + return tagsIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::unsettags() +{ + tagsIsSet_ = false; +} + +std::string BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::getType() const +{ + return type_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::typeIsSet() const +{ + return typeIsSet_; +} + +void BatchCreateGlobalEipRequestBody_global_eip_internet_bandwidth_info::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEipResponse.cpp b/geip/src/v3/model/BatchCreateGlobalEipResponse.cpp new file mode 100644 index 000000000..39cc74fb7 --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEipResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEipResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEipResponse::BatchCreateGlobalEipResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchCreateGlobalEipResponse::~BatchCreateGlobalEipResponse() = default; + +void BatchCreateGlobalEipResponse::validate() +{ +} + +web::json::value BatchCreateGlobalEipResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchCreateGlobalEipResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + BatchCreateGlobalEip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchCreateGlobalEipResponse::getRequestId() const +{ + return requestId_; +} + +void BatchCreateGlobalEipResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool BatchCreateGlobalEipResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void BatchCreateGlobalEipResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +BatchCreateGlobalEip BatchCreateGlobalEipResponse::getGlobalEip() const +{ + return globalEip_; +} + +void BatchCreateGlobalEipResponse::setGlobalEip(const BatchCreateGlobalEip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool BatchCreateGlobalEipResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void BatchCreateGlobalEipResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string BatchCreateGlobalEipResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchCreateGlobalEipResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchCreateGlobalEipResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchCreateGlobalEipResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEipTagsRequest.cpp b/geip/src/v3/model/BatchCreateGlobalEipTagsRequest.cpp new file mode 100644 index 000000000..d0e6f08b2 --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEipTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEipTagsRequest::BatchCreateGlobalEipTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +BatchCreateGlobalEipTagsRequest::~BatchCreateGlobalEipTagsRequest() = default; + +void BatchCreateGlobalEipTagsRequest::validate() +{ +} + +web::json::value BatchCreateGlobalEipTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchCreateGlobalEipTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchCreateV2RequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string BatchCreateGlobalEipTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void BatchCreateGlobalEipTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool BatchCreateGlobalEipTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void BatchCreateGlobalEipTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +BatchCreateV2RequestBody BatchCreateGlobalEipTagsRequest::getBody() const +{ + return body_; +} + +void BatchCreateGlobalEipTagsRequest::setBody(const BatchCreateV2RequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchCreateGlobalEipTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchCreateGlobalEipTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateGlobalEipTagsResponse.cpp b/geip/src/v3/model/BatchCreateGlobalEipTagsResponse.cpp new file mode 100644 index 000000000..555d03c5b --- /dev/null +++ b/geip/src/v3/model/BatchCreateGlobalEipTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateGlobalEipTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateGlobalEipTagsResponse::BatchCreateGlobalEipTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchCreateGlobalEipTagsResponse::~BatchCreateGlobalEipTagsResponse() = default; + +void BatchCreateGlobalEipTagsResponse::validate() +{ +} + +web::json::value BatchCreateGlobalEipTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("x-request-id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchCreateGlobalEipTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("x-request-id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("x-request-id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchCreateGlobalEipTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchCreateGlobalEipTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchCreateGlobalEipTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchCreateGlobalEipTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateInternetBandwidth.cpp b/geip/src/v3/model/BatchCreateInternetBandwidth.cpp new file mode 100644 index 000000000..a872ffc72 --- /dev/null +++ b/geip/src/v3/model/BatchCreateInternetBandwidth.cpp @@ -0,0 +1,671 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateInternetBandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateInternetBandwidth::BatchCreateInternetBandwidth() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + retStatus_ = ""; + retStatusIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + lockInfosIsSet_ = false; +} + +BatchCreateInternetBandwidth::~BatchCreateInternetBandwidth() = default; + +void BatchCreateInternetBandwidth::validate() +{ +} + +web::json::value BatchCreateInternetBandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(retStatusIsSet_) { + val[utility::conversions::to_string_t("ret_status")] = ModelBase::toJson(retStatus_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(lockInfosIsSet_) { + val[utility::conversions::to_string_t("lock_infos")] = ModelBase::toJson(lockInfos_); + } + + return val; +} +bool BatchCreateInternetBandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ret_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ret_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRetStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lock_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lock_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLockInfos(refVal); + } + } + return ok; +} + + +std::string BatchCreateInternetBandwidth::getId() const +{ + return id_; +} + +void BatchCreateInternetBandwidth::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::idIsSet() const +{ + return idIsSet_; +} + +void BatchCreateInternetBandwidth::unsetid() +{ + idIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getName() const +{ + return name_; +} + +void BatchCreateInternetBandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void BatchCreateInternetBandwidth::unsetname() +{ + nameIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getIsp() const +{ + return isp_; +} + +void BatchCreateInternetBandwidth::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::ispIsSet() const +{ + return ispIsSet_; +} + +void BatchCreateInternetBandwidth::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t BatchCreateInternetBandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void BatchCreateInternetBandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void BatchCreateInternetBandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getAccessSite() const +{ + return accessSite_; +} + +void BatchCreateInternetBandwidth::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void BatchCreateInternetBandwidth::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t BatchCreateInternetBandwidth::getSize() const +{ + return size_; +} + +void BatchCreateInternetBandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void BatchCreateInternetBandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getDescription() const +{ + return description_; +} + +void BatchCreateInternetBandwidth::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void BatchCreateInternetBandwidth::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void BatchCreateInternetBandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void BatchCreateInternetBandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getDomainId() const +{ + return domainId_; +} + +void BatchCreateInternetBandwidth::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void BatchCreateInternetBandwidth::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getStatus() const +{ + return status_; +} + +void BatchCreateInternetBandwidth::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::statusIsSet() const +{ + return statusIsSet_; +} + +void BatchCreateInternetBandwidth::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime BatchCreateInternetBandwidth::getCreatedAt() const +{ + return createdAt_; +} + +void BatchCreateInternetBandwidth::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void BatchCreateInternetBandwidth::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime BatchCreateInternetBandwidth::getUpdatedAt() const +{ + return updatedAt_; +} + +void BatchCreateInternetBandwidth::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void BatchCreateInternetBandwidth::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getRetStatus() const +{ + return retStatus_; +} + +void BatchCreateInternetBandwidth::setRetStatus(const std::string& value) +{ + retStatus_ = value; + retStatusIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::retStatusIsSet() const +{ + return retStatusIsSet_; +} + +void BatchCreateInternetBandwidth::unsetretStatus() +{ + retStatusIsSet_ = false; +} + +std::vector& BatchCreateInternetBandwidth::getTags() +{ + return tags_; +} + +void BatchCreateInternetBandwidth::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::tagsIsSet() const +{ + return tagsIsSet_; +} + +void BatchCreateInternetBandwidth::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& BatchCreateInternetBandwidth::getSysTags() +{ + return sysTags_; +} + +void BatchCreateInternetBandwidth::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void BatchCreateInternetBandwidth::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void BatchCreateInternetBandwidth::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void BatchCreateInternetBandwidth::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string BatchCreateInternetBandwidth::getType() const +{ + return type_; +} + +void BatchCreateInternetBandwidth::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::typeIsSet() const +{ + return typeIsSet_; +} + +void BatchCreateInternetBandwidth::unsettype() +{ + typeIsSet_ = false; +} + +std::vector& BatchCreateInternetBandwidth::getLockInfos() +{ + return lockInfos_; +} + +void BatchCreateInternetBandwidth::setLockInfos(const std::vector& value) +{ + lockInfos_ = value; + lockInfosIsSet_ = true; +} + +bool BatchCreateInternetBandwidth::lockInfosIsSet() const +{ + return lockInfosIsSet_; +} + +void BatchCreateInternetBandwidth::unsetlockInfos() +{ + lockInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateInternetBandwidthRequest.cpp b/geip/src/v3/model/BatchCreateInternetBandwidthRequest.cpp new file mode 100644 index 000000000..2f07bc4bf --- /dev/null +++ b/geip/src/v3/model/BatchCreateInternetBandwidthRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateInternetBandwidthRequest::BatchCreateInternetBandwidthRequest() +{ + bodyIsSet_ = false; +} + +BatchCreateInternetBandwidthRequest::~BatchCreateInternetBandwidthRequest() = default; + +void BatchCreateInternetBandwidthRequest::validate() +{ +} + +web::json::value BatchCreateInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchCreateInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchCreateInternetBandwidthRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +BatchCreateInternetBandwidthRequestBody BatchCreateInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void BatchCreateInternetBandwidthRequest::setBody(const BatchCreateInternetBandwidthRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchCreateInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateInternetBandwidthRequestBody.cpp b/geip/src/v3/model/BatchCreateInternetBandwidthRequestBody.cpp new file mode 100644 index 000000000..b7d5d0481 --- /dev/null +++ b/geip/src/v3/model/BatchCreateInternetBandwidthRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateInternetBandwidthRequestBody::BatchCreateInternetBandwidthRequestBody() +{ + internetBandwidthIsSet_ = false; +} + +BatchCreateInternetBandwidthRequestBody::~BatchCreateInternetBandwidthRequestBody() = default; + +void BatchCreateInternetBandwidthRequestBody::validate() +{ +} + +web::json::value BatchCreateInternetBandwidthRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + + return val; +} +bool BatchCreateInternetBandwidthRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + BatchCreateInternetBandwidthRequestBody_internet_bandwidth refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + return ok; +} + + +BatchCreateInternetBandwidthRequestBody_internet_bandwidth BatchCreateInternetBandwidthRequestBody::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void BatchCreateInternetBandwidthRequestBody::setInternetBandwidth(const BatchCreateInternetBandwidthRequestBody_internet_bandwidth& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateInternetBandwidthRequestBody_internet_bandwidth.cpp b/geip/src/v3/model/BatchCreateInternetBandwidthRequestBody_internet_bandwidth.cpp new file mode 100644 index 000000000..c62aeb7f8 --- /dev/null +++ b/geip/src/v3/model/BatchCreateInternetBandwidthRequestBody_internet_bandwidth.cpp @@ -0,0 +1,428 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateInternetBandwidthRequestBody_internet_bandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateInternetBandwidthRequestBody_internet_bandwidth::BatchCreateInternetBandwidthRequestBody_internet_bandwidth() +{ + ingressSize_ = 0; + ingressSizeIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + count_ = 0; + countIsSet_ = false; + tagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; +} + +BatchCreateInternetBandwidthRequestBody_internet_bandwidth::~BatchCreateInternetBandwidthRequestBody_internet_bandwidth() = default; + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::validate() +{ +} + +web::json::value BatchCreateInternetBandwidthRequestBody_internet_bandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(countIsSet_) { + val[utility::conversions::to_string_t("count")] = ModelBase::toJson(count_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +int32_t BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getIsp() const +{ + return isp_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::ispIsSet() const +{ + return ispIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetisp() +{ + ispIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getAccessSite() const +{ + return accessSite_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getSize() const +{ + return size_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getName() const +{ + return name_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetname() +{ + nameIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getDescription() const +{ + return description_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetdescription() +{ + descriptionIsSet_ = false; +} + +int32_t BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getCount() const +{ + return count_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setCount(int32_t value) +{ + count_ = value; + countIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::countIsSet() const +{ + return countIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetcount() +{ + countIsSet_ = false; +} + +std::vector& BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getTags() +{ + return tags_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::tagsIsSet() const +{ + return tagsIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsettags() +{ + tagsIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthRequestBody_internet_bandwidth::getType() const +{ + return type_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool BatchCreateInternetBandwidthRequestBody_internet_bandwidth::typeIsSet() const +{ + return typeIsSet_; +} + +void BatchCreateInternetBandwidthRequestBody_internet_bandwidth::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateInternetBandwidthResponse.cpp b/geip/src/v3/model/BatchCreateInternetBandwidthResponse.cpp new file mode 100644 index 000000000..7a9ebc80d --- /dev/null +++ b/geip/src/v3/model/BatchCreateInternetBandwidthResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateInternetBandwidthResponse::BatchCreateInternetBandwidthResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + internetBandwidthsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchCreateInternetBandwidthResponse::~BatchCreateInternetBandwidthResponse() = default; + +void BatchCreateInternetBandwidthResponse::validate() +{ +} + +web::json::value BatchCreateInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(internetBandwidthsIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidths")] = ModelBase::toJson(internetBandwidths_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchCreateInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidths"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidths")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidths(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchCreateInternetBandwidthResponse::getRequestId() const +{ + return requestId_; +} + +void BatchCreateInternetBandwidthResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool BatchCreateInternetBandwidthResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void BatchCreateInternetBandwidthResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& BatchCreateInternetBandwidthResponse::getInternetBandwidths() +{ + return internetBandwidths_; +} + +void BatchCreateInternetBandwidthResponse::setInternetBandwidths(const std::vector& value) +{ + internetBandwidths_ = value; + internetBandwidthsIsSet_ = true; +} + +bool BatchCreateInternetBandwidthResponse::internetBandwidthsIsSet() const +{ + return internetBandwidthsIsSet_; +} + +void BatchCreateInternetBandwidthResponse::unsetinternetBandwidths() +{ + internetBandwidthsIsSet_ = false; +} + +std::string BatchCreateInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchCreateInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchCreateInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchCreateInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateInternetBandwidthTagsRequest.cpp b/geip/src/v3/model/BatchCreateInternetBandwidthTagsRequest.cpp new file mode 100644 index 000000000..e20069e69 --- /dev/null +++ b/geip/src/v3/model/BatchCreateInternetBandwidthTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateInternetBandwidthTagsRequest::BatchCreateInternetBandwidthTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +BatchCreateInternetBandwidthTagsRequest::~BatchCreateInternetBandwidthTagsRequest() = default; + +void BatchCreateInternetBandwidthTagsRequest::validate() +{ +} + +web::json::value BatchCreateInternetBandwidthTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchCreateInternetBandwidthTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchCreateV2RequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string BatchCreateInternetBandwidthTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void BatchCreateInternetBandwidthTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool BatchCreateInternetBandwidthTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void BatchCreateInternetBandwidthTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +BatchCreateV2RequestBody BatchCreateInternetBandwidthTagsRequest::getBody() const +{ + return body_; +} + +void BatchCreateInternetBandwidthTagsRequest::setBody(const BatchCreateV2RequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchCreateInternetBandwidthTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchCreateInternetBandwidthTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateInternetBandwidthTagsResponse.cpp b/geip/src/v3/model/BatchCreateInternetBandwidthTagsResponse.cpp new file mode 100644 index 000000000..6bdacb49d --- /dev/null +++ b/geip/src/v3/model/BatchCreateInternetBandwidthTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateInternetBandwidthTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateInternetBandwidthTagsResponse::BatchCreateInternetBandwidthTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchCreateInternetBandwidthTagsResponse::~BatchCreateInternetBandwidthTagsResponse() = default; + +void BatchCreateInternetBandwidthTagsResponse::validate() +{ +} + +web::json::value BatchCreateInternetBandwidthTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("x-request-id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchCreateInternetBandwidthTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("x-request-id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("x-request-id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchCreateInternetBandwidthTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchCreateInternetBandwidthTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchCreateInternetBandwidthTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchCreateInternetBandwidthTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateV2RequestBody.cpp b/geip/src/v3/model/BatchCreateV2RequestBody.cpp new file mode 100644 index 000000000..16814cf45 --- /dev/null +++ b/geip/src/v3/model/BatchCreateV2RequestBody.cpp @@ -0,0 +1,112 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateV2RequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateV2RequestBody::BatchCreateV2RequestBody() +{ + tagsIsSet_ = false; + sysTagsIsSet_ = false; +} + +BatchCreateV2RequestBody::~BatchCreateV2RequestBody() = default; + +void BatchCreateV2RequestBody::validate() +{ +} + +web::json::value BatchCreateV2RequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + + return val; +} +bool BatchCreateV2RequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + return ok; +} + + +std::vector& BatchCreateV2RequestBody::getTags() +{ + return tags_; +} + +void BatchCreateV2RequestBody::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool BatchCreateV2RequestBody::tagsIsSet() const +{ + return tagsIsSet_; +} + +void BatchCreateV2RequestBody::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& BatchCreateV2RequestBody::getSysTags() +{ + return sysTags_; +} + +void BatchCreateV2RequestBody::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool BatchCreateV2RequestBody::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void BatchCreateV2RequestBody::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateV2RequestBody_sys_tags.cpp b/geip/src/v3/model/BatchCreateV2RequestBody_sys_tags.cpp new file mode 100644 index 000000000..850080cf2 --- /dev/null +++ b/geip/src/v3/model/BatchCreateV2RequestBody_sys_tags.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateV2RequestBody_sys_tags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateV2RequestBody_sys_tags::BatchCreateV2RequestBody_sys_tags() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +BatchCreateV2RequestBody_sys_tags::~BatchCreateV2RequestBody_sys_tags() = default; + +void BatchCreateV2RequestBody_sys_tags::validate() +{ +} + +web::json::value BatchCreateV2RequestBody_sys_tags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool BatchCreateV2RequestBody_sys_tags::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string BatchCreateV2RequestBody_sys_tags::getKey() const +{ + return key_; +} + +void BatchCreateV2RequestBody_sys_tags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool BatchCreateV2RequestBody_sys_tags::keyIsSet() const +{ + return keyIsSet_; +} + +void BatchCreateV2RequestBody_sys_tags::unsetkey() +{ + keyIsSet_ = false; +} + +std::string BatchCreateV2RequestBody_sys_tags::getValue() const +{ + return value_; +} + +void BatchCreateV2RequestBody_sys_tags::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool BatchCreateV2RequestBody_sys_tags::valueIsSet() const +{ + return valueIsSet_; +} + +void BatchCreateV2RequestBody_sys_tags::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchCreateV2RequestBody_tags.cpp b/geip/src/v3/model/BatchCreateV2RequestBody_tags.cpp new file mode 100644 index 000000000..8c5354458 --- /dev/null +++ b/geip/src/v3/model/BatchCreateV2RequestBody_tags.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchCreateV2RequestBody_tags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchCreateV2RequestBody_tags::BatchCreateV2RequestBody_tags() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +BatchCreateV2RequestBody_tags::~BatchCreateV2RequestBody_tags() = default; + +void BatchCreateV2RequestBody_tags::validate() +{ +} + +web::json::value BatchCreateV2RequestBody_tags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool BatchCreateV2RequestBody_tags::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string BatchCreateV2RequestBody_tags::getKey() const +{ + return key_; +} + +void BatchCreateV2RequestBody_tags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool BatchCreateV2RequestBody_tags::keyIsSet() const +{ + return keyIsSet_; +} + +void BatchCreateV2RequestBody_tags::unsetkey() +{ + keyIsSet_ = false; +} + +std::string BatchCreateV2RequestBody_tags::getValue() const +{ + return value_; +} + +void BatchCreateV2RequestBody_tags::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool BatchCreateV2RequestBody_tags::valueIsSet() const +{ + return valueIsSet_; +} + +void BatchCreateV2RequestBody_tags::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteGeipSegmentTagsRequest.cpp b/geip/src/v3/model/BatchDeleteGeipSegmentTagsRequest.cpp new file mode 100644 index 000000000..836d588b1 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteGeipSegmentTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteGeipSegmentTagsRequest::BatchDeleteGeipSegmentTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +BatchDeleteGeipSegmentTagsRequest::~BatchDeleteGeipSegmentTagsRequest() = default; + +void BatchDeleteGeipSegmentTagsRequest::validate() +{ +} + +web::json::value BatchDeleteGeipSegmentTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchDeleteGeipSegmentTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchDeleteV2RequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string BatchDeleteGeipSegmentTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void BatchDeleteGeipSegmentTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool BatchDeleteGeipSegmentTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void BatchDeleteGeipSegmentTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +BatchDeleteV2RequestBody BatchDeleteGeipSegmentTagsRequest::getBody() const +{ + return body_; +} + +void BatchDeleteGeipSegmentTagsRequest::setBody(const BatchDeleteV2RequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDeleteGeipSegmentTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDeleteGeipSegmentTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteGeipSegmentTagsResponse.cpp b/geip/src/v3/model/BatchDeleteGeipSegmentTagsResponse.cpp new file mode 100644 index 000000000..2550a95e0 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteGeipSegmentTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteGeipSegmentTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteGeipSegmentTagsResponse::BatchDeleteGeipSegmentTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchDeleteGeipSegmentTagsResponse::~BatchDeleteGeipSegmentTagsResponse() = default; + +void BatchDeleteGeipSegmentTagsResponse::validate() +{ +} + +web::json::value BatchDeleteGeipSegmentTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("x-request-id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchDeleteGeipSegmentTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("x-request-id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("x-request-id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchDeleteGeipSegmentTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchDeleteGeipSegmentTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchDeleteGeipSegmentTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchDeleteGeipSegmentTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteGlobalEipTagsRequest.cpp b/geip/src/v3/model/BatchDeleteGlobalEipTagsRequest.cpp new file mode 100644 index 000000000..222d2ea08 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteGlobalEipTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteGlobalEipTagsRequest::BatchDeleteGlobalEipTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +BatchDeleteGlobalEipTagsRequest::~BatchDeleteGlobalEipTagsRequest() = default; + +void BatchDeleteGlobalEipTagsRequest::validate() +{ +} + +web::json::value BatchDeleteGlobalEipTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchDeleteGlobalEipTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchDeleteV2RequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string BatchDeleteGlobalEipTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void BatchDeleteGlobalEipTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool BatchDeleteGlobalEipTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void BatchDeleteGlobalEipTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +BatchDeleteV2RequestBody BatchDeleteGlobalEipTagsRequest::getBody() const +{ + return body_; +} + +void BatchDeleteGlobalEipTagsRequest::setBody(const BatchDeleteV2RequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDeleteGlobalEipTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDeleteGlobalEipTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteGlobalEipTagsResponse.cpp b/geip/src/v3/model/BatchDeleteGlobalEipTagsResponse.cpp new file mode 100644 index 000000000..aaf59b985 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteGlobalEipTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteGlobalEipTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteGlobalEipTagsResponse::BatchDeleteGlobalEipTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchDeleteGlobalEipTagsResponse::~BatchDeleteGlobalEipTagsResponse() = default; + +void BatchDeleteGlobalEipTagsResponse::validate() +{ +} + +web::json::value BatchDeleteGlobalEipTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("x-request-id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchDeleteGlobalEipTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("x-request-id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("x-request-id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchDeleteGlobalEipTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchDeleteGlobalEipTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchDeleteGlobalEipTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchDeleteGlobalEipTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteInternetBandwidthTagsRequest.cpp b/geip/src/v3/model/BatchDeleteInternetBandwidthTagsRequest.cpp new file mode 100644 index 000000000..c9662cec4 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteInternetBandwidthTagsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteInternetBandwidthTagsRequest::BatchDeleteInternetBandwidthTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + bodyIsSet_ = false; +} + +BatchDeleteInternetBandwidthTagsRequest::~BatchDeleteInternetBandwidthTagsRequest() = default; + +void BatchDeleteInternetBandwidthTagsRequest::validate() +{ +} + +web::json::value BatchDeleteInternetBandwidthTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchDeleteInternetBandwidthTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchDeleteV2RequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string BatchDeleteInternetBandwidthTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void BatchDeleteInternetBandwidthTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool BatchDeleteInternetBandwidthTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void BatchDeleteInternetBandwidthTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +BatchDeleteV2RequestBody BatchDeleteInternetBandwidthTagsRequest::getBody() const +{ + return body_; +} + +void BatchDeleteInternetBandwidthTagsRequest::setBody(const BatchDeleteV2RequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDeleteInternetBandwidthTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDeleteInternetBandwidthTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteInternetBandwidthTagsResponse.cpp b/geip/src/v3/model/BatchDeleteInternetBandwidthTagsResponse.cpp new file mode 100644 index 000000000..e57d699fd --- /dev/null +++ b/geip/src/v3/model/BatchDeleteInternetBandwidthTagsResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteInternetBandwidthTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteInternetBandwidthTagsResponse::BatchDeleteInternetBandwidthTagsResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchDeleteInternetBandwidthTagsResponse::~BatchDeleteInternetBandwidthTagsResponse() = default; + +void BatchDeleteInternetBandwidthTagsResponse::validate() +{ +} + +web::json::value BatchDeleteInternetBandwidthTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("x-request-id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchDeleteInternetBandwidthTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("x-request-id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("x-request-id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchDeleteInternetBandwidthTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchDeleteInternetBandwidthTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchDeleteInternetBandwidthTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchDeleteInternetBandwidthTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteV2RequestBody.cpp b/geip/src/v3/model/BatchDeleteV2RequestBody.cpp new file mode 100644 index 000000000..09559e4f8 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteV2RequestBody.cpp @@ -0,0 +1,112 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteV2RequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteV2RequestBody::BatchDeleteV2RequestBody() +{ + tagsIsSet_ = false; + sysTagsIsSet_ = false; +} + +BatchDeleteV2RequestBody::~BatchDeleteV2RequestBody() = default; + +void BatchDeleteV2RequestBody::validate() +{ +} + +web::json::value BatchDeleteV2RequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + + return val; +} +bool BatchDeleteV2RequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + return ok; +} + + +std::vector& BatchDeleteV2RequestBody::getTags() +{ + return tags_; +} + +void BatchDeleteV2RequestBody::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool BatchDeleteV2RequestBody::tagsIsSet() const +{ + return tagsIsSet_; +} + +void BatchDeleteV2RequestBody::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& BatchDeleteV2RequestBody::getSysTags() +{ + return sysTags_; +} + +void BatchDeleteV2RequestBody::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool BatchDeleteV2RequestBody::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void BatchDeleteV2RequestBody::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteV2RequestBody_sys_tags.cpp b/geip/src/v3/model/BatchDeleteV2RequestBody_sys_tags.cpp new file mode 100644 index 000000000..4d72cc5d6 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteV2RequestBody_sys_tags.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_sys_tags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteV2RequestBody_sys_tags::BatchDeleteV2RequestBody_sys_tags() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +BatchDeleteV2RequestBody_sys_tags::~BatchDeleteV2RequestBody_sys_tags() = default; + +void BatchDeleteV2RequestBody_sys_tags::validate() +{ +} + +web::json::value BatchDeleteV2RequestBody_sys_tags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool BatchDeleteV2RequestBody_sys_tags::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string BatchDeleteV2RequestBody_sys_tags::getKey() const +{ + return key_; +} + +void BatchDeleteV2RequestBody_sys_tags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool BatchDeleteV2RequestBody_sys_tags::keyIsSet() const +{ + return keyIsSet_; +} + +void BatchDeleteV2RequestBody_sys_tags::unsetkey() +{ + keyIsSet_ = false; +} + +std::string BatchDeleteV2RequestBody_sys_tags::getValue() const +{ + return value_; +} + +void BatchDeleteV2RequestBody_sys_tags::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool BatchDeleteV2RequestBody_sys_tags::valueIsSet() const +{ + return valueIsSet_; +} + +void BatchDeleteV2RequestBody_sys_tags::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDeleteV2RequestBody_tags.cpp b/geip/src/v3/model/BatchDeleteV2RequestBody_tags.cpp new file mode 100644 index 000000000..d353f13b0 --- /dev/null +++ b/geip/src/v3/model/BatchDeleteV2RequestBody_tags.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchDeleteV2RequestBody_tags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDeleteV2RequestBody_tags::BatchDeleteV2RequestBody_tags() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +BatchDeleteV2RequestBody_tags::~BatchDeleteV2RequestBody_tags() = default; + +void BatchDeleteV2RequestBody_tags::validate() +{ +} + +web::json::value BatchDeleteV2RequestBody_tags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool BatchDeleteV2RequestBody_tags::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string BatchDeleteV2RequestBody_tags::getKey() const +{ + return key_; +} + +void BatchDeleteV2RequestBody_tags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool BatchDeleteV2RequestBody_tags::keyIsSet() const +{ + return keyIsSet_; +} + +void BatchDeleteV2RequestBody_tags::unsetkey() +{ + keyIsSet_ = false; +} + +std::string BatchDeleteV2RequestBody_tags::getValue() const +{ + return value_; +} + +void BatchDeleteV2RequestBody_tags::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool BatchDeleteV2RequestBody_tags::valueIsSet() const +{ + return valueIsSet_; +} + +void BatchDeleteV2RequestBody_tags::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDetachGeipSegmentInternetBandwidthRequest.cpp b/geip/src/v3/model/BatchDetachGeipSegmentInternetBandwidthRequest.cpp new file mode 100644 index 000000000..5e5688892 --- /dev/null +++ b/geip/src/v3/model/BatchDetachGeipSegmentInternetBandwidthRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDetachGeipSegmentInternetBandwidthRequest::BatchDetachGeipSegmentInternetBandwidthRequest() +{ + bodyIsSet_ = false; +} + +BatchDetachGeipSegmentInternetBandwidthRequest::~BatchDetachGeipSegmentInternetBandwidthRequest() = default; + +void BatchDetachGeipSegmentInternetBandwidthRequest::validate() +{ +} + +web::json::value BatchDetachGeipSegmentInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchDetachGeipSegmentInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody BatchDetachGeipSegmentInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void BatchDetachGeipSegmentInternetBandwidthRequest::setBody(const BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDetachGeipSegmentInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDetachGeipSegmentInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDetachGeipSegmentInternetBandwidthResponse.cpp b/geip/src/v3/model/BatchDetachGeipSegmentInternetBandwidthResponse.cpp new file mode 100644 index 000000000..5d6167b94 --- /dev/null +++ b/geip/src/v3/model/BatchDetachGeipSegmentInternetBandwidthResponse.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchDetachGeipSegmentInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDetachGeipSegmentInternetBandwidthResponse::BatchDetachGeipSegmentInternetBandwidthResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchDetachGeipSegmentInternetBandwidthResponse::~BatchDetachGeipSegmentInternetBandwidthResponse() = default; + +void BatchDetachGeipSegmentInternetBandwidthResponse::validate() +{ +} + +web::json::value BatchDetachGeipSegmentInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchDetachGeipSegmentInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchDetachGeipSegmentInternetBandwidthResponse::getJobId() const +{ + return jobId_; +} + +void BatchDetachGeipSegmentInternetBandwidthResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool BatchDetachGeipSegmentInternetBandwidthResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void BatchDetachGeipSegmentInternetBandwidthResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +std::string BatchDetachGeipSegmentInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchDetachGeipSegmentInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchDetachGeipSegmentInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchDetachGeipSegmentInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDetachInternetBandwidthRequest.cpp b/geip/src/v3/model/BatchDetachInternetBandwidthRequest.cpp new file mode 100644 index 000000000..3bc748fae --- /dev/null +++ b/geip/src/v3/model/BatchDetachInternetBandwidthRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchDetachInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDetachInternetBandwidthRequest::BatchDetachInternetBandwidthRequest() +{ + bodyIsSet_ = false; +} + +BatchDetachInternetBandwidthRequest::~BatchDetachInternetBandwidthRequest() = default; + +void BatchDetachInternetBandwidthRequest::validate() +{ +} + +web::json::value BatchDetachInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool BatchDetachInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + BatchDetachInternetBandwidthsGlobalEipRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +BatchDetachInternetBandwidthsGlobalEipRequestBody BatchDetachInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void BatchDetachInternetBandwidthRequest::setBody(const BatchDetachInternetBandwidthsGlobalEipRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDetachInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDetachInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDetachInternetBandwidthResponse.cpp b/geip/src/v3/model/BatchDetachInternetBandwidthResponse.cpp new file mode 100644 index 000000000..7f613b4cb --- /dev/null +++ b/geip/src/v3/model/BatchDetachInternetBandwidthResponse.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/BatchDetachInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDetachInternetBandwidthResponse::BatchDetachInternetBandwidthResponse() +{ + body_ = ""; + bodyIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +BatchDetachInternetBandwidthResponse::~BatchDetachInternetBandwidthResponse() = default; + +void BatchDetachInternetBandwidthResponse::validate() +{ +} + +web::json::value BatchDetachInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool BatchDetachInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string BatchDetachInternetBandwidthResponse::getBody() const +{ + return body_; +} + +void BatchDetachInternetBandwidthResponse::setBody(const std::string& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDetachInternetBandwidthResponse::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDetachInternetBandwidthResponse::unsetbody() +{ + bodyIsSet_ = false; +} + +std::string BatchDetachInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void BatchDetachInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool BatchDetachInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void BatchDetachInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDetachInternetBandwidthsGlobalEipRequestBody.cpp b/geip/src/v3/model/BatchDetachInternetBandwidthsGlobalEipRequestBody.cpp new file mode 100644 index 000000000..e9c2787eb --- /dev/null +++ b/geip/src/v3/model/BatchDetachInternetBandwidthsGlobalEipRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDetachInternetBandwidthsGlobalEipRequestBody::BatchDetachInternetBandwidthsGlobalEipRequestBody() +{ + globalEipsIsSet_ = false; +} + +BatchDetachInternetBandwidthsGlobalEipRequestBody::~BatchDetachInternetBandwidthsGlobalEipRequestBody() = default; + +void BatchDetachInternetBandwidthsGlobalEipRequestBody::validate() +{ +} + +web::json::value BatchDetachInternetBandwidthsGlobalEipRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipsIsSet_) { + val[utility::conversions::to_string_t("global_eips")] = ModelBase::toJson(globalEips_); + } + + return val; +} +bool BatchDetachInternetBandwidthsGlobalEipRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eips")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEips(refVal); + } + } + return ok; +} + + +std::vector& BatchDetachInternetBandwidthsGlobalEipRequestBody::getGlobalEips() +{ + return globalEips_; +} + +void BatchDetachInternetBandwidthsGlobalEipRequestBody::setGlobalEips(const std::vector& value) +{ + globalEips_ = value; + globalEipsIsSet_ = true; +} + +bool BatchDetachInternetBandwidthsGlobalEipRequestBody::globalEipsIsSet() const +{ + return globalEipsIsSet_; +} + +void BatchDetachInternetBandwidthsGlobalEipRequestBody::unsetglobalEips() +{ + globalEipsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.cpp b/geip/src/v3/model/BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.cpp new file mode 100644 index 000000000..a00dbb8b4 --- /dev/null +++ b/geip/src/v3/model/BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody() +{ + globalEipSegmentsIsSet_ = false; +} + +BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::~BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody() = default; + +void BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::validate() +{ +} + +web::json::value BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentsIsSet_) { + val[utility::conversions::to_string_t("global_eip_segments")] = ModelBase::toJson(globalEipSegments_); + } + + return val; +} +bool BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segments"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segments")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegments(refVal); + } + } + return ok; +} + + +std::vector& BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::getGlobalEipSegments() +{ + return globalEipSegments_; +} + +void BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::setGlobalEipSegments(const std::vector& value) +{ + globalEipSegments_ = value; + globalEipSegmentsIsSet_ = true; +} + +bool BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::globalEipSegmentsIsSet() const +{ + return globalEipSegmentsIsSet_; +} + +void BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody::unsetglobalEipSegments() +{ + globalEipSegmentsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/BatchInternetBandwidthsGlobalEipResponseBody.cpp b/geip/src/v3/model/BatchInternetBandwidthsGlobalEipResponseBody.cpp new file mode 100644 index 000000000..9a36813b2 --- /dev/null +++ b/geip/src/v3/model/BatchInternetBandwidthsGlobalEipResponseBody.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/BatchInternetBandwidthsGlobalEipResponseBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +BatchInternetBandwidthsGlobalEipResponseBody::BatchInternetBandwidthsGlobalEipResponseBody() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +BatchInternetBandwidthsGlobalEipResponseBody::~BatchInternetBandwidthsGlobalEipResponseBody() = default; + +void BatchInternetBandwidthsGlobalEipResponseBody::validate() +{ +} + +web::json::value BatchInternetBandwidthsGlobalEipResponseBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + + return val; +} +bool BatchInternetBandwidthsGlobalEipResponseBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + return ok; +} + + +std::string BatchInternetBandwidthsGlobalEipResponseBody::getJobId() const +{ + return jobId_; +} + +void BatchInternetBandwidthsGlobalEipResponseBody::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool BatchInternetBandwidthsGlobalEipResponseBody::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void BatchInternetBandwidthsGlobalEipResponseBody::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountGeipSegments.cpp b/geip/src/v3/model/CountGeipSegments.cpp new file mode 100644 index 000000000..b176252a6 --- /dev/null +++ b/geip/src/v3/model/CountGeipSegments.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/CountGeipSegments.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountGeipSegments::CountGeipSegments() +{ + count_ = 0; + countIsSet_ = false; +} + +CountGeipSegments::~CountGeipSegments() = default; + +void CountGeipSegments::validate() +{ +} + +web::json::value CountGeipSegments::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(countIsSet_) { + val[utility::conversions::to_string_t("count")] = ModelBase::toJson(count_); + } + + return val; +} +bool CountGeipSegments::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCount(refVal); + } + } + return ok; +} + + +int32_t CountGeipSegments::getCount() const +{ + return count_; +} + +void CountGeipSegments::setCount(int32_t value) +{ + count_ = value; + countIsSet_ = true; +} + +bool CountGeipSegments::countIsSet() const +{ + return countIsSet_; +} + +void CountGeipSegments::unsetcount() +{ + countIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountGlobalEipSegmentRequest.cpp b/geip/src/v3/model/CountGlobalEipSegmentRequest.cpp new file mode 100644 index 000000000..a7357ced9 --- /dev/null +++ b/geip/src/v3/model/CountGlobalEipSegmentRequest.cpp @@ -0,0 +1,933 @@ + + +#include "huaweicloud/geip/v3/model/CountGlobalEipSegmentRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountGlobalEipSegmentRequest::CountGlobalEipSegmentRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + idIsSet_ = false; + internetBandwidthIdIsSet_ = false; + nameIsSet_ = false; + nameLike_ = ""; + nameLikeIsSet_ = false; + accessSiteIsSet_ = false; + geipPoolNameIsSet_ = false; + ispIsSet_ = false; + ipVersionIsSet_ = false; + cidrIsSet_ = false; + cidrV6IsSet_ = false; + freezenIsSet_ = false; + internetBandwidthIsNullIsSet_ = false; + statusIsSet_ = false; + associateInstanceRegionIsSet_ = false; + associateInstancePublicBorderGroupIsSet_ = false; + associateInstanceInstanceSiteIsSet_ = false; + associateInstanceInstanceTypeIsSet_ = false; + associateInstanceInstanceIdIsSet_ = false; + associateInstanceProjectIdIsSet_ = false; + enterpriseProjectIdIsSet_ = false; + tagsIsSet_ = false; +} + +CountGlobalEipSegmentRequest::~CountGlobalEipSegmentRequest() = default; + +void CountGlobalEipSegmentRequest::validate() +{ +} + +web::json::value CountGlobalEipSegmentRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(nameLikeIsSet_) { + val[utility::conversions::to_string_t("name_like")] = ModelBase::toJson(nameLike_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(cidrIsSet_) { + val[utility::conversions::to_string_t("cidr")] = ModelBase::toJson(cidr_); + } + if(cidrV6IsSet_) { + val[utility::conversions::to_string_t("cidr_v6")] = ModelBase::toJson(cidrV6_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(internetBandwidthIsNullIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_is_null")] = ModelBase::toJson(internetBandwidthIsNull_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(associateInstanceRegionIsSet_) { + val[utility::conversions::to_string_t("associate_instance.region")] = ModelBase::toJson(associateInstanceRegion_); + } + if(associateInstancePublicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("associate_instance.public_border_group")] = ModelBase::toJson(associateInstancePublicBorderGroup_); + } + if(associateInstanceInstanceSiteIsSet_) { + val[utility::conversions::to_string_t("associate_instance.instance_site")] = ModelBase::toJson(associateInstanceInstanceSite_); + } + if(associateInstanceInstanceTypeIsSet_) { + val[utility::conversions::to_string_t("associate_instance.instance_type")] = ModelBase::toJson(associateInstanceInstanceType_); + } + if(associateInstanceInstanceIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance.instance_id")] = ModelBase::toJson(associateInstanceInstanceId_); + } + if(associateInstanceProjectIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance.project_id")] = ModelBase::toJson(associateInstanceProjectId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool CountGlobalEipSegmentRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name_like"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name_like")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNameLike(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidr(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr_v6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr_v6")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidrV6(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_is_null"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_is_null")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthIsNull(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.region")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.public_border_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstancePublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.instance_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.instance_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInstanceSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.instance_type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.instance_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +int32_t CountGlobalEipSegmentRequest::getLimit() const +{ + return limit_; +} + +void CountGlobalEipSegmentRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t CountGlobalEipSegmentRequest::getOffset() const +{ + return offset_; +} + +void CountGlobalEipSegmentRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string CountGlobalEipSegmentRequest::getMarker() const +{ + return marker_; +} + +void CountGlobalEipSegmentRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool CountGlobalEipSegmentRequest::isPageReverse() const +{ + return pageReverse_; +} + +void CountGlobalEipSegmentRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getFields() +{ + return fields_; +} + +void CountGlobalEipSegmentRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getId() +{ + return id_; +} + +void CountGlobalEipSegmentRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::idIsSet() const +{ + return idIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getInternetBandwidthId() +{ + return internetBandwidthId_; +} + +void CountGlobalEipSegmentRequest::setInternetBandwidthId(const std::vector& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getName() +{ + return name_; +} + +void CountGlobalEipSegmentRequest::setName(const std::vector& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string CountGlobalEipSegmentRequest::getNameLike() const +{ + return nameLike_; +} + +void CountGlobalEipSegmentRequest::setNameLike(const std::string& value) +{ + nameLike_ = value; + nameLikeIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::nameLikeIsSet() const +{ + return nameLikeIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetnameLike() +{ + nameLikeIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getAccessSite() +{ + return accessSite_; +} + +void CountGlobalEipSegmentRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getGeipPoolName() +{ + return geipPoolName_; +} + +void CountGlobalEipSegmentRequest::setGeipPoolName(const std::vector& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getIsp() +{ + return isp_; +} + +void CountGlobalEipSegmentRequest::setIsp(const std::vector& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::ispIsSet() const +{ + return ispIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetisp() +{ + ispIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getIpVersion() +{ + return ipVersion_; +} + +void CountGlobalEipSegmentRequest::setIpVersion(std::vector value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getCidr() +{ + return cidr_; +} + +void CountGlobalEipSegmentRequest::setCidr(const std::vector& value) +{ + cidr_ = value; + cidrIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::cidrIsSet() const +{ + return cidrIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetcidr() +{ + cidrIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getCidrV6() +{ + return cidrV6_; +} + +void CountGlobalEipSegmentRequest::setCidrV6(const std::vector& value) +{ + cidrV6_ = value; + cidrV6IsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::cidrV6IsSet() const +{ + return cidrV6IsSet_; +} + +void CountGlobalEipSegmentRequest::unsetcidrV6() +{ + cidrV6IsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getFreezen() +{ + return freezen_; +} + +void CountGlobalEipSegmentRequest::setFreezen(std::vector value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::freezenIsSet() const +{ + return freezenIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getInternetBandwidthIsNull() +{ + return internetBandwidthIsNull_; +} + +void CountGlobalEipSegmentRequest::setInternetBandwidthIsNull(std::vector value) +{ + internetBandwidthIsNull_ = value; + internetBandwidthIsNullIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::internetBandwidthIsNullIsSet() const +{ + return internetBandwidthIsNullIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetinternetBandwidthIsNull() +{ + internetBandwidthIsNullIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getStatus() +{ + return status_; +} + +void CountGlobalEipSegmentRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getAssociateInstanceRegion() +{ + return associateInstanceRegion_; +} + +void CountGlobalEipSegmentRequest::setAssociateInstanceRegion(const std::vector& value) +{ + associateInstanceRegion_ = value; + associateInstanceRegionIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::associateInstanceRegionIsSet() const +{ + return associateInstanceRegionIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetassociateInstanceRegion() +{ + associateInstanceRegionIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getAssociateInstancePublicBorderGroup() +{ + return associateInstancePublicBorderGroup_; +} + +void CountGlobalEipSegmentRequest::setAssociateInstancePublicBorderGroup(const std::vector& value) +{ + associateInstancePublicBorderGroup_ = value; + associateInstancePublicBorderGroupIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::associateInstancePublicBorderGroupIsSet() const +{ + return associateInstancePublicBorderGroupIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetassociateInstancePublicBorderGroup() +{ + associateInstancePublicBorderGroupIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getAssociateInstanceInstanceSite() +{ + return associateInstanceInstanceSite_; +} + +void CountGlobalEipSegmentRequest::setAssociateInstanceInstanceSite(const std::vector& value) +{ + associateInstanceInstanceSite_ = value; + associateInstanceInstanceSiteIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::associateInstanceInstanceSiteIsSet() const +{ + return associateInstanceInstanceSiteIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetassociateInstanceInstanceSite() +{ + associateInstanceInstanceSiteIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getAssociateInstanceInstanceType() +{ + return associateInstanceInstanceType_; +} + +void CountGlobalEipSegmentRequest::setAssociateInstanceInstanceType(const std::vector& value) +{ + associateInstanceInstanceType_ = value; + associateInstanceInstanceTypeIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::associateInstanceInstanceTypeIsSet() const +{ + return associateInstanceInstanceTypeIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetassociateInstanceInstanceType() +{ + associateInstanceInstanceTypeIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getAssociateInstanceInstanceId() +{ + return associateInstanceInstanceId_; +} + +void CountGlobalEipSegmentRequest::setAssociateInstanceInstanceId(const std::vector& value) +{ + associateInstanceInstanceId_ = value; + associateInstanceInstanceIdIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::associateInstanceInstanceIdIsSet() const +{ + return associateInstanceInstanceIdIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetassociateInstanceInstanceId() +{ + associateInstanceInstanceIdIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getAssociateInstanceProjectId() +{ + return associateInstanceProjectId_; +} + +void CountGlobalEipSegmentRequest::setAssociateInstanceProjectId(const std::vector& value) +{ + associateInstanceProjectId_ = value; + associateInstanceProjectIdIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::associateInstanceProjectIdIsSet() const +{ + return associateInstanceProjectIdIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetassociateInstanceProjectId() +{ + associateInstanceProjectIdIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getEnterpriseProjectId() +{ + return enterpriseProjectId_; +} + +void CountGlobalEipSegmentRequest::setEnterpriseProjectId(const std::vector& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CountGlobalEipSegmentRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::vector& CountGlobalEipSegmentRequest::getTags() +{ + return tags_; +} + +void CountGlobalEipSegmentRequest::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CountGlobalEipSegmentRequest::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CountGlobalEipSegmentRequest::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountGlobalEipSegmentResponse.cpp b/geip/src/v3/model/CountGlobalEipSegmentResponse.cpp new file mode 100644 index 000000000..6773eee55 --- /dev/null +++ b/geip/src/v3/model/CountGlobalEipSegmentResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/CountGlobalEipSegmentResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountGlobalEipSegmentResponse::CountGlobalEipSegmentResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipSegmentsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +CountGlobalEipSegmentResponse::~CountGlobalEipSegmentResponse() = default; + +void CountGlobalEipSegmentResponse::validate() +{ +} + +web::json::value CountGlobalEipSegmentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipSegmentsIsSet_) { + val[utility::conversions::to_string_t("global_eip_segments")] = ModelBase::toJson(globalEipSegments_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool CountGlobalEipSegmentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_segments"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segments")); + if(!fieldValue.is_null()) + { + CountGeipSegments refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegments(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string CountGlobalEipSegmentResponse::getRequestId() const +{ + return requestId_; +} + +void CountGlobalEipSegmentResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool CountGlobalEipSegmentResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void CountGlobalEipSegmentResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +CountGeipSegments CountGlobalEipSegmentResponse::getGlobalEipSegments() const +{ + return globalEipSegments_; +} + +void CountGlobalEipSegmentResponse::setGlobalEipSegments(const CountGeipSegments& value) +{ + globalEipSegments_ = value; + globalEipSegmentsIsSet_ = true; +} + +bool CountGlobalEipSegmentResponse::globalEipSegmentsIsSet() const +{ + return globalEipSegmentsIsSet_; +} + +void CountGlobalEipSegmentResponse::unsetglobalEipSegments() +{ + globalEipSegmentsIsSet_ = false; +} + +std::string CountGlobalEipSegmentResponse::getXRequestId() const +{ + return xRequestId_; +} + +void CountGlobalEipSegmentResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool CountGlobalEipSegmentResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void CountGlobalEipSegmentResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountGlobalEips.cpp b/geip/src/v3/model/CountGlobalEips.cpp new file mode 100644 index 000000000..7b9c49cf1 --- /dev/null +++ b/geip/src/v3/model/CountGlobalEips.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/CountGlobalEips.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountGlobalEips::CountGlobalEips() +{ + count_ = 0; + countIsSet_ = false; +} + +CountGlobalEips::~CountGlobalEips() = default; + +void CountGlobalEips::validate() +{ +} + +web::json::value CountGlobalEips::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(countIsSet_) { + val[utility::conversions::to_string_t("count")] = ModelBase::toJson(count_); + } + + return val; +} +bool CountGlobalEips::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCount(refVal); + } + } + return ok; +} + + +int32_t CountGlobalEips::getCount() const +{ + return count_; +} + +void CountGlobalEips::setCount(int32_t value) +{ + count_ = value; + countIsSet_ = true; +} + +bool CountGlobalEips::countIsSet() const +{ + return countIsSet_; +} + +void CountGlobalEips::unsetcount() +{ + countIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountGlobalEipsRequest.cpp b/geip/src/v3/model/CountGlobalEipsRequest.cpp new file mode 100644 index 000000000..af2a6419d --- /dev/null +++ b/geip/src/v3/model/CountGlobalEipsRequest.cpp @@ -0,0 +1,827 @@ + + +#include "huaweicloud/geip/v3/model/CountGlobalEipsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountGlobalEipsRequest::CountGlobalEipsRequest() +{ + idIsSet_ = false; + internetBandwidthIdIsSet_ = false; + nameIsSet_ = false; + nameLike_ = ""; + nameLikeIsSet_ = false; + accessSiteIsSet_ = false; + geipPoolNameIsSet_ = false; + ispIsSet_ = false; + ipVersionIsSet_ = false; + ipAddressIsSet_ = false; + ipv6AddressIsSet_ = false; + freezenIsSet_ = false; + pollutedIsSet_ = false; + internetBandwidthIsNullIsSet_ = false; + gcbBandwidthIsNullIsSet_ = false; + statusIsSet_ = false; + associateInstanceInfoRegionIsSet_ = false; + associateInstanceInfoPublicBorderGroupIsSet_ = false; + associateInstanceInfoInstanceSiteIsSet_ = false; + associateInstanceInfoInstanceTypeIsSet_ = false; + associateInstanceInfoInstanceIdIsSet_ = false; + associateInstanceInfoProjectIdIsSet_ = false; + enterpriseProjectIdIsSet_ = false; + tagsIsSet_ = false; +} + +CountGlobalEipsRequest::~CountGlobalEipsRequest() = default; + +void CountGlobalEipsRequest::validate() +{ +} + +web::json::value CountGlobalEipsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(nameLikeIsSet_) { + val[utility::conversions::to_string_t("name_like")] = ModelBase::toJson(nameLike_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(ipv6AddressIsSet_) { + val[utility::conversions::to_string_t("ipv6_address")] = ModelBase::toJson(ipv6Address_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(pollutedIsSet_) { + val[utility::conversions::to_string_t("polluted")] = ModelBase::toJson(polluted_); + } + if(internetBandwidthIsNullIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_is_null")] = ModelBase::toJson(internetBandwidthIsNull_); + } + if(gcbBandwidthIsNullIsSet_) { + val[utility::conversions::to_string_t("gcb_bandwidth_is_null")] = ModelBase::toJson(gcbBandwidthIsNull_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(associateInstanceInfoRegionIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.region")] = ModelBase::toJson(associateInstanceInfoRegion_); + } + if(associateInstanceInfoPublicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.public_border_group")] = ModelBase::toJson(associateInstanceInfoPublicBorderGroup_); + } + if(associateInstanceInfoInstanceSiteIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.instance_site")] = ModelBase::toJson(associateInstanceInfoInstanceSite_); + } + if(associateInstanceInfoInstanceTypeIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.instance_type")] = ModelBase::toJson(associateInstanceInfoInstanceType_); + } + if(associateInstanceInfoInstanceIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.instance_id")] = ModelBase::toJson(associateInstanceInfoInstanceId_); + } + if(associateInstanceInfoProjectIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.project_id")] = ModelBase::toJson(associateInstanceInfoProjectId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool CountGlobalEipsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name_like"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name_like")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNameLike(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ipv6_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_address")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpv6Address(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("polluted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("polluted")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPolluted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_is_null"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_is_null")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthIsNull(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcb_bandwidth_is_null"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcb_bandwidth_is_null")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbBandwidthIsNull(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.region")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.public_border_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.instance_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.instance_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoInstanceSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.instance_type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.instance_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::vector& CountGlobalEipsRequest::getId() +{ + return id_; +} + +void CountGlobalEipsRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CountGlobalEipsRequest::idIsSet() const +{ + return idIsSet_; +} + +void CountGlobalEipsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getInternetBandwidthId() +{ + return internetBandwidthId_; +} + +void CountGlobalEipsRequest::setInternetBandwidthId(const std::vector& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool CountGlobalEipsRequest::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void CountGlobalEipsRequest::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getName() +{ + return name_; +} + +void CountGlobalEipsRequest::setName(const std::vector& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CountGlobalEipsRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void CountGlobalEipsRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string CountGlobalEipsRequest::getNameLike() const +{ + return nameLike_; +} + +void CountGlobalEipsRequest::setNameLike(const std::string& value) +{ + nameLike_ = value; + nameLikeIsSet_ = true; +} + +bool CountGlobalEipsRequest::nameLikeIsSet() const +{ + return nameLikeIsSet_; +} + +void CountGlobalEipsRequest::unsetnameLike() +{ + nameLikeIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getAccessSite() +{ + return accessSite_; +} + +void CountGlobalEipsRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool CountGlobalEipsRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void CountGlobalEipsRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getGeipPoolName() +{ + return geipPoolName_; +} + +void CountGlobalEipsRequest::setGeipPoolName(const std::vector& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool CountGlobalEipsRequest::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void CountGlobalEipsRequest::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getIsp() +{ + return isp_; +} + +void CountGlobalEipsRequest::setIsp(const std::vector& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool CountGlobalEipsRequest::ispIsSet() const +{ + return ispIsSet_; +} + +void CountGlobalEipsRequest::unsetisp() +{ + ispIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getIpVersion() +{ + return ipVersion_; +} + +void CountGlobalEipsRequest::setIpVersion(std::vector value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool CountGlobalEipsRequest::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void CountGlobalEipsRequest::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getIpAddress() +{ + return ipAddress_; +} + +void CountGlobalEipsRequest::setIpAddress(const std::vector& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool CountGlobalEipsRequest::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void CountGlobalEipsRequest::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getIpv6Address() +{ + return ipv6Address_; +} + +void CountGlobalEipsRequest::setIpv6Address(const std::vector& value) +{ + ipv6Address_ = value; + ipv6AddressIsSet_ = true; +} + +bool CountGlobalEipsRequest::ipv6AddressIsSet() const +{ + return ipv6AddressIsSet_; +} + +void CountGlobalEipsRequest::unsetipv6Address() +{ + ipv6AddressIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getFreezen() +{ + return freezen_; +} + +void CountGlobalEipsRequest::setFreezen(std::vector value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool CountGlobalEipsRequest::freezenIsSet() const +{ + return freezenIsSet_; +} + +void CountGlobalEipsRequest::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getPolluted() +{ + return polluted_; +} + +void CountGlobalEipsRequest::setPolluted(std::vector value) +{ + polluted_ = value; + pollutedIsSet_ = true; +} + +bool CountGlobalEipsRequest::pollutedIsSet() const +{ + return pollutedIsSet_; +} + +void CountGlobalEipsRequest::unsetpolluted() +{ + pollutedIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getInternetBandwidthIsNull() +{ + return internetBandwidthIsNull_; +} + +void CountGlobalEipsRequest::setInternetBandwidthIsNull(std::vector value) +{ + internetBandwidthIsNull_ = value; + internetBandwidthIsNullIsSet_ = true; +} + +bool CountGlobalEipsRequest::internetBandwidthIsNullIsSet() const +{ + return internetBandwidthIsNullIsSet_; +} + +void CountGlobalEipsRequest::unsetinternetBandwidthIsNull() +{ + internetBandwidthIsNullIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getGcbBandwidthIsNull() +{ + return gcbBandwidthIsNull_; +} + +void CountGlobalEipsRequest::setGcbBandwidthIsNull(std::vector value) +{ + gcbBandwidthIsNull_ = value; + gcbBandwidthIsNullIsSet_ = true; +} + +bool CountGlobalEipsRequest::gcbBandwidthIsNullIsSet() const +{ + return gcbBandwidthIsNullIsSet_; +} + +void CountGlobalEipsRequest::unsetgcbBandwidthIsNull() +{ + gcbBandwidthIsNullIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getStatus() +{ + return status_; +} + +void CountGlobalEipsRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool CountGlobalEipsRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void CountGlobalEipsRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getAssociateInstanceInfoRegion() +{ + return associateInstanceInfoRegion_; +} + +void CountGlobalEipsRequest::setAssociateInstanceInfoRegion(const std::vector& value) +{ + associateInstanceInfoRegion_ = value; + associateInstanceInfoRegionIsSet_ = true; +} + +bool CountGlobalEipsRequest::associateInstanceInfoRegionIsSet() const +{ + return associateInstanceInfoRegionIsSet_; +} + +void CountGlobalEipsRequest::unsetassociateInstanceInfoRegion() +{ + associateInstanceInfoRegionIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getAssociateInstanceInfoPublicBorderGroup() +{ + return associateInstanceInfoPublicBorderGroup_; +} + +void CountGlobalEipsRequest::setAssociateInstanceInfoPublicBorderGroup(const std::vector& value) +{ + associateInstanceInfoPublicBorderGroup_ = value; + associateInstanceInfoPublicBorderGroupIsSet_ = true; +} + +bool CountGlobalEipsRequest::associateInstanceInfoPublicBorderGroupIsSet() const +{ + return associateInstanceInfoPublicBorderGroupIsSet_; +} + +void CountGlobalEipsRequest::unsetassociateInstanceInfoPublicBorderGroup() +{ + associateInstanceInfoPublicBorderGroupIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getAssociateInstanceInfoInstanceSite() +{ + return associateInstanceInfoInstanceSite_; +} + +void CountGlobalEipsRequest::setAssociateInstanceInfoInstanceSite(const std::vector& value) +{ + associateInstanceInfoInstanceSite_ = value; + associateInstanceInfoInstanceSiteIsSet_ = true; +} + +bool CountGlobalEipsRequest::associateInstanceInfoInstanceSiteIsSet() const +{ + return associateInstanceInfoInstanceSiteIsSet_; +} + +void CountGlobalEipsRequest::unsetassociateInstanceInfoInstanceSite() +{ + associateInstanceInfoInstanceSiteIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getAssociateInstanceInfoInstanceType() +{ + return associateInstanceInfoInstanceType_; +} + +void CountGlobalEipsRequest::setAssociateInstanceInfoInstanceType(const std::vector& value) +{ + associateInstanceInfoInstanceType_ = value; + associateInstanceInfoInstanceTypeIsSet_ = true; +} + +bool CountGlobalEipsRequest::associateInstanceInfoInstanceTypeIsSet() const +{ + return associateInstanceInfoInstanceTypeIsSet_; +} + +void CountGlobalEipsRequest::unsetassociateInstanceInfoInstanceType() +{ + associateInstanceInfoInstanceTypeIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getAssociateInstanceInfoInstanceId() +{ + return associateInstanceInfoInstanceId_; +} + +void CountGlobalEipsRequest::setAssociateInstanceInfoInstanceId(const std::vector& value) +{ + associateInstanceInfoInstanceId_ = value; + associateInstanceInfoInstanceIdIsSet_ = true; +} + +bool CountGlobalEipsRequest::associateInstanceInfoInstanceIdIsSet() const +{ + return associateInstanceInfoInstanceIdIsSet_; +} + +void CountGlobalEipsRequest::unsetassociateInstanceInfoInstanceId() +{ + associateInstanceInfoInstanceIdIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getAssociateInstanceInfoProjectId() +{ + return associateInstanceInfoProjectId_; +} + +void CountGlobalEipsRequest::setAssociateInstanceInfoProjectId(const std::vector& value) +{ + associateInstanceInfoProjectId_ = value; + associateInstanceInfoProjectIdIsSet_ = true; +} + +bool CountGlobalEipsRequest::associateInstanceInfoProjectIdIsSet() const +{ + return associateInstanceInfoProjectIdIsSet_; +} + +void CountGlobalEipsRequest::unsetassociateInstanceInfoProjectId() +{ + associateInstanceInfoProjectIdIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getEnterpriseProjectId() +{ + return enterpriseProjectId_; +} + +void CountGlobalEipsRequest::setEnterpriseProjectId(const std::vector& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CountGlobalEipsRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CountGlobalEipsRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::vector& CountGlobalEipsRequest::getTags() +{ + return tags_; +} + +void CountGlobalEipsRequest::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CountGlobalEipsRequest::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CountGlobalEipsRequest::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountGlobalEipsResponse.cpp b/geip/src/v3/model/CountGlobalEipsResponse.cpp new file mode 100644 index 000000000..a40bc0bf1 --- /dev/null +++ b/geip/src/v3/model/CountGlobalEipsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/CountGlobalEipsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountGlobalEipsResponse::CountGlobalEipsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipsIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +CountGlobalEipsResponse::~CountGlobalEipsResponse() = default; + +void CountGlobalEipsResponse::validate() +{ +} + +web::json::value CountGlobalEipsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipsIsSet_) { + val[utility::conversions::to_string_t("global_eips")] = ModelBase::toJson(globalEips_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool CountGlobalEipsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eips")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEips(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string CountGlobalEipsResponse::getRequestId() const +{ + return requestId_; +} + +void CountGlobalEipsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool CountGlobalEipsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void CountGlobalEipsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& CountGlobalEipsResponse::getGlobalEips() +{ + return globalEips_; +} + +void CountGlobalEipsResponse::setGlobalEips(const std::vector& value) +{ + globalEips_ = value; + globalEipsIsSet_ = true; +} + +bool CountGlobalEipsResponse::globalEipsIsSet() const +{ + return globalEipsIsSet_; +} + +void CountGlobalEipsResponse::unsetglobalEips() +{ + globalEipsIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info CountGlobalEipsResponse::getPageInfo() const +{ + return pageInfo_; +} + +void CountGlobalEipsResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool CountGlobalEipsResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void CountGlobalEipsResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string CountGlobalEipsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void CountGlobalEipsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool CountGlobalEipsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void CountGlobalEipsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountInternetBandwidthRequest.cpp b/geip/src/v3/model/CountInternetBandwidthRequest.cpp new file mode 100644 index 000000000..57c2ac637 --- /dev/null +++ b/geip/src/v3/model/CountInternetBandwidthRequest.cpp @@ -0,0 +1,317 @@ + + +#include "huaweicloud/geip/v3/model/CountInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountInternetBandwidthRequest::CountInternetBandwidthRequest() +{ + idIsSet_ = false; + sizeIsSet_ = false; + nameIsSet_ = false; + nameLike_ = ""; + nameLikeIsSet_ = false; + accessSiteIsSet_ = false; + statusIsSet_ = false; + enterpriseProjectIdIsSet_ = false; + tagsIsSet_ = false; +} + +CountInternetBandwidthRequest::~CountInternetBandwidthRequest() = default; + +void CountInternetBandwidthRequest::validate() +{ +} + +web::json::value CountInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(nameLikeIsSet_) { + val[utility::conversions::to_string_t("name_like")] = ModelBase::toJson(nameLike_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool CountInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name_like"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name_like")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNameLike(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::vector& CountInternetBandwidthRequest::getId() +{ + return id_; +} + +void CountInternetBandwidthRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CountInternetBandwidthRequest::idIsSet() const +{ + return idIsSet_; +} + +void CountInternetBandwidthRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& CountInternetBandwidthRequest::getSize() +{ + return size_; +} + +void CountInternetBandwidthRequest::setSize(std::vector value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool CountInternetBandwidthRequest::sizeIsSet() const +{ + return sizeIsSet_; +} + +void CountInternetBandwidthRequest::unsetsize() +{ + sizeIsSet_ = false; +} + +std::vector& CountInternetBandwidthRequest::getName() +{ + return name_; +} + +void CountInternetBandwidthRequest::setName(const std::vector& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CountInternetBandwidthRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void CountInternetBandwidthRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string CountInternetBandwidthRequest::getNameLike() const +{ + return nameLike_; +} + +void CountInternetBandwidthRequest::setNameLike(const std::string& value) +{ + nameLike_ = value; + nameLikeIsSet_ = true; +} + +bool CountInternetBandwidthRequest::nameLikeIsSet() const +{ + return nameLikeIsSet_; +} + +void CountInternetBandwidthRequest::unsetnameLike() +{ + nameLikeIsSet_ = false; +} + +std::vector& CountInternetBandwidthRequest::getAccessSite() +{ + return accessSite_; +} + +void CountInternetBandwidthRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool CountInternetBandwidthRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void CountInternetBandwidthRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& CountInternetBandwidthRequest::getStatus() +{ + return status_; +} + +void CountInternetBandwidthRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool CountInternetBandwidthRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void CountInternetBandwidthRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& CountInternetBandwidthRequest::getEnterpriseProjectId() +{ + return enterpriseProjectId_; +} + +void CountInternetBandwidthRequest::setEnterpriseProjectId(const std::vector& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CountInternetBandwidthRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CountInternetBandwidthRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::vector& CountInternetBandwidthRequest::getTags() +{ + return tags_; +} + +void CountInternetBandwidthRequest::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CountInternetBandwidthRequest::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CountInternetBandwidthRequest::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountInternetBandwidthResponse.cpp b/geip/src/v3/model/CountInternetBandwidthResponse.cpp new file mode 100644 index 000000000..6796c3bc1 --- /dev/null +++ b/geip/src/v3/model/CountInternetBandwidthResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/CountInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountInternetBandwidthResponse::CountInternetBandwidthResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + internetBandwidthsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +CountInternetBandwidthResponse::~CountInternetBandwidthResponse() = default; + +void CountInternetBandwidthResponse::validate() +{ +} + +web::json::value CountInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(internetBandwidthsIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidths")] = ModelBase::toJson(internetBandwidths_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool CountInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidths"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidths")); + if(!fieldValue.is_null()) + { + CountInternetBandwidths refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidths(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string CountInternetBandwidthResponse::getRequestId() const +{ + return requestId_; +} + +void CountInternetBandwidthResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool CountInternetBandwidthResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void CountInternetBandwidthResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +CountInternetBandwidths CountInternetBandwidthResponse::getInternetBandwidths() const +{ + return internetBandwidths_; +} + +void CountInternetBandwidthResponse::setInternetBandwidths(const CountInternetBandwidths& value) +{ + internetBandwidths_ = value; + internetBandwidthsIsSet_ = true; +} + +bool CountInternetBandwidthResponse::internetBandwidthsIsSet() const +{ + return internetBandwidthsIsSet_; +} + +void CountInternetBandwidthResponse::unsetinternetBandwidths() +{ + internetBandwidthsIsSet_ = false; +} + +std::string CountInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void CountInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool CountInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void CountInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CountInternetBandwidths.cpp b/geip/src/v3/model/CountInternetBandwidths.cpp new file mode 100644 index 000000000..c8dedb1b8 --- /dev/null +++ b/geip/src/v3/model/CountInternetBandwidths.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/CountInternetBandwidths.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CountInternetBandwidths::CountInternetBandwidths() +{ + count_ = 0; + countIsSet_ = false; +} + +CountInternetBandwidths::~CountInternetBandwidths() = default; + +void CountInternetBandwidths::validate() +{ +} + +web::json::value CountInternetBandwidths::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(countIsSet_) { + val[utility::conversions::to_string_t("count")] = ModelBase::toJson(count_); + } + + return val; +} +bool CountInternetBandwidths::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCount(refVal); + } + } + return ok; +} + + +int32_t CountInternetBandwidths::getCount() const +{ + return count_; +} + +void CountInternetBandwidths::setCount(int32_t value) +{ + count_ = value; + countIsSet_ = true; +} + +bool CountInternetBandwidths::countIsSet() const +{ + return countIsSet_; +} + +void CountInternetBandwidths::unsetcount() +{ + countIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEip.cpp b/geip/src/v3/model/CreateGlobalEip.cpp new file mode 100644 index 000000000..20758ec37 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEip.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEip::CreateGlobalEip() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +CreateGlobalEip::~CreateGlobalEip() = default; + +void CreateGlobalEip::validate() +{ +} + +web::json::value CreateGlobalEip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + + return val; +} +bool CreateGlobalEip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + return ok; +} + + +std::string CreateGlobalEip::getId() const +{ + return id_; +} + +void CreateGlobalEip::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CreateGlobalEip::idIsSet() const +{ + return idIsSet_; +} + +void CreateGlobalEip::unsetid() +{ + idIsSet_ = false; +} + +std::string CreateGlobalEip::getName() const +{ + return name_; +} + +void CreateGlobalEip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateGlobalEip::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateGlobalEip::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipRequest.cpp b/geip/src/v3/model/CreateGlobalEipRequest.cpp new file mode 100644 index 000000000..feb5d9f93 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipRequest::CreateGlobalEipRequest() +{ + bodyIsSet_ = false; +} + +CreateGlobalEipRequest::~CreateGlobalEipRequest() = default; + +void CreateGlobalEipRequest::validate() +{ +} + +web::json::value CreateGlobalEipRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateGlobalEipRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateGlobalEipRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +CreateGlobalEipRequestBody CreateGlobalEipRequest::getBody() const +{ + return body_; +} + +void CreateGlobalEipRequest::setBody(const CreateGlobalEipRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateGlobalEipRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateGlobalEipRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipRequestBody.cpp b/geip/src/v3/model/CreateGlobalEipRequestBody.cpp new file mode 100644 index 000000000..23a1fa731 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipRequestBody.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipRequestBody::CreateGlobalEipRequestBody() +{ + dryRun_ = false; + dryRunIsSet_ = false; + globalEipIsSet_ = false; +} + +CreateGlobalEipRequestBody::~CreateGlobalEipRequestBody() = default; + +void CreateGlobalEipRequestBody::validate() +{ +} + +web::json::value CreateGlobalEipRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dryRunIsSet_) { + val[utility::conversions::to_string_t("dry_run")] = ModelBase::toJson(dryRun_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + + return val; +} +bool CreateGlobalEipRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dry_run"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dry_run")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDryRun(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + CreateGlobalEipRequestBody_global_eip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + return ok; +} + + +bool CreateGlobalEipRequestBody::isDryRun() const +{ + return dryRun_; +} + +void CreateGlobalEipRequestBody::setDryRun(bool value) +{ + dryRun_ = value; + dryRunIsSet_ = true; +} + +bool CreateGlobalEipRequestBody::dryRunIsSet() const +{ + return dryRunIsSet_; +} + +void CreateGlobalEipRequestBody::unsetdryRun() +{ + dryRunIsSet_ = false; +} + +CreateGlobalEipRequestBody_global_eip CreateGlobalEipRequestBody::getGlobalEip() const +{ + return globalEip_; +} + +void CreateGlobalEipRequestBody::setGlobalEip(const CreateGlobalEipRequestBody_global_eip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool CreateGlobalEipRequestBody::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void CreateGlobalEipRequestBody::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipRequestBody_global_eip.cpp b/geip/src/v3/model/CreateGlobalEipRequestBody_global_eip.cpp new file mode 100644 index 000000000..51b9bbfee --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipRequestBody_global_eip.cpp @@ -0,0 +1,288 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipRequestBody_global_eip::CreateGlobalEipRequestBody_global_eip() +{ + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + internetBandwidthId_ = ""; + internetBandwidthIdIsSet_ = false; + tagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +CreateGlobalEipRequestBody_global_eip::~CreateGlobalEipRequestBody_global_eip() = default; + +void CreateGlobalEipRequestBody_global_eip::validate() +{ +} + +web::json::value CreateGlobalEipRequestBody_global_eip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool CreateGlobalEipRequestBody_global_eip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string CreateGlobalEipRequestBody_global_eip::getName() const +{ + return name_; +} + +void CreateGlobalEipRequestBody_global_eip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip::unsetname() +{ + nameIsSet_ = false; +} + +std::string CreateGlobalEipRequestBody_global_eip::getDescription() const +{ + return description_; +} + +void CreateGlobalEipRequestBody_global_eip::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string CreateGlobalEipRequestBody_global_eip::getGeipPoolName() const +{ + return geipPoolName_; +} + +void CreateGlobalEipRequestBody_global_eip::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string CreateGlobalEipRequestBody_global_eip::getAccessSite() const +{ + return accessSite_; +} + +void CreateGlobalEipRequestBody_global_eip::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string CreateGlobalEipRequestBody_global_eip::getInternetBandwidthId() const +{ + return internetBandwidthId_; +} + +void CreateGlobalEipRequestBody_global_eip::setInternetBandwidthId(const std::string& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +std::vector& CreateGlobalEipRequestBody_global_eip::getTags() +{ + return tags_; +} + +void CreateGlobalEipRequestBody_global_eip::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip::unsettags() +{ + tagsIsSet_ = false; +} + +std::string CreateGlobalEipRequestBody_global_eip::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void CreateGlobalEipRequestBody_global_eip::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipRequestBody_global_eip_tags.cpp b/geip/src/v3/model/CreateGlobalEipRequestBody_global_eip_tags.cpp new file mode 100644 index 000000000..6f9bc2dcc --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipRequestBody_global_eip_tags.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipRequestBody_global_eip_tags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipRequestBody_global_eip_tags::CreateGlobalEipRequestBody_global_eip_tags() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +CreateGlobalEipRequestBody_global_eip_tags::~CreateGlobalEipRequestBody_global_eip_tags() = default; + +void CreateGlobalEipRequestBody_global_eip_tags::validate() +{ +} + +web::json::value CreateGlobalEipRequestBody_global_eip_tags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool CreateGlobalEipRequestBody_global_eip_tags::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string CreateGlobalEipRequestBody_global_eip_tags::getKey() const +{ + return key_; +} + +void CreateGlobalEipRequestBody_global_eip_tags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip_tags::keyIsSet() const +{ + return keyIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip_tags::unsetkey() +{ + keyIsSet_ = false; +} + +std::string CreateGlobalEipRequestBody_global_eip_tags::getValue() const +{ + return value_; +} + +void CreateGlobalEipRequestBody_global_eip_tags::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool CreateGlobalEipRequestBody_global_eip_tags::valueIsSet() const +{ + return valueIsSet_; +} + +void CreateGlobalEipRequestBody_global_eip_tags::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipResponse.cpp b/geip/src/v3/model/CreateGlobalEipResponse.cpp new file mode 100644 index 000000000..7c7cdedb8 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipResponse::CreateGlobalEipResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; + globalEipIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +CreateGlobalEipResponse::~CreateGlobalEipResponse() = default; + +void CreateGlobalEipResponse::validate() +{ +} + +web::json::value CreateGlobalEipResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool CreateGlobalEipResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + CreateGlobalEip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string CreateGlobalEipResponse::getJobId() const +{ + return jobId_; +} + +void CreateGlobalEipResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool CreateGlobalEipResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void CreateGlobalEipResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +CreateGlobalEip CreateGlobalEipResponse::getGlobalEip() const +{ + return globalEip_; +} + +void CreateGlobalEipResponse::setGlobalEip(const CreateGlobalEip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool CreateGlobalEipResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void CreateGlobalEipResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string CreateGlobalEipResponse::getXRequestId() const +{ + return xRequestId_; +} + +void CreateGlobalEipResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool CreateGlobalEipResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void CreateGlobalEipResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipSegmentRequest.cpp b/geip/src/v3/model/CreateGlobalEipSegmentRequest.cpp new file mode 100644 index 000000000..660ee8276 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipSegmentRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipSegmentRequest::CreateGlobalEipSegmentRequest() +{ + bodyIsSet_ = false; +} + +CreateGlobalEipSegmentRequest::~CreateGlobalEipSegmentRequest() = default; + +void CreateGlobalEipSegmentRequest::validate() +{ +} + +web::json::value CreateGlobalEipSegmentRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateGlobalEipSegmentRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateGlobalEipSegmentRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +CreateGlobalEipSegmentRequestBody CreateGlobalEipSegmentRequest::getBody() const +{ + return body_; +} + +void CreateGlobalEipSegmentRequest::setBody(const CreateGlobalEipSegmentRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateGlobalEipSegmentRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipSegmentRequestBody.cpp b/geip/src/v3/model/CreateGlobalEipSegmentRequestBody.cpp new file mode 100644 index 000000000..886358ddd --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipSegmentRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipSegmentRequestBody::CreateGlobalEipSegmentRequestBody() +{ + globalEipSegmentIsSet_ = false; +} + +CreateGlobalEipSegmentRequestBody::~CreateGlobalEipSegmentRequestBody() = default; + +void CreateGlobalEipSegmentRequestBody::validate() +{ +} + +web::json::value CreateGlobalEipSegmentRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + + return val; +} +bool CreateGlobalEipSegmentRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + CreateGlobalEipSegmentRequestBody_global_eip_segment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + return ok; +} + + +CreateGlobalEipSegmentRequestBody_global_eip_segment CreateGlobalEipSegmentRequestBody::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void CreateGlobalEipSegmentRequestBody::setGlobalEipSegment(const CreateGlobalEipSegmentRequestBody_global_eip_segment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void CreateGlobalEipSegmentRequestBody::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment.cpp b/geip/src/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment.cpp new file mode 100644 index 000000000..fe9f15b93 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment.cpp @@ -0,0 +1,322 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipSegmentRequestBody_global_eip_segment::CreateGlobalEipSegmentRequestBody_global_eip_segment() +{ + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + mask_ = 0; + maskIsSet_ = false; + internetBandwidthIsSet_ = false; + tagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +CreateGlobalEipSegmentRequestBody_global_eip_segment::~CreateGlobalEipSegmentRequestBody_global_eip_segment() = default; + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::validate() +{ +} + +web::json::value CreateGlobalEipSegmentRequestBody_global_eip_segment::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(maskIsSet_) { + val[utility::conversions::to_string_t("mask")] = ModelBase::toJson(mask_); + } + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("mask"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mask")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMask(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment::getName() const +{ + return name_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsetname() +{ + nameIsSet_ = false; +} + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment::getDescription() const +{ + return description_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment::getGeipPoolName() const +{ + return geipPoolName_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment::getAccessSite() const +{ + return accessSite_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t CreateGlobalEipSegmentRequestBody_global_eip_segment::getMask() const +{ + return mask_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setMask(int32_t value) +{ + mask_ = value; + maskIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::maskIsSet() const +{ + return maskIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsetmask() +{ + maskIsSet_ = false; +} + +CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth CreateGlobalEipSegmentRequestBody_global_eip_segment::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setInternetBandwidth(const CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +std::vector& CreateGlobalEipSegmentRequestBody_global_eip_segment::getTags() +{ + return tags_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsettags() +{ + tagsIsSet_ = false; +} + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth.cpp b/geip/src/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth.cpp new file mode 100644 index 000000000..195414582 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth.cpp @@ -0,0 +1,288 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth() +{ + id_ = ""; + idIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + tagsIsSet_ = false; + type_ = ""; + typeIsSet_ = false; +} + +CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::~CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth() = default; + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::validate() +{ +} + +web::json::value CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::getId() const +{ + return id_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::idIsSet() const +{ + return idIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::unsetid() +{ + idIsSet_ = false; +} + +int32_t CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::getSize() const +{ + return size_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::getName() const +{ + return name_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::unsetname() +{ + nameIsSet_ = false; +} + +std::vector& CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::getTags() +{ + return tags_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::unsettags() +{ + tagsIsSet_ = false; +} + +std::string CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::getType() const +{ + return type_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::typeIsSet() const +{ + return typeIsSet_; +} + +void CreateGlobalEipSegmentRequestBody_global_eip_segment_internet_bandwidth::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateGlobalEipSegmentResponse.cpp b/geip/src/v3/model/CreateGlobalEipSegmentResponse.cpp new file mode 100644 index 000000000..6fce59c82 --- /dev/null +++ b/geip/src/v3/model/CreateGlobalEipSegmentResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/CreateGlobalEipSegmentResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateGlobalEipSegmentResponse::CreateGlobalEipSegmentResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; + globalEipSegmentIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +CreateGlobalEipSegmentResponse::~CreateGlobalEipSegmentResponse() = default; + +void CreateGlobalEipSegmentResponse::validate() +{ +} + +web::json::value CreateGlobalEipSegmentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool CreateGlobalEipSegmentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + ShortGlobalEipSegment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string CreateGlobalEipSegmentResponse::getJobId() const +{ + return jobId_; +} + +void CreateGlobalEipSegmentResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool CreateGlobalEipSegmentResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void CreateGlobalEipSegmentResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +ShortGlobalEipSegment CreateGlobalEipSegmentResponse::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void CreateGlobalEipSegmentResponse::setGlobalEipSegment(const ShortGlobalEipSegment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool CreateGlobalEipSegmentResponse::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void CreateGlobalEipSegmentResponse::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +std::string CreateGlobalEipSegmentResponse::getXRequestId() const +{ + return xRequestId_; +} + +void CreateGlobalEipSegmentResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool CreateGlobalEipSegmentResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void CreateGlobalEipSegmentResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateInternetBandwidth.cpp b/geip/src/v3/model/CreateInternetBandwidth.cpp new file mode 100644 index 000000000..c83ba67c4 --- /dev/null +++ b/geip/src/v3/model/CreateInternetBandwidth.cpp @@ -0,0 +1,776 @@ + + +#include "huaweicloud/geip/v3/model/CreateInternetBandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateInternetBandwidth::CreateInternetBandwidth() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + ratio95peak_ = 0; + ratio95peakIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + billingInfo_ = ""; + billingInfoIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + lockInfosIsSet_ = false; +} + +CreateInternetBandwidth::~CreateInternetBandwidth() = default; + +void CreateInternetBandwidth::validate() +{ +} + +web::json::value CreateInternetBandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(ratio95peakIsSet_) { + val[utility::conversions::to_string_t("ratio_95peak")] = ModelBase::toJson(ratio95peak_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(billingInfoIsSet_) { + val[utility::conversions::to_string_t("billing_info")] = ModelBase::toJson(billingInfo_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(lockInfosIsSet_) { + val[utility::conversions::to_string_t("lock_infos")] = ModelBase::toJson(lockInfos_); + } + + return val; +} +bool CreateInternetBandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ratio_95peak"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ratio_95peak")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRatio95peak(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("billing_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("billing_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBillingInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lock_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lock_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLockInfos(refVal); + } + } + return ok; +} + + +std::string CreateInternetBandwidth::getId() const +{ + return id_; +} + +void CreateInternetBandwidth::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CreateInternetBandwidth::idIsSet() const +{ + return idIsSet_; +} + +void CreateInternetBandwidth::unsetid() +{ + idIsSet_ = false; +} + +std::string CreateInternetBandwidth::getName() const +{ + return name_; +} + +void CreateInternetBandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateInternetBandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateInternetBandwidth::unsetname() +{ + nameIsSet_ = false; +} + +int32_t CreateInternetBandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void CreateInternetBandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool CreateInternetBandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void CreateInternetBandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string CreateInternetBandwidth::getIsp() const +{ + return isp_; +} + +void CreateInternetBandwidth::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool CreateInternetBandwidth::ispIsSet() const +{ + return ispIsSet_; +} + +void CreateInternetBandwidth::unsetisp() +{ + ispIsSet_ = false; +} + +std::string CreateInternetBandwidth::getAccessSite() const +{ + return accessSite_; +} + +void CreateInternetBandwidth::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool CreateInternetBandwidth::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void CreateInternetBandwidth::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t CreateInternetBandwidth::getSize() const +{ + return size_; +} + +void CreateInternetBandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool CreateInternetBandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void CreateInternetBandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string CreateInternetBandwidth::getDescription() const +{ + return description_; +} + +void CreateInternetBandwidth::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool CreateInternetBandwidth::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void CreateInternetBandwidth::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string CreateInternetBandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void CreateInternetBandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool CreateInternetBandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void CreateInternetBandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t CreateInternetBandwidth::getRatio95peak() const +{ + return ratio95peak_; +} + +void CreateInternetBandwidth::setRatio95peak(int32_t value) +{ + ratio95peak_ = value; + ratio95peakIsSet_ = true; +} + +bool CreateInternetBandwidth::ratio95peakIsSet() const +{ + return ratio95peakIsSet_; +} + +void CreateInternetBandwidth::unsetratio95peak() +{ + ratio95peakIsSet_ = false; +} + +std::string CreateInternetBandwidth::getFreezenInfo() const +{ + return freezenInfo_; +} + +void CreateInternetBandwidth::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool CreateInternetBandwidth::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void CreateInternetBandwidth::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +std::string CreateInternetBandwidth::getDomainId() const +{ + return domainId_; +} + +void CreateInternetBandwidth::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool CreateInternetBandwidth::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void CreateInternetBandwidth::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string CreateInternetBandwidth::getBillingInfo() const +{ + return billingInfo_; +} + +void CreateInternetBandwidth::setBillingInfo(const std::string& value) +{ + billingInfo_ = value; + billingInfoIsSet_ = true; +} + +bool CreateInternetBandwidth::billingInfoIsSet() const +{ + return billingInfoIsSet_; +} + +void CreateInternetBandwidth::unsetbillingInfo() +{ + billingInfoIsSet_ = false; +} + +std::string CreateInternetBandwidth::getStatus() const +{ + return status_; +} + +void CreateInternetBandwidth::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool CreateInternetBandwidth::statusIsSet() const +{ + return statusIsSet_; +} + +void CreateInternetBandwidth::unsetstatus() +{ + statusIsSet_ = false; +} + +bool CreateInternetBandwidth::isIsPrePaid() const +{ + return isPrePaid_; +} + +void CreateInternetBandwidth::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool CreateInternetBandwidth::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void CreateInternetBandwidth::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +utility::datetime CreateInternetBandwidth::getCreatedAt() const +{ + return createdAt_; +} + +void CreateInternetBandwidth::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool CreateInternetBandwidth::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void CreateInternetBandwidth::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime CreateInternetBandwidth::getUpdatedAt() const +{ + return updatedAt_; +} + +void CreateInternetBandwidth::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool CreateInternetBandwidth::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void CreateInternetBandwidth::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +std::vector& CreateInternetBandwidth::getTags() +{ + return tags_; +} + +void CreateInternetBandwidth::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateInternetBandwidth::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateInternetBandwidth::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& CreateInternetBandwidth::getSysTags() +{ + return sysTags_; +} + +void CreateInternetBandwidth::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool CreateInternetBandwidth::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void CreateInternetBandwidth::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string CreateInternetBandwidth::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void CreateInternetBandwidth::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CreateInternetBandwidth::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CreateInternetBandwidth::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string CreateInternetBandwidth::getType() const +{ + return type_; +} + +void CreateInternetBandwidth::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool CreateInternetBandwidth::typeIsSet() const +{ + return typeIsSet_; +} + +void CreateInternetBandwidth::unsettype() +{ + typeIsSet_ = false; +} + +std::vector& CreateInternetBandwidth::getLockInfos() +{ + return lockInfos_; +} + +void CreateInternetBandwidth::setLockInfos(const std::vector& value) +{ + lockInfos_ = value; + lockInfosIsSet_ = true; +} + +bool CreateInternetBandwidth::lockInfosIsSet() const +{ + return lockInfosIsSet_; +} + +void CreateInternetBandwidth::unsetlockInfos() +{ + lockInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateInternetBandwidthRequest.cpp b/geip/src/v3/model/CreateInternetBandwidthRequest.cpp new file mode 100644 index 000000000..6cf341cb2 --- /dev/null +++ b/geip/src/v3/model/CreateInternetBandwidthRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/CreateInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateInternetBandwidthRequest::CreateInternetBandwidthRequest() +{ + bodyIsSet_ = false; +} + +CreateInternetBandwidthRequest::~CreateInternetBandwidthRequest() = default; + +void CreateInternetBandwidthRequest::validate() +{ +} + +web::json::value CreateInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateInternetBandwidthRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +CreateInternetBandwidthRequestBody CreateInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void CreateInternetBandwidthRequest::setBody(const CreateInternetBandwidthRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateInternetBandwidthRequestBody.cpp b/geip/src/v3/model/CreateInternetBandwidthRequestBody.cpp new file mode 100644 index 000000000..ebab02774 --- /dev/null +++ b/geip/src/v3/model/CreateInternetBandwidthRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateInternetBandwidthRequestBody::CreateInternetBandwidthRequestBody() +{ + internetBandwidthIsSet_ = false; +} + +CreateInternetBandwidthRequestBody::~CreateInternetBandwidthRequestBody() = default; + +void CreateInternetBandwidthRequestBody::validate() +{ +} + +web::json::value CreateInternetBandwidthRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + + return val; +} +bool CreateInternetBandwidthRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + CreateInternetBandwidthRequestBody_internet_bandwidth refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + return ok; +} + + +CreateInternetBandwidthRequestBody_internet_bandwidth CreateInternetBandwidthRequestBody::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void CreateInternetBandwidthRequestBody::setInternetBandwidth(const CreateInternetBandwidthRequestBody_internet_bandwidth& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void CreateInternetBandwidthRequestBody::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateInternetBandwidthRequestBody_internet_bandwidth.cpp b/geip/src/v3/model/CreateInternetBandwidthRequestBody_internet_bandwidth.cpp new file mode 100644 index 000000000..fc0fb76ce --- /dev/null +++ b/geip/src/v3/model/CreateInternetBandwidthRequestBody_internet_bandwidth.cpp @@ -0,0 +1,393 @@ + + +#include "huaweicloud/geip/v3/model/CreateInternetBandwidthRequestBody_internet_bandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateInternetBandwidthRequestBody_internet_bandwidth::CreateInternetBandwidthRequestBody_internet_bandwidth() +{ + ingressSize_ = 0; + ingressSizeIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + tagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; +} + +CreateInternetBandwidthRequestBody_internet_bandwidth::~CreateInternetBandwidthRequestBody_internet_bandwidth() = default; + +void CreateInternetBandwidthRequestBody_internet_bandwidth::validate() +{ +} + +web::json::value CreateInternetBandwidthRequestBody_internet_bandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool CreateInternetBandwidthRequestBody_internet_bandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +int32_t CreateInternetBandwidthRequestBody_internet_bandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string CreateInternetBandwidthRequestBody_internet_bandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +std::string CreateInternetBandwidthRequestBody_internet_bandwidth::getIsp() const +{ + return isp_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::ispIsSet() const +{ + return ispIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetisp() +{ + ispIsSet_ = false; +} + +std::string CreateInternetBandwidthRequestBody_internet_bandwidth::getAccessSite() const +{ + return accessSite_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t CreateInternetBandwidthRequestBody_internet_bandwidth::getSize() const +{ + return size_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string CreateInternetBandwidthRequestBody_internet_bandwidth::getName() const +{ + return name_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetname() +{ + nameIsSet_ = false; +} + +std::string CreateInternetBandwidthRequestBody_internet_bandwidth::getDescription() const +{ + return description_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::vector& CreateInternetBandwidthRequestBody_internet_bandwidth::getTags() +{ + return tags_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsettags() +{ + tagsIsSet_ = false; +} + +std::string CreateInternetBandwidthRequestBody_internet_bandwidth::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string CreateInternetBandwidthRequestBody_internet_bandwidth::getType() const +{ + return type_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool CreateInternetBandwidthRequestBody_internet_bandwidth::typeIsSet() const +{ + return typeIsSet_; +} + +void CreateInternetBandwidthRequestBody_internet_bandwidth::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateInternetBandwidthResponse.cpp b/geip/src/v3/model/CreateInternetBandwidthResponse.cpp new file mode 100644 index 000000000..6cab5ba58 --- /dev/null +++ b/geip/src/v3/model/CreateInternetBandwidthResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/CreateInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateInternetBandwidthResponse::CreateInternetBandwidthResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + internetBandwidthIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +CreateInternetBandwidthResponse::~CreateInternetBandwidthResponse() = default; + +void CreateInternetBandwidthResponse::validate() +{ +} + +web::json::value CreateInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool CreateInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + CreateInternetBandwidth refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string CreateInternetBandwidthResponse::getRequestId() const +{ + return requestId_; +} + +void CreateInternetBandwidthResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool CreateInternetBandwidthResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void CreateInternetBandwidthResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +CreateInternetBandwidth CreateInternetBandwidthResponse::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void CreateInternetBandwidthResponse::setInternetBandwidth(const CreateInternetBandwidth& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool CreateInternetBandwidthResponse::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void CreateInternetBandwidthResponse::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +std::string CreateInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void CreateInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool CreateInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void CreateInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateTag.cpp b/geip/src/v3/model/CreateTag.cpp new file mode 100644 index 000000000..abe64a53f --- /dev/null +++ b/geip/src/v3/model/CreateTag.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/CreateTag.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateTag::CreateTag() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +CreateTag::~CreateTag() = default; + +void CreateTag::validate() +{ +} + +web::json::value CreateTag::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool CreateTag::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string CreateTag::getKey() const +{ + return key_; +} + +void CreateTag::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool CreateTag::keyIsSet() const +{ + return keyIsSet_; +} + +void CreateTag::unsetkey() +{ + keyIsSet_ = false; +} + +std::string CreateTag::getValue() const +{ + return value_; +} + +void CreateTag::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool CreateTag::valueIsSet() const +{ + return valueIsSet_; +} + +void CreateTag::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateUserDisclaimerRecord.cpp b/geip/src/v3/model/CreateUserDisclaimerRecord.cpp new file mode 100644 index 000000000..32b9362c5 --- /dev/null +++ b/geip/src/v3/model/CreateUserDisclaimerRecord.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/CreateUserDisclaimerRecord.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateUserDisclaimerRecord::CreateUserDisclaimerRecord() +{ + domainId_ = ""; + domainIdIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; +} + +CreateUserDisclaimerRecord::~CreateUserDisclaimerRecord() = default; + +void CreateUserDisclaimerRecord::validate() +{ +} + +web::json::value CreateUserDisclaimerRecord::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool CreateUserDisclaimerRecord::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string CreateUserDisclaimerRecord::getDomainId() const +{ + return domainId_; +} + +void CreateUserDisclaimerRecord::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool CreateUserDisclaimerRecord::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void CreateUserDisclaimerRecord::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +utility::datetime CreateUserDisclaimerRecord::getCreatedAt() const +{ + return createdAt_; +} + +void CreateUserDisclaimerRecord::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool CreateUserDisclaimerRecord::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void CreateUserDisclaimerRecord::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime CreateUserDisclaimerRecord::getUpdatedAt() const +{ + return updatedAt_; +} + +void CreateUserDisclaimerRecord::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool CreateUserDisclaimerRecord::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void CreateUserDisclaimerRecord::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateUserDisclaimerRequest.cpp b/geip/src/v3/model/CreateUserDisclaimerRequest.cpp new file mode 100644 index 000000000..62cefca8a --- /dev/null +++ b/geip/src/v3/model/CreateUserDisclaimerRequest.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/geip/v3/model/CreateUserDisclaimerRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateUserDisclaimerRequest::CreateUserDisclaimerRequest() +{ +} + +CreateUserDisclaimerRequest::~CreateUserDisclaimerRequest() = default; + +void CreateUserDisclaimerRequest::validate() +{ +} + +web::json::value CreateUserDisclaimerRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool CreateUserDisclaimerRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateUserDisclaimerResponse.cpp b/geip/src/v3/model/CreateUserDisclaimerResponse.cpp new file mode 100644 index 000000000..d204121c9 --- /dev/null +++ b/geip/src/v3/model/CreateUserDisclaimerResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/CreateUserDisclaimerResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateUserDisclaimerResponse::CreateUserDisclaimerResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + userDisclaimerRecordIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +CreateUserDisclaimerResponse::~CreateUserDisclaimerResponse() = default; + +void CreateUserDisclaimerResponse::validate() +{ +} + +web::json::value CreateUserDisclaimerResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(userDisclaimerRecordIsSet_) { + val[utility::conversions::to_string_t("user_disclaimer_record")] = ModelBase::toJson(userDisclaimerRecord_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool CreateUserDisclaimerResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("user_disclaimer_record"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_disclaimer_record")); + if(!fieldValue.is_null()) + { + CreateUserDisclaimerRecord refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserDisclaimerRecord(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string CreateUserDisclaimerResponse::getRequestId() const +{ + return requestId_; +} + +void CreateUserDisclaimerResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool CreateUserDisclaimerResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void CreateUserDisclaimerResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +CreateUserDisclaimerRecord CreateUserDisclaimerResponse::getUserDisclaimerRecord() const +{ + return userDisclaimerRecord_; +} + +void CreateUserDisclaimerResponse::setUserDisclaimerRecord(const CreateUserDisclaimerRecord& value) +{ + userDisclaimerRecord_ = value; + userDisclaimerRecordIsSet_ = true; +} + +bool CreateUserDisclaimerResponse::userDisclaimerRecordIsSet() const +{ + return userDisclaimerRecordIsSet_; +} + +void CreateUserDisclaimerResponse::unsetuserDisclaimerRecord() +{ + userDisclaimerRecordIsSet_ = false; +} + +std::string CreateUserDisclaimerResponse::getXRequestId() const +{ + return xRequestId_; +} + +void CreateUserDisclaimerResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool CreateUserDisclaimerResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void CreateUserDisclaimerResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateV2TagRequestBody.cpp b/geip/src/v3/model/CreateV2TagRequestBody.cpp new file mode 100644 index 000000000..b3d6c3621 --- /dev/null +++ b/geip/src/v3/model/CreateV2TagRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/CreateV2TagRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateV2TagRequestBody::CreateV2TagRequestBody() +{ + tagIsSet_ = false; +} + +CreateV2TagRequestBody::~CreateV2TagRequestBody() = default; + +void CreateV2TagRequestBody::validate() +{ +} + +web::json::value CreateV2TagRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagIsSet_) { + val[utility::conversions::to_string_t("tag")] = ModelBase::toJson(tag_); + } + + return val; +} +bool CreateV2TagRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tag"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tag")); + if(!fieldValue.is_null()) + { + CreateV2TagRequestBody_tag refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTag(refVal); + } + } + return ok; +} + + +CreateV2TagRequestBody_tag CreateV2TagRequestBody::getTag() const +{ + return tag_; +} + +void CreateV2TagRequestBody::setTag(const CreateV2TagRequestBody_tag& value) +{ + tag_ = value; + tagIsSet_ = true; +} + +bool CreateV2TagRequestBody::tagIsSet() const +{ + return tagIsSet_; +} + +void CreateV2TagRequestBody::unsettag() +{ + tagIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/CreateV2TagRequestBody_tag.cpp b/geip/src/v3/model/CreateV2TagRequestBody_tag.cpp new file mode 100644 index 000000000..785733911 --- /dev/null +++ b/geip/src/v3/model/CreateV2TagRequestBody_tag.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/CreateV2TagRequestBody_tag.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +CreateV2TagRequestBody_tag::CreateV2TagRequestBody_tag() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +CreateV2TagRequestBody_tag::~CreateV2TagRequestBody_tag() = default; + +void CreateV2TagRequestBody_tag::validate() +{ +} + +web::json::value CreateV2TagRequestBody_tag::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool CreateV2TagRequestBody_tag::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string CreateV2TagRequestBody_tag::getKey() const +{ + return key_; +} + +void CreateV2TagRequestBody_tag::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool CreateV2TagRequestBody_tag::keyIsSet() const +{ + return keyIsSet_; +} + +void CreateV2TagRequestBody_tag::unsetkey() +{ + keyIsSet_ = false; +} + +std::string CreateV2TagRequestBody_tag::getValue() const +{ + return value_; +} + +void CreateV2TagRequestBody_tag::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool CreateV2TagRequestBody_tag::valueIsSet() const +{ + return valueIsSet_; +} + +void CreateV2TagRequestBody_tag::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGeipSegmentTagRequest.cpp b/geip/src/v3/model/DeleteGeipSegmentTagRequest.cpp new file mode 100644 index 000000000..68e669837 --- /dev/null +++ b/geip/src/v3/model/DeleteGeipSegmentTagRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGeipSegmentTagRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGeipSegmentTagRequest::DeleteGeipSegmentTagRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + tagKey_ = ""; + tagKeyIsSet_ = false; +} + +DeleteGeipSegmentTagRequest::~DeleteGeipSegmentTagRequest() = default; + +void DeleteGeipSegmentTagRequest::validate() +{ +} + +web::json::value DeleteGeipSegmentTagRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(tagKeyIsSet_) { + val[utility::conversions::to_string_t("tag_key")] = ModelBase::toJson(tagKey_); + } + + return val; +} +bool DeleteGeipSegmentTagRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tag_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tag_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTagKey(refVal); + } + } + return ok; +} + + +std::string DeleteGeipSegmentTagRequest::getResourceId() const +{ + return resourceId_; +} + +void DeleteGeipSegmentTagRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool DeleteGeipSegmentTagRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void DeleteGeipSegmentTagRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +std::string DeleteGeipSegmentTagRequest::getTagKey() const +{ + return tagKey_; +} + +void DeleteGeipSegmentTagRequest::setTagKey(const std::string& value) +{ + tagKey_ = value; + tagKeyIsSet_ = true; +} + +bool DeleteGeipSegmentTagRequest::tagKeyIsSet() const +{ + return tagKeyIsSet_; +} + +void DeleteGeipSegmentTagRequest::unsettagKey() +{ + tagKeyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGeipSegmentTagResponse.cpp b/geip/src/v3/model/DeleteGeipSegmentTagResponse.cpp new file mode 100644 index 000000000..44e863294 --- /dev/null +++ b/geip/src/v3/model/DeleteGeipSegmentTagResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGeipSegmentTagResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGeipSegmentTagResponse::DeleteGeipSegmentTagResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DeleteGeipSegmentTagResponse::~DeleteGeipSegmentTagResponse() = default; + +void DeleteGeipSegmentTagResponse::validate() +{ +} + +web::json::value DeleteGeipSegmentTagResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DeleteGeipSegmentTagResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DeleteGeipSegmentTagResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DeleteGeipSegmentTagResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DeleteGeipSegmentTagResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DeleteGeipSegmentTagResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGlobalEipRequest.cpp b/geip/src/v3/model/DeleteGlobalEipRequest.cpp new file mode 100644 index 000000000..ecd7ec4e2 --- /dev/null +++ b/geip/src/v3/model/DeleteGlobalEipRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGlobalEipRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGlobalEipRequest::DeleteGlobalEipRequest() +{ + globalEipId_ = ""; + globalEipIdIsSet_ = false; +} + +DeleteGlobalEipRequest::~DeleteGlobalEipRequest() = default; + +void DeleteGlobalEipRequest::validate() +{ +} + +web::json::value DeleteGlobalEipRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_id")] = ModelBase::toJson(globalEipId_); + } + + return val; +} +bool DeleteGlobalEipRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipId(refVal); + } + } + return ok; +} + + +std::string DeleteGlobalEipRequest::getGlobalEipId() const +{ + return globalEipId_; +} + +void DeleteGlobalEipRequest::setGlobalEipId(const std::string& value) +{ + globalEipId_ = value; + globalEipIdIsSet_ = true; +} + +bool DeleteGlobalEipRequest::globalEipIdIsSet() const +{ + return globalEipIdIsSet_; +} + +void DeleteGlobalEipRequest::unsetglobalEipId() +{ + globalEipIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGlobalEipResponse.cpp b/geip/src/v3/model/DeleteGlobalEipResponse.cpp new file mode 100644 index 000000000..19ff02236 --- /dev/null +++ b/geip/src/v3/model/DeleteGlobalEipResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGlobalEipResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGlobalEipResponse::DeleteGlobalEipResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DeleteGlobalEipResponse::~DeleteGlobalEipResponse() = default; + +void DeleteGlobalEipResponse::validate() +{ +} + +web::json::value DeleteGlobalEipResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DeleteGlobalEipResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DeleteGlobalEipResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DeleteGlobalEipResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DeleteGlobalEipResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DeleteGlobalEipResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGlobalEipSegmentRequest.cpp b/geip/src/v3/model/DeleteGlobalEipSegmentRequest.cpp new file mode 100644 index 000000000..08340b6f3 --- /dev/null +++ b/geip/src/v3/model/DeleteGlobalEipSegmentRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGlobalEipSegmentRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGlobalEipSegmentRequest::DeleteGlobalEipSegmentRequest() +{ + globalEipSegmentId_ = ""; + globalEipSegmentIdIsSet_ = false; +} + +DeleteGlobalEipSegmentRequest::~DeleteGlobalEipSegmentRequest() = default; + +void DeleteGlobalEipSegmentRequest::validate() +{ +} + +web::json::value DeleteGlobalEipSegmentRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment_id")] = ModelBase::toJson(globalEipSegmentId_); + } + + return val; +} +bool DeleteGlobalEipSegmentRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegmentId(refVal); + } + } + return ok; +} + + +std::string DeleteGlobalEipSegmentRequest::getGlobalEipSegmentId() const +{ + return globalEipSegmentId_; +} + +void DeleteGlobalEipSegmentRequest::setGlobalEipSegmentId(const std::string& value) +{ + globalEipSegmentId_ = value; + globalEipSegmentIdIsSet_ = true; +} + +bool DeleteGlobalEipSegmentRequest::globalEipSegmentIdIsSet() const +{ + return globalEipSegmentIdIsSet_; +} + +void DeleteGlobalEipSegmentRequest::unsetglobalEipSegmentId() +{ + globalEipSegmentIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGlobalEipSegmentResponse.cpp b/geip/src/v3/model/DeleteGlobalEipSegmentResponse.cpp new file mode 100644 index 000000000..8fb89956f --- /dev/null +++ b/geip/src/v3/model/DeleteGlobalEipSegmentResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGlobalEipSegmentResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGlobalEipSegmentResponse::DeleteGlobalEipSegmentResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DeleteGlobalEipSegmentResponse::~DeleteGlobalEipSegmentResponse() = default; + +void DeleteGlobalEipSegmentResponse::validate() +{ +} + +web::json::value DeleteGlobalEipSegmentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DeleteGlobalEipSegmentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DeleteGlobalEipSegmentResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DeleteGlobalEipSegmentResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DeleteGlobalEipSegmentResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DeleteGlobalEipSegmentResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGlobalEipTagRequest.cpp b/geip/src/v3/model/DeleteGlobalEipTagRequest.cpp new file mode 100644 index 000000000..9e6fa1134 --- /dev/null +++ b/geip/src/v3/model/DeleteGlobalEipTagRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGlobalEipTagRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGlobalEipTagRequest::DeleteGlobalEipTagRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + tagKey_ = ""; + tagKeyIsSet_ = false; +} + +DeleteGlobalEipTagRequest::~DeleteGlobalEipTagRequest() = default; + +void DeleteGlobalEipTagRequest::validate() +{ +} + +web::json::value DeleteGlobalEipTagRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(tagKeyIsSet_) { + val[utility::conversions::to_string_t("tag_key")] = ModelBase::toJson(tagKey_); + } + + return val; +} +bool DeleteGlobalEipTagRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tag_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tag_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTagKey(refVal); + } + } + return ok; +} + + +std::string DeleteGlobalEipTagRequest::getResourceId() const +{ + return resourceId_; +} + +void DeleteGlobalEipTagRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool DeleteGlobalEipTagRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void DeleteGlobalEipTagRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +std::string DeleteGlobalEipTagRequest::getTagKey() const +{ + return tagKey_; +} + +void DeleteGlobalEipTagRequest::setTagKey(const std::string& value) +{ + tagKey_ = value; + tagKeyIsSet_ = true; +} + +bool DeleteGlobalEipTagRequest::tagKeyIsSet() const +{ + return tagKeyIsSet_; +} + +void DeleteGlobalEipTagRequest::unsettagKey() +{ + tagKeyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteGlobalEipTagResponse.cpp b/geip/src/v3/model/DeleteGlobalEipTagResponse.cpp new file mode 100644 index 000000000..7191c8c93 --- /dev/null +++ b/geip/src/v3/model/DeleteGlobalEipTagResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteGlobalEipTagResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteGlobalEipTagResponse::DeleteGlobalEipTagResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DeleteGlobalEipTagResponse::~DeleteGlobalEipTagResponse() = default; + +void DeleteGlobalEipTagResponse::validate() +{ +} + +web::json::value DeleteGlobalEipTagResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DeleteGlobalEipTagResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DeleteGlobalEipTagResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DeleteGlobalEipTagResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DeleteGlobalEipTagResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DeleteGlobalEipTagResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteInternetBandwidthRequest.cpp b/geip/src/v3/model/DeleteInternetBandwidthRequest.cpp new file mode 100644 index 000000000..4e5c735b1 --- /dev/null +++ b/geip/src/v3/model/DeleteInternetBandwidthRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteInternetBandwidthRequest::DeleteInternetBandwidthRequest() +{ + internetBandwidthId_ = ""; + internetBandwidthIdIsSet_ = false; +} + +DeleteInternetBandwidthRequest::~DeleteInternetBandwidthRequest() = default; + +void DeleteInternetBandwidthRequest::validate() +{ +} + +web::json::value DeleteInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + + return val; +} +bool DeleteInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + return ok; +} + + +std::string DeleteInternetBandwidthRequest::getInternetBandwidthId() const +{ + return internetBandwidthId_; +} + +void DeleteInternetBandwidthRequest::setInternetBandwidthId(const std::string& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool DeleteInternetBandwidthRequest::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void DeleteInternetBandwidthRequest::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteInternetBandwidthResponse.cpp b/geip/src/v3/model/DeleteInternetBandwidthResponse.cpp new file mode 100644 index 000000000..b249dfcf4 --- /dev/null +++ b/geip/src/v3/model/DeleteInternetBandwidthResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteInternetBandwidthResponse::DeleteInternetBandwidthResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DeleteInternetBandwidthResponse::~DeleteInternetBandwidthResponse() = default; + +void DeleteInternetBandwidthResponse::validate() +{ +} + +web::json::value DeleteInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DeleteInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DeleteInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DeleteInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DeleteInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DeleteInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteInternetBandwidthTagRequest.cpp b/geip/src/v3/model/DeleteInternetBandwidthTagRequest.cpp new file mode 100644 index 000000000..c408a7cdb --- /dev/null +++ b/geip/src/v3/model/DeleteInternetBandwidthTagRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/DeleteInternetBandwidthTagRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteInternetBandwidthTagRequest::DeleteInternetBandwidthTagRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + tagKey_ = ""; + tagKeyIsSet_ = false; +} + +DeleteInternetBandwidthTagRequest::~DeleteInternetBandwidthTagRequest() = default; + +void DeleteInternetBandwidthTagRequest::validate() +{ +} + +web::json::value DeleteInternetBandwidthTagRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(tagKeyIsSet_) { + val[utility::conversions::to_string_t("tag_key")] = ModelBase::toJson(tagKey_); + } + + return val; +} +bool DeleteInternetBandwidthTagRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tag_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tag_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTagKey(refVal); + } + } + return ok; +} + + +std::string DeleteInternetBandwidthTagRequest::getResourceId() const +{ + return resourceId_; +} + +void DeleteInternetBandwidthTagRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool DeleteInternetBandwidthTagRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void DeleteInternetBandwidthTagRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +std::string DeleteInternetBandwidthTagRequest::getTagKey() const +{ + return tagKey_; +} + +void DeleteInternetBandwidthTagRequest::setTagKey(const std::string& value) +{ + tagKey_ = value; + tagKeyIsSet_ = true; +} + +bool DeleteInternetBandwidthTagRequest::tagKeyIsSet() const +{ + return tagKeyIsSet_; +} + +void DeleteInternetBandwidthTagRequest::unsettagKey() +{ + tagKeyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteInternetBandwidthTagResponse.cpp b/geip/src/v3/model/DeleteInternetBandwidthTagResponse.cpp new file mode 100644 index 000000000..1a653bf6d --- /dev/null +++ b/geip/src/v3/model/DeleteInternetBandwidthTagResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteInternetBandwidthTagResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteInternetBandwidthTagResponse::DeleteInternetBandwidthTagResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DeleteInternetBandwidthTagResponse::~DeleteInternetBandwidthTagResponse() = default; + +void DeleteInternetBandwidthTagResponse::validate() +{ +} + +web::json::value DeleteInternetBandwidthTagResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DeleteInternetBandwidthTagResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DeleteInternetBandwidthTagResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DeleteInternetBandwidthTagResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DeleteInternetBandwidthTagResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DeleteInternetBandwidthTagResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteUserDisclaimerRequest.cpp b/geip/src/v3/model/DeleteUserDisclaimerRequest.cpp new file mode 100644 index 000000000..dcd977ecf --- /dev/null +++ b/geip/src/v3/model/DeleteUserDisclaimerRequest.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/geip/v3/model/DeleteUserDisclaimerRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteUserDisclaimerRequest::DeleteUserDisclaimerRequest() +{ +} + +DeleteUserDisclaimerRequest::~DeleteUserDisclaimerRequest() = default; + +void DeleteUserDisclaimerRequest::validate() +{ +} + +web::json::value DeleteUserDisclaimerRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool DeleteUserDisclaimerRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DeleteUserDisclaimerResponse.cpp b/geip/src/v3/model/DeleteUserDisclaimerResponse.cpp new file mode 100644 index 000000000..67646b4e7 --- /dev/null +++ b/geip/src/v3/model/DeleteUserDisclaimerResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DeleteUserDisclaimerResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DeleteUserDisclaimerResponse::DeleteUserDisclaimerResponse() +{ + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DeleteUserDisclaimerResponse::~DeleteUserDisclaimerResponse() = default; + +void DeleteUserDisclaimerResponse::validate() +{ +} + +web::json::value DeleteUserDisclaimerResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DeleteUserDisclaimerResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DeleteUserDisclaimerResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DeleteUserDisclaimerResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DeleteUserDisclaimerResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DeleteUserDisclaimerResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DetachInternetBandwidth.cpp b/geip/src/v3/model/DetachInternetBandwidth.cpp new file mode 100644 index 000000000..c1c13496d --- /dev/null +++ b/geip/src/v3/model/DetachInternetBandwidth.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DetachInternetBandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DetachInternetBandwidth::DetachInternetBandwidth() +{ + globalEipSegmentId_ = ""; + globalEipSegmentIdIsSet_ = false; +} + +DetachInternetBandwidth::~DetachInternetBandwidth() = default; + +void DetachInternetBandwidth::validate() +{ +} + +web::json::value DetachInternetBandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment_id")] = ModelBase::toJson(globalEipSegmentId_); + } + + return val; +} +bool DetachInternetBandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegmentId(refVal); + } + } + return ok; +} + + +std::string DetachInternetBandwidth::getGlobalEipSegmentId() const +{ + return globalEipSegmentId_; +} + +void DetachInternetBandwidth::setGlobalEipSegmentId(const std::string& value) +{ + globalEipSegmentId_ = value; + globalEipSegmentIdIsSet_ = true; +} + +bool DetachInternetBandwidth::globalEipSegmentIdIsSet() const +{ + return globalEipSegmentIdIsSet_; +} + +void DetachInternetBandwidth::unsetglobalEipSegmentId() +{ + globalEipSegmentIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DetachInternetBandwidthGlobalEips.cpp b/geip/src/v3/model/DetachInternetBandwidthGlobalEips.cpp new file mode 100644 index 000000000..2f7629117 --- /dev/null +++ b/geip/src/v3/model/DetachInternetBandwidthGlobalEips.cpp @@ -0,0 +1,844 @@ + + +#include "huaweicloud/geip/v3/model/DetachInternetBandwidthGlobalEips.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DetachInternetBandwidthGlobalEips::DetachInternetBandwidthGlobalEips() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + ipAddress_ = ""; + ipAddressIsSet_ = false; + ipv6Address_ = ""; + ipv6AddressIsSet_ = false; + freezen_ = false; + freezenIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + polluted_ = false; + pollutedIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + internetBandwidthInfoIsSet_ = false; + globalConnectionBandwidthInfoIsSet_ = false; + associateInstanceInfoIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +DetachInternetBandwidthGlobalEips::~DetachInternetBandwidthGlobalEips() = default; + +void DetachInternetBandwidthGlobalEips::validate() +{ +} + +web::json::value DetachInternetBandwidthGlobalEips::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(ipv6AddressIsSet_) { + val[utility::conversions::to_string_t("ipv6_address")] = ModelBase::toJson(ipv6Address_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(pollutedIsSet_) { + val[utility::conversions::to_string_t("polluted")] = ModelBase::toJson(polluted_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(internetBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_info")] = ModelBase::toJson(internetBandwidthInfo_); + } + if(globalConnectionBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("global_connection_bandwidth_info")] = ModelBase::toJson(globalConnectionBandwidthInfo_); + } + if(associateInstanceInfoIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info")] = ModelBase::toJson(associateInstanceInfo_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool DetachInternetBandwidthGlobalEips::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ipv6_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpv6Address(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("polluted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("polluted")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPolluted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_info")); + if(!fieldValue.is_null()) + { + InternetBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_connection_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_connection_bandwidth_info")); + if(!fieldValue.is_null()) + { + GlobalConnectionBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalConnectionBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info")); + if(!fieldValue.is_null()) + { + InstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string DetachInternetBandwidthGlobalEips::getId() const +{ + return id_; +} + +void DetachInternetBandwidthGlobalEips::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::idIsSet() const +{ + return idIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetid() +{ + idIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getName() const +{ + return name_; +} + +void DetachInternetBandwidthGlobalEips::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::nameIsSet() const +{ + return nameIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetname() +{ + nameIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getDomainId() const +{ + return domainId_; +} + +void DetachInternetBandwidthGlobalEips::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getDescription() const +{ + return description_; +} + +void DetachInternetBandwidthGlobalEips::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getAccessSite() const +{ + return accessSite_; +} + +void DetachInternetBandwidthGlobalEips::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getGeipPoolName() const +{ + return geipPoolName_; +} + +void DetachInternetBandwidthGlobalEips::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getIsp() const +{ + return isp_; +} + +void DetachInternetBandwidthGlobalEips::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::ispIsSet() const +{ + return ispIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t DetachInternetBandwidthGlobalEips::getIpVersion() const +{ + return ipVersion_; +} + +void DetachInternetBandwidthGlobalEips::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getIpAddress() const +{ + return ipAddress_; +} + +void DetachInternetBandwidthGlobalEips::setIpAddress(const std::string& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getIpv6Address() const +{ + return ipv6Address_; +} + +void DetachInternetBandwidthGlobalEips::setIpv6Address(const std::string& value) +{ + ipv6Address_ = value; + ipv6AddressIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::ipv6AddressIsSet() const +{ + return ipv6AddressIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetipv6Address() +{ + ipv6AddressIsSet_ = false; +} + +bool DetachInternetBandwidthGlobalEips::isFreezen() const +{ + return freezen_; +} + +void DetachInternetBandwidthGlobalEips::setFreezen(bool value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::freezenIsSet() const +{ + return freezenIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getFreezenInfo() const +{ + return freezenInfo_; +} + +void DetachInternetBandwidthGlobalEips::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +bool DetachInternetBandwidthGlobalEips::isPolluted() const +{ + return polluted_; +} + +void DetachInternetBandwidthGlobalEips::setPolluted(bool value) +{ + polluted_ = value; + pollutedIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::pollutedIsSet() const +{ + return pollutedIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetpolluted() +{ + pollutedIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getStatus() const +{ + return status_; +} + +void DetachInternetBandwidthGlobalEips::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::statusIsSet() const +{ + return statusIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime DetachInternetBandwidthGlobalEips::getCreatedAt() const +{ + return createdAt_; +} + +void DetachInternetBandwidthGlobalEips::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime DetachInternetBandwidthGlobalEips::getUpdatedAt() const +{ + return updatedAt_; +} + +void DetachInternetBandwidthGlobalEips::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +InternetBandwidthInfo DetachInternetBandwidthGlobalEips::getInternetBandwidthInfo() const +{ + return internetBandwidthInfo_; +} + +void DetachInternetBandwidthGlobalEips::setInternetBandwidthInfo(const InternetBandwidthInfo& value) +{ + internetBandwidthInfo_ = value; + internetBandwidthInfoIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::internetBandwidthInfoIsSet() const +{ + return internetBandwidthInfoIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetinternetBandwidthInfo() +{ + internetBandwidthInfoIsSet_ = false; +} + +GlobalConnectionBandwidthInfo DetachInternetBandwidthGlobalEips::getGlobalConnectionBandwidthInfo() const +{ + return globalConnectionBandwidthInfo_; +} + +void DetachInternetBandwidthGlobalEips::setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value) +{ + globalConnectionBandwidthInfo_ = value; + globalConnectionBandwidthInfoIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::globalConnectionBandwidthInfoIsSet() const +{ + return globalConnectionBandwidthInfoIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetglobalConnectionBandwidthInfo() +{ + globalConnectionBandwidthInfoIsSet_ = false; +} + +InstanceInfo DetachInternetBandwidthGlobalEips::getAssociateInstanceInfo() const +{ + return associateInstanceInfo_; +} + +void DetachInternetBandwidthGlobalEips::setAssociateInstanceInfo(const InstanceInfo& value) +{ + associateInstanceInfo_ = value; + associateInstanceInfoIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::associateInstanceInfoIsSet() const +{ + return associateInstanceInfoIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetassociateInstanceInfo() +{ + associateInstanceInfoIsSet_ = false; +} + +bool DetachInternetBandwidthGlobalEips::isIsPrePaid() const +{ + return isPrePaid_; +} + +void DetachInternetBandwidthGlobalEips::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& DetachInternetBandwidthGlobalEips::getTags() +{ + return tags_; +} + +void DetachInternetBandwidthGlobalEips::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::tagsIsSet() const +{ + return tagsIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& DetachInternetBandwidthGlobalEips::getSysTags() +{ + return sysTags_; +} + +void DetachInternetBandwidthGlobalEips::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string DetachInternetBandwidthGlobalEips::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void DetachInternetBandwidthGlobalEips::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool DetachInternetBandwidthGlobalEips::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void DetachInternetBandwidthGlobalEips::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DetachInternetBandwidthRequest.cpp b/geip/src/v3/model/DetachInternetBandwidthRequest.cpp new file mode 100644 index 000000000..19d44f8e7 --- /dev/null +++ b/geip/src/v3/model/DetachInternetBandwidthRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/DetachInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DetachInternetBandwidthRequest::DetachInternetBandwidthRequest() +{ + globalEipId_ = ""; + globalEipIdIsSet_ = false; + forceUnbind_ = false; + forceUnbindIsSet_ = false; +} + +DetachInternetBandwidthRequest::~DetachInternetBandwidthRequest() = default; + +void DetachInternetBandwidthRequest::validate() +{ +} + +web::json::value DetachInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_id")] = ModelBase::toJson(globalEipId_); + } + if(forceUnbindIsSet_) { + val[utility::conversions::to_string_t("force_unbind")] = ModelBase::toJson(forceUnbind_); + } + + return val; +} +bool DetachInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("force_unbind"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("force_unbind")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setForceUnbind(refVal); + } + } + return ok; +} + + +std::string DetachInternetBandwidthRequest::getGlobalEipId() const +{ + return globalEipId_; +} + +void DetachInternetBandwidthRequest::setGlobalEipId(const std::string& value) +{ + globalEipId_ = value; + globalEipIdIsSet_ = true; +} + +bool DetachInternetBandwidthRequest::globalEipIdIsSet() const +{ + return globalEipIdIsSet_; +} + +void DetachInternetBandwidthRequest::unsetglobalEipId() +{ + globalEipIdIsSet_ = false; +} + +bool DetachInternetBandwidthRequest::isForceUnbind() const +{ + return forceUnbind_; +} + +void DetachInternetBandwidthRequest::setForceUnbind(bool value) +{ + forceUnbind_ = value; + forceUnbindIsSet_ = true; +} + +bool DetachInternetBandwidthRequest::forceUnbindIsSet() const +{ + return forceUnbindIsSet_; +} + +void DetachInternetBandwidthRequest::unsetforceUnbind() +{ + forceUnbindIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DetachInternetBandwidthResponse.cpp b/geip/src/v3/model/DetachInternetBandwidthResponse.cpp new file mode 100644 index 000000000..b7db34fe9 --- /dev/null +++ b/geip/src/v3/model/DetachInternetBandwidthResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/DetachInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DetachInternetBandwidthResponse::DetachInternetBandwidthResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DetachInternetBandwidthResponse::~DetachInternetBandwidthResponse() = default; + +void DetachInternetBandwidthResponse::validate() +{ +} + +web::json::value DetachInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DetachInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + DetachInternetBandwidthGlobalEips refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DetachInternetBandwidthResponse::getRequestId() const +{ + return requestId_; +} + +void DetachInternetBandwidthResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool DetachInternetBandwidthResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void DetachInternetBandwidthResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +DetachInternetBandwidthGlobalEips DetachInternetBandwidthResponse::getGlobalEip() const +{ + return globalEip_; +} + +void DetachInternetBandwidthResponse::setGlobalEip(const DetachInternetBandwidthGlobalEips& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool DetachInternetBandwidthResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void DetachInternetBandwidthResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string DetachInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DetachInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DetachInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DetachInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DisassociateGeipSegmentInstanceRequest.cpp b/geip/src/v3/model/DisassociateGeipSegmentInstanceRequest.cpp new file mode 100644 index 000000000..17d7ec932 --- /dev/null +++ b/geip/src/v3/model/DisassociateGeipSegmentInstanceRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DisassociateGeipSegmentInstanceRequest::DisassociateGeipSegmentInstanceRequest() +{ + globalEipSegmentId_ = ""; + globalEipSegmentIdIsSet_ = false; +} + +DisassociateGeipSegmentInstanceRequest::~DisassociateGeipSegmentInstanceRequest() = default; + +void DisassociateGeipSegmentInstanceRequest::validate() +{ +} + +web::json::value DisassociateGeipSegmentInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment_id")] = ModelBase::toJson(globalEipSegmentId_); + } + + return val; +} +bool DisassociateGeipSegmentInstanceRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegmentId(refVal); + } + } + return ok; +} + + +std::string DisassociateGeipSegmentInstanceRequest::getGlobalEipSegmentId() const +{ + return globalEipSegmentId_; +} + +void DisassociateGeipSegmentInstanceRequest::setGlobalEipSegmentId(const std::string& value) +{ + globalEipSegmentId_ = value; + globalEipSegmentIdIsSet_ = true; +} + +bool DisassociateGeipSegmentInstanceRequest::globalEipSegmentIdIsSet() const +{ + return globalEipSegmentIdIsSet_; +} + +void DisassociateGeipSegmentInstanceRequest::unsetglobalEipSegmentId() +{ + globalEipSegmentIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DisassociateGeipSegmentInstanceResponse.cpp b/geip/src/v3/model/DisassociateGeipSegmentInstanceResponse.cpp new file mode 100644 index 000000000..98965afb4 --- /dev/null +++ b/geip/src/v3/model/DisassociateGeipSegmentInstanceResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/DisassociateGeipSegmentInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DisassociateGeipSegmentInstanceResponse::DisassociateGeipSegmentInstanceResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; + globalEipSegmentIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DisassociateGeipSegmentInstanceResponse::~DisassociateGeipSegmentInstanceResponse() = default; + +void DisassociateGeipSegmentInstanceResponse::validate() +{ +} + +web::json::value DisassociateGeipSegmentInstanceResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DisassociateGeipSegmentInstanceResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + ShortGlobalEipSegment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string DisassociateGeipSegmentInstanceResponse::getJobId() const +{ + return jobId_; +} + +void DisassociateGeipSegmentInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool DisassociateGeipSegmentInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void DisassociateGeipSegmentInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +ShortGlobalEipSegment DisassociateGeipSegmentInstanceResponse::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void DisassociateGeipSegmentInstanceResponse::setGlobalEipSegment(const ShortGlobalEipSegment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool DisassociateGeipSegmentInstanceResponse::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void DisassociateGeipSegmentInstanceResponse::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +std::string DisassociateGeipSegmentInstanceResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DisassociateGeipSegmentInstanceResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DisassociateGeipSegmentInstanceResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DisassociateGeipSegmentInstanceResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DisassociateInstanceRequest.cpp b/geip/src/v3/model/DisassociateInstanceRequest.cpp new file mode 100644 index 000000000..79a9082e1 --- /dev/null +++ b/geip/src/v3/model/DisassociateInstanceRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/DisassociateInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DisassociateInstanceRequest::DisassociateInstanceRequest() +{ + isReserveGcb_ = false; + isReserveGcbIsSet_ = false; + globalEipId_ = ""; + globalEipIdIsSet_ = false; +} + +DisassociateInstanceRequest::~DisassociateInstanceRequest() = default; + +void DisassociateInstanceRequest::validate() +{ +} + +web::json::value DisassociateInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(isReserveGcbIsSet_) { + val[utility::conversions::to_string_t("is_reserve_gcb")] = ModelBase::toJson(isReserveGcb_); + } + if(globalEipIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_id")] = ModelBase::toJson(globalEipId_); + } + + return val; +} +bool DisassociateInstanceRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("is_reserve_gcb"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_reserve_gcb")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsReserveGcb(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipId(refVal); + } + } + return ok; +} + + +bool DisassociateInstanceRequest::isIsReserveGcb() const +{ + return isReserveGcb_; +} + +void DisassociateInstanceRequest::setIsReserveGcb(bool value) +{ + isReserveGcb_ = value; + isReserveGcbIsSet_ = true; +} + +bool DisassociateInstanceRequest::isReserveGcbIsSet() const +{ + return isReserveGcbIsSet_; +} + +void DisassociateInstanceRequest::unsetisReserveGcb() +{ + isReserveGcbIsSet_ = false; +} + +std::string DisassociateInstanceRequest::getGlobalEipId() const +{ + return globalEipId_; +} + +void DisassociateInstanceRequest::setGlobalEipId(const std::string& value) +{ + globalEipId_ = value; + globalEipIdIsSet_ = true; +} + +bool DisassociateInstanceRequest::globalEipIdIsSet() const +{ + return globalEipIdIsSet_; +} + +void DisassociateInstanceRequest::unsetglobalEipId() +{ + globalEipIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/DisassociateInstanceResponse.cpp b/geip/src/v3/model/DisassociateInstanceResponse.cpp new file mode 100644 index 000000000..951991772 --- /dev/null +++ b/geip/src/v3/model/DisassociateInstanceResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/DisassociateInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +DisassociateInstanceResponse::DisassociateInstanceResponse() +{ + globalEipIsSet_ = false; + jobId_ = ""; + jobIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +DisassociateInstanceResponse::~DisassociateInstanceResponse() = default; + +void DisassociateInstanceResponse::validate() +{ +} + +web::json::value DisassociateInstanceResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool DisassociateInstanceResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + UpdateGlobalEip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +UpdateGlobalEip DisassociateInstanceResponse::getGlobalEip() const +{ + return globalEip_; +} + +void DisassociateInstanceResponse::setGlobalEip(const UpdateGlobalEip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool DisassociateInstanceResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void DisassociateInstanceResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string DisassociateInstanceResponse::getJobId() const +{ + return jobId_; +} + +void DisassociateInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool DisassociateInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void DisassociateInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +std::string DisassociateInstanceResponse::getXRequestId() const +{ + return xRequestId_; +} + +void DisassociateInstanceResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool DisassociateInstanceResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void DisassociateInstanceResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ExtLimitPojo.cpp b/geip/src/v3/model/ExtLimitPojo.cpp new file mode 100644 index 000000000..c88881396 --- /dev/null +++ b/geip/src/v3/model/ExtLimitPojo.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/ExtLimitPojo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ExtLimitPojo::ExtLimitPojo() +{ + minIngressSize_ = 0; + minIngressSizeIsSet_ = false; + maxIngressSize_ = 0; + maxIngressSizeIsSet_ = false; + ratio95peak_ = 0; + ratio95peakIsSet_ = false; +} + +ExtLimitPojo::~ExtLimitPojo() = default; + +void ExtLimitPojo::validate() +{ +} + +web::json::value ExtLimitPojo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(minIngressSizeIsSet_) { + val[utility::conversions::to_string_t("min_ingress_size")] = ModelBase::toJson(minIngressSize_); + } + if(maxIngressSizeIsSet_) { + val[utility::conversions::to_string_t("max_ingress_size")] = ModelBase::toJson(maxIngressSize_); + } + if(ratio95peakIsSet_) { + val[utility::conversions::to_string_t("ratio_95peak")] = ModelBase::toJson(ratio95peak_); + } + + return val; +} +bool ExtLimitPojo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("min_ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("min_ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMinIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("max_ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("max_ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMaxIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ratio_95peak"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ratio_95peak")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRatio95peak(refVal); + } + } + return ok; +} + + +int32_t ExtLimitPojo::getMinIngressSize() const +{ + return minIngressSize_; +} + +void ExtLimitPojo::setMinIngressSize(int32_t value) +{ + minIngressSize_ = value; + minIngressSizeIsSet_ = true; +} + +bool ExtLimitPojo::minIngressSizeIsSet() const +{ + return minIngressSizeIsSet_; +} + +void ExtLimitPojo::unsetminIngressSize() +{ + minIngressSizeIsSet_ = false; +} + +int32_t ExtLimitPojo::getMaxIngressSize() const +{ + return maxIngressSize_; +} + +void ExtLimitPojo::setMaxIngressSize(int32_t value) +{ + maxIngressSize_ = value; + maxIngressSizeIsSet_ = true; +} + +bool ExtLimitPojo::maxIngressSizeIsSet() const +{ + return maxIngressSizeIsSet_; +} + +void ExtLimitPojo::unsetmaxIngressSize() +{ + maxIngressSizeIsSet_ = false; +} + +int32_t ExtLimitPojo::getRatio95peak() const +{ + return ratio95peak_; +} + +void ExtLimitPojo::setRatio95peak(int32_t value) +{ + ratio95peak_ = value; + ratio95peakIsSet_ = true; +} + +bool ExtLimitPojo::ratio95peakIsSet() const +{ + return ratio95peakIsSet_; +} + +void ExtLimitPojo::unsetratio95peak() +{ + ratio95peakIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/GeipResource.cpp b/geip/src/v3/model/GeipResource.cpp new file mode 100644 index 000000000..a3ba991e6 --- /dev/null +++ b/geip/src/v3/model/GeipResource.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/GeipResource.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +GeipResource::GeipResource() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; + resourceDetailIsSet_ = false; + tagsIsSet_ = false; + resourceName_ = ""; + resourceNameIsSet_ = false; +} + +GeipResource::~GeipResource() = default; + +void GeipResource::validate() +{ +} + +web::json::value GeipResource::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(resourceDetailIsSet_) { + val[utility::conversions::to_string_t("resource_detail")] = ModelBase::toJson(resourceDetail_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(resourceNameIsSet_) { + val[utility::conversions::to_string_t("resource_name")] = ModelBase::toJson(resourceName_); + } + + return val; +} +bool GeipResource::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("resource_detail"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_detail")); + if(!fieldValue.is_null()) + { + Object refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceDetail(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("resource_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceName(refVal); + } + } + return ok; +} + + +std::string GeipResource::getResourceId() const +{ + return resourceId_; +} + +void GeipResource::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool GeipResource::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void GeipResource::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +Object GeipResource::getResourceDetail() const +{ + return resourceDetail_; +} + +void GeipResource::setResourceDetail(const Object& value) +{ + resourceDetail_ = value; + resourceDetailIsSet_ = true; +} + +bool GeipResource::resourceDetailIsSet() const +{ + return resourceDetailIsSet_; +} + +void GeipResource::unsetresourceDetail() +{ + resourceDetailIsSet_ = false; +} + +std::vector& GeipResource::getTags() +{ + return tags_; +} + +void GeipResource::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool GeipResource::tagsIsSet() const +{ + return tagsIsSet_; +} + +void GeipResource::unsettags() +{ + tagsIsSet_ = false; +} + +std::string GeipResource::getResourceName() const +{ + return resourceName_; +} + +void GeipResource::setResourceName(const std::string& value) +{ + resourceName_ = value; + resourceNameIsSet_ = true; +} + +bool GeipResource::resourceNameIsSet() const +{ + return resourceNameIsSet_; +} + +void GeipResource::unsetresourceName() +{ + resourceNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/GeipTags.cpp b/geip/src/v3/model/GeipTags.cpp new file mode 100644 index 000000000..91b93338b --- /dev/null +++ b/geip/src/v3/model/GeipTags.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/GeipTags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +GeipTags::GeipTags() +{ + key_ = ""; + keyIsSet_ = false; + valuesIsSet_ = false; +} + +GeipTags::~GeipTags() = default; + +void GeipTags::validate() +{ +} + +web::json::value GeipTags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valuesIsSet_) { + val[utility::conversions::to_string_t("values")] = ModelBase::toJson(values_); + } + + return val; +} +bool GeipTags::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("values"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("values")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValues(refVal); + } + } + return ok; +} + + +std::string GeipTags::getKey() const +{ + return key_; +} + +void GeipTags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool GeipTags::keyIsSet() const +{ + return keyIsSet_; +} + +void GeipTags::unsetkey() +{ + keyIsSet_ = false; +} + +std::vector& GeipTags::getValues() +{ + return values_; +} + +void GeipTags::setValues(const std::vector& value) +{ + values_ = value; + valuesIsSet_ = true; +} + +bool GeipTags::valuesIsSet() const +{ + return valuesIsSet_; +} + +void GeipTags::unsetvalues() +{ + valuesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/GetAccountTagsV2.cpp b/geip/src/v3/model/GetAccountTagsV2.cpp new file mode 100644 index 000000000..15b919ff2 --- /dev/null +++ b/geip/src/v3/model/GetAccountTagsV2.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/GetAccountTagsV2.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +GetAccountTagsV2::GetAccountTagsV2() +{ + key_ = ""; + keyIsSet_ = false; + valuesIsSet_ = false; +} + +GetAccountTagsV2::~GetAccountTagsV2() = default; + +void GetAccountTagsV2::validate() +{ +} + +web::json::value GetAccountTagsV2::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valuesIsSet_) { + val[utility::conversions::to_string_t("values")] = ModelBase::toJson(values_); + } + + return val; +} +bool GetAccountTagsV2::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("values"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("values")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValues(refVal); + } + } + return ok; +} + + +std::string GetAccountTagsV2::getKey() const +{ + return key_; +} + +void GetAccountTagsV2::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool GetAccountTagsV2::keyIsSet() const +{ + return keyIsSet_; +} + +void GetAccountTagsV2::unsetkey() +{ + keyIsSet_ = false; +} + +std::vector& GetAccountTagsV2::getValues() +{ + return values_; +} + +void GetAccountTagsV2::setValues(const std::vector& value) +{ + values_ = value; + valuesIsSet_ = true; +} + +bool GetAccountTagsV2::valuesIsSet() const +{ + return valuesIsSet_; +} + +void GetAccountTagsV2::unsetvalues() +{ + valuesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/GlobalConnectionBandwidthInfo.cpp b/geip/src/v3/model/GlobalConnectionBandwidthInfo.cpp new file mode 100644 index 000000000..ef8165670 --- /dev/null +++ b/geip/src/v3/model/GlobalConnectionBandwidthInfo.cpp @@ -0,0 +1,254 @@ + + +#include "huaweicloud/geip/v3/model/GlobalConnectionBandwidthInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +GlobalConnectionBandwidthInfo::GlobalConnectionBandwidthInfo() +{ + gcbId_ = ""; + gcbIdIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + gcbType_ = ""; + gcbTypeIsSet_ = false; + adminState_ = ""; + adminStateIsSet_ = false; + slaLevel_ = ""; + slaLevelIsSet_ = false; + dscp_ = 0; + dscpIsSet_ = false; +} + +GlobalConnectionBandwidthInfo::~GlobalConnectionBandwidthInfo() = default; + +void GlobalConnectionBandwidthInfo::validate() +{ +} + +web::json::value GlobalConnectionBandwidthInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(gcbIdIsSet_) { + val[utility::conversions::to_string_t("gcb_id")] = ModelBase::toJson(gcbId_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(gcbTypeIsSet_) { + val[utility::conversions::to_string_t("gcb_type")] = ModelBase::toJson(gcbType_); + } + if(adminStateIsSet_) { + val[utility::conversions::to_string_t("admin_state")] = ModelBase::toJson(adminState_); + } + if(slaLevelIsSet_) { + val[utility::conversions::to_string_t("sla_level")] = ModelBase::toJson(slaLevel_); + } + if(dscpIsSet_) { + val[utility::conversions::to_string_t("dscp")] = ModelBase::toJson(dscp_); + } + + return val; +} +bool GlobalConnectionBandwidthInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("gcb_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcb_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcb_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcb_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("admin_state"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("admin_state")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAdminState(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sla_level"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sla_level")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSlaLevel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dscp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dscp")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDscp(refVal); + } + } + return ok; +} + + +std::string GlobalConnectionBandwidthInfo::getGcbId() const +{ + return gcbId_; +} + +void GlobalConnectionBandwidthInfo::setGcbId(const std::string& value) +{ + gcbId_ = value; + gcbIdIsSet_ = true; +} + +bool GlobalConnectionBandwidthInfo::gcbIdIsSet() const +{ + return gcbIdIsSet_; +} + +void GlobalConnectionBandwidthInfo::unsetgcbId() +{ + gcbIdIsSet_ = false; +} + +int32_t GlobalConnectionBandwidthInfo::getSize() const +{ + return size_; +} + +void GlobalConnectionBandwidthInfo::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool GlobalConnectionBandwidthInfo::sizeIsSet() const +{ + return sizeIsSet_; +} + +void GlobalConnectionBandwidthInfo::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string GlobalConnectionBandwidthInfo::getGcbType() const +{ + return gcbType_; +} + +void GlobalConnectionBandwidthInfo::setGcbType(const std::string& value) +{ + gcbType_ = value; + gcbTypeIsSet_ = true; +} + +bool GlobalConnectionBandwidthInfo::gcbTypeIsSet() const +{ + return gcbTypeIsSet_; +} + +void GlobalConnectionBandwidthInfo::unsetgcbType() +{ + gcbTypeIsSet_ = false; +} + +std::string GlobalConnectionBandwidthInfo::getAdminState() const +{ + return adminState_; +} + +void GlobalConnectionBandwidthInfo::setAdminState(const std::string& value) +{ + adminState_ = value; + adminStateIsSet_ = true; +} + +bool GlobalConnectionBandwidthInfo::adminStateIsSet() const +{ + return adminStateIsSet_; +} + +void GlobalConnectionBandwidthInfo::unsetadminState() +{ + adminStateIsSet_ = false; +} + +std::string GlobalConnectionBandwidthInfo::getSlaLevel() const +{ + return slaLevel_; +} + +void GlobalConnectionBandwidthInfo::setSlaLevel(const std::string& value) +{ + slaLevel_ = value; + slaLevelIsSet_ = true; +} + +bool GlobalConnectionBandwidthInfo::slaLevelIsSet() const +{ + return slaLevelIsSet_; +} + +void GlobalConnectionBandwidthInfo::unsetslaLevel() +{ + slaLevelIsSet_ = false; +} + +int32_t GlobalConnectionBandwidthInfo::getDscp() const +{ + return dscp_; +} + +void GlobalConnectionBandwidthInfo::setDscp(int32_t value) +{ + dscp_ = value; + dscpIsSet_ = true; +} + +bool GlobalConnectionBandwidthInfo::dscpIsSet() const +{ + return dscpIsSet_; +} + +void GlobalConnectionBandwidthInfo::unsetdscp() +{ + dscpIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/InstanceInfo.cpp b/geip/src/v3/model/InstanceInfo.cpp new file mode 100644 index 000000000..4102958e4 --- /dev/null +++ b/geip/src/v3/model/InstanceInfo.cpp @@ -0,0 +1,359 @@ + + +#include "huaweicloud/geip/v3/model/InstanceInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +InstanceInfo::InstanceInfo() +{ + region_ = ""; + regionIsSet_ = false; + quarkVpcEndpoint_ = ""; + quarkVpcEndpointIsSet_ = false; + projectId_ = ""; + projectIdIsSet_ = false; + instanceType_ = ""; + instanceTypeIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + serviceType_ = ""; + serviceTypeIsSet_ = false; + serviceId_ = ""; + serviceIdIsSet_ = false; + publicBorderGroup_ = ""; + publicBorderGroupIsSet_ = false; + instanceSite_ = ""; + instanceSiteIsSet_ = false; +} + +InstanceInfo::~InstanceInfo() = default; + +void InstanceInfo::validate() +{ +} + +web::json::value InstanceInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(regionIsSet_) { + val[utility::conversions::to_string_t("region")] = ModelBase::toJson(region_); + } + if(quarkVpcEndpointIsSet_) { + val[utility::conversions::to_string_t("quarkVpcEndpoint")] = ModelBase::toJson(quarkVpcEndpoint_); + } + if(projectIdIsSet_) { + val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); + } + if(instanceTypeIsSet_) { + val[utility::conversions::to_string_t("instance_type")] = ModelBase::toJson(instanceType_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(serviceTypeIsSet_) { + val[utility::conversions::to_string_t("service_type")] = ModelBase::toJson(serviceType_); + } + if(serviceIdIsSet_) { + val[utility::conversions::to_string_t("service_id")] = ModelBase::toJson(serviceId_); + } + if(publicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("public_border_group")] = ModelBase::toJson(publicBorderGroup_); + } + if(instanceSiteIsSet_) { + val[utility::conversions::to_string_t("instance_site")] = ModelBase::toJson(instanceSite_); + } + + return val; +} +bool InstanceInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("quarkVpcEndpoint"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("quarkVpcEndpoint")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setQuarkVpcEndpoint(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_border_group")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceSite(refVal); + } + } + return ok; +} + + +std::string InstanceInfo::getRegion() const +{ + return region_; +} + +void InstanceInfo::setRegion(const std::string& value) +{ + region_ = value; + regionIsSet_ = true; +} + +bool InstanceInfo::regionIsSet() const +{ + return regionIsSet_; +} + +void InstanceInfo::unsetregion() +{ + regionIsSet_ = false; +} + +std::string InstanceInfo::getQuarkVpcEndpoint() const +{ + return quarkVpcEndpoint_; +} + +void InstanceInfo::setQuarkVpcEndpoint(const std::string& value) +{ + quarkVpcEndpoint_ = value; + quarkVpcEndpointIsSet_ = true; +} + +bool InstanceInfo::quarkVpcEndpointIsSet() const +{ + return quarkVpcEndpointIsSet_; +} + +void InstanceInfo::unsetquarkVpcEndpoint() +{ + quarkVpcEndpointIsSet_ = false; +} + +std::string InstanceInfo::getProjectId() const +{ + return projectId_; +} + +void InstanceInfo::setProjectId(const std::string& value) +{ + projectId_ = value; + projectIdIsSet_ = true; +} + +bool InstanceInfo::projectIdIsSet() const +{ + return projectIdIsSet_; +} + +void InstanceInfo::unsetprojectId() +{ + projectIdIsSet_ = false; +} + +std::string InstanceInfo::getInstanceType() const +{ + return instanceType_; +} + +void InstanceInfo::setInstanceType(const std::string& value) +{ + instanceType_ = value; + instanceTypeIsSet_ = true; +} + +bool InstanceInfo::instanceTypeIsSet() const +{ + return instanceTypeIsSet_; +} + +void InstanceInfo::unsetinstanceType() +{ + instanceTypeIsSet_ = false; +} + +std::string InstanceInfo::getInstanceId() const +{ + return instanceId_; +} + +void InstanceInfo::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool InstanceInfo::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void InstanceInfo::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string InstanceInfo::getServiceType() const +{ + return serviceType_; +} + +void InstanceInfo::setServiceType(const std::string& value) +{ + serviceType_ = value; + serviceTypeIsSet_ = true; +} + +bool InstanceInfo::serviceTypeIsSet() const +{ + return serviceTypeIsSet_; +} + +void InstanceInfo::unsetserviceType() +{ + serviceTypeIsSet_ = false; +} + +std::string InstanceInfo::getServiceId() const +{ + return serviceId_; +} + +void InstanceInfo::setServiceId(const std::string& value) +{ + serviceId_ = value; + serviceIdIsSet_ = true; +} + +bool InstanceInfo::serviceIdIsSet() const +{ + return serviceIdIsSet_; +} + +void InstanceInfo::unsetserviceId() +{ + serviceIdIsSet_ = false; +} + +std::string InstanceInfo::getPublicBorderGroup() const +{ + return publicBorderGroup_; +} + +void InstanceInfo::setPublicBorderGroup(const std::string& value) +{ + publicBorderGroup_ = value; + publicBorderGroupIsSet_ = true; +} + +bool InstanceInfo::publicBorderGroupIsSet() const +{ + return publicBorderGroupIsSet_; +} + +void InstanceInfo::unsetpublicBorderGroup() +{ + publicBorderGroupIsSet_ = false; +} + +std::string InstanceInfo::getInstanceSite() const +{ + return instanceSite_; +} + +void InstanceInfo::setInstanceSite(const std::string& value) +{ + instanceSite_ = value; + instanceSiteIsSet_ = true; +} + +bool InstanceInfo::instanceSiteIsSet() const +{ + return instanceSiteIsSet_; +} + +void InstanceInfo::unsetinstanceSite() +{ + instanceSiteIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/InternetBandwidthInfo.cpp b/geip/src/v3/model/InternetBandwidthInfo.cpp new file mode 100644 index 000000000..991adc560 --- /dev/null +++ b/geip/src/v3/model/InternetBandwidthInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/InternetBandwidthInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +InternetBandwidthInfo::InternetBandwidthInfo() +{ + id_ = ""; + idIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; +} + +InternetBandwidthInfo::~InternetBandwidthInfo() = default; + +void InternetBandwidthInfo::validate() +{ +} + +web::json::value InternetBandwidthInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + + return val; +} +bool InternetBandwidthInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + return ok; +} + + +std::string InternetBandwidthInfo::getId() const +{ + return id_; +} + +void InternetBandwidthInfo::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool InternetBandwidthInfo::idIsSet() const +{ + return idIsSet_; +} + +void InternetBandwidthInfo::unsetid() +{ + idIsSet_ = false; +} + +int32_t InternetBandwidthInfo::getSize() const +{ + return size_; +} + +void InternetBandwidthInfo::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool InternetBandwidthInfo::sizeIsSet() const +{ + return sizeIsSet_; +} + +void InternetBandwidthInfo::unsetsize() +{ + sizeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListAccessSites.cpp b/geip/src/v3/model/ListAccessSites.cpp new file mode 100644 index 000000000..eff71b1d9 --- /dev/null +++ b/geip/src/v3/model/ListAccessSites.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/geip/v3/model/ListAccessSites.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListAccessSites::ListAccessSites() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + proxyRegion_ = ""; + proxyRegionIsSet_ = false; + iecAzCode_ = ""; + iecAzCodeIsSet_ = false; + enName_ = ""; + enNameIsSet_ = false; + cnName_ = ""; + cnNameIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; +} + +ListAccessSites::~ListAccessSites() = default; + +void ListAccessSites::validate() +{ +} + +web::json::value ListAccessSites::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(proxyRegionIsSet_) { + val[utility::conversions::to_string_t("proxy_region")] = ModelBase::toJson(proxyRegion_); + } + if(iecAzCodeIsSet_) { + val[utility::conversions::to_string_t("iec_az_code")] = ModelBase::toJson(iecAzCode_); + } + if(enNameIsSet_) { + val[utility::conversions::to_string_t("en_name")] = ModelBase::toJson(enName_); + } + if(cnNameIsSet_) { + val[utility::conversions::to_string_t("cn_name")] = ModelBase::toJson(cnName_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool ListAccessSites::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("proxy_region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("proxy_region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProxyRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("iec_az_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("iec_az_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIecAzCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("en_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("en_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cn_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cn_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCnName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string ListAccessSites::getId() const +{ + return id_; +} + +void ListAccessSites::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListAccessSites::idIsSet() const +{ + return idIsSet_; +} + +void ListAccessSites::unsetid() +{ + idIsSet_ = false; +} + +std::string ListAccessSites::getName() const +{ + return name_; +} + +void ListAccessSites::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListAccessSites::nameIsSet() const +{ + return nameIsSet_; +} + +void ListAccessSites::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListAccessSites::getProxyRegion() const +{ + return proxyRegion_; +} + +void ListAccessSites::setProxyRegion(const std::string& value) +{ + proxyRegion_ = value; + proxyRegionIsSet_ = true; +} + +bool ListAccessSites::proxyRegionIsSet() const +{ + return proxyRegionIsSet_; +} + +void ListAccessSites::unsetproxyRegion() +{ + proxyRegionIsSet_ = false; +} + +std::string ListAccessSites::getIecAzCode() const +{ + return iecAzCode_; +} + +void ListAccessSites::setIecAzCode(const std::string& value) +{ + iecAzCode_ = value; + iecAzCodeIsSet_ = true; +} + +bool ListAccessSites::iecAzCodeIsSet() const +{ + return iecAzCodeIsSet_; +} + +void ListAccessSites::unsetiecAzCode() +{ + iecAzCodeIsSet_ = false; +} + +std::string ListAccessSites::getEnName() const +{ + return enName_; +} + +void ListAccessSites::setEnName(const std::string& value) +{ + enName_ = value; + enNameIsSet_ = true; +} + +bool ListAccessSites::enNameIsSet() const +{ + return enNameIsSet_; +} + +void ListAccessSites::unsetenName() +{ + enNameIsSet_ = false; +} + +std::string ListAccessSites::getCnName() const +{ + return cnName_; +} + +void ListAccessSites::setCnName(const std::string& value) +{ + cnName_ = value; + cnNameIsSet_ = true; +} + +bool ListAccessSites::cnNameIsSet() const +{ + return cnNameIsSet_; +} + +void ListAccessSites::unsetcnName() +{ + cnNameIsSet_ = false; +} + +utility::datetime ListAccessSites::getCreatedAt() const +{ + return createdAt_; +} + +void ListAccessSites::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListAccessSites::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListAccessSites::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListAccessSites::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListAccessSites::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListAccessSites::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListAccessSites::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListAccessSitesRequest.cpp b/geip/src/v3/model/ListAccessSitesRequest.cpp new file mode 100644 index 000000000..5834bd8a4 --- /dev/null +++ b/geip/src/v3/model/ListAccessSitesRequest.cpp @@ -0,0 +1,422 @@ + + +#include "huaweicloud/geip/v3/model/ListAccessSitesRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListAccessSitesRequest::ListAccessSitesRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + codeIsSet_ = false; + proxyRegionIsSet_ = false; + iecAzCodeIsSet_ = false; +} + +ListAccessSitesRequest::~ListAccessSitesRequest() = default; + +void ListAccessSitesRequest::validate() +{ +} + +web::json::value ListAccessSitesRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(codeIsSet_) { + val[utility::conversions::to_string_t("code")] = ModelBase::toJson(code_); + } + if(proxyRegionIsSet_) { + val[utility::conversions::to_string_t("proxy_region")] = ModelBase::toJson(proxyRegion_); + } + if(iecAzCodeIsSet_) { + val[utility::conversions::to_string_t("iec_az_code")] = ModelBase::toJson(iecAzCode_); + } + + return val; +} +bool ListAccessSitesRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("code")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("proxy_region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("proxy_region")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProxyRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("iec_az_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("iec_az_code")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIecAzCode(refVal); + } + } + return ok; +} + + +int32_t ListAccessSitesRequest::getLimit() const +{ + return limit_; +} + +void ListAccessSitesRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListAccessSitesRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListAccessSitesRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListAccessSitesRequest::getOffset() const +{ + return offset_; +} + +void ListAccessSitesRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListAccessSitesRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListAccessSitesRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListAccessSitesRequest::getMarker() const +{ + return marker_; +} + +void ListAccessSitesRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListAccessSitesRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListAccessSitesRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListAccessSitesRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListAccessSitesRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListAccessSitesRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListAccessSitesRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListAccessSitesRequest::getFields() +{ + return fields_; +} + +void ListAccessSitesRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListAccessSitesRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListAccessSitesRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListAccessSitesRequest::getSortKey() +{ + return sortKey_; +} + +void ListAccessSitesRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListAccessSitesRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListAccessSitesRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListAccessSitesRequest::getSortDir() +{ + return sortDir_; +} + +void ListAccessSitesRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListAccessSitesRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListAccessSitesRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListAccessSitesRequest::getId() +{ + return id_; +} + +void ListAccessSitesRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListAccessSitesRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListAccessSitesRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListAccessSitesRequest::getCode() +{ + return code_; +} + +void ListAccessSitesRequest::setCode(const std::vector& value) +{ + code_ = value; + codeIsSet_ = true; +} + +bool ListAccessSitesRequest::codeIsSet() const +{ + return codeIsSet_; +} + +void ListAccessSitesRequest::unsetcode() +{ + codeIsSet_ = false; +} + +std::vector& ListAccessSitesRequest::getProxyRegion() +{ + return proxyRegion_; +} + +void ListAccessSitesRequest::setProxyRegion(const std::vector& value) +{ + proxyRegion_ = value; + proxyRegionIsSet_ = true; +} + +bool ListAccessSitesRequest::proxyRegionIsSet() const +{ + return proxyRegionIsSet_; +} + +void ListAccessSitesRequest::unsetproxyRegion() +{ + proxyRegionIsSet_ = false; +} + +std::vector& ListAccessSitesRequest::getIecAzCode() +{ + return iecAzCode_; +} + +void ListAccessSitesRequest::setIecAzCode(const std::vector& value) +{ + iecAzCode_ = value; + iecAzCodeIsSet_ = true; +} + +bool ListAccessSitesRequest::iecAzCodeIsSet() const +{ + return iecAzCodeIsSet_; +} + +void ListAccessSitesRequest::unsetiecAzCode() +{ + iecAzCodeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListAccessSitesResponse.cpp b/geip/src/v3/model/ListAccessSitesResponse.cpp new file mode 100644 index 000000000..fe7cc3fae --- /dev/null +++ b/geip/src/v3/model/ListAccessSitesResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListAccessSitesResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListAccessSitesResponse::ListAccessSitesResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + accessSitesIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListAccessSitesResponse::~ListAccessSitesResponse() = default; + +void ListAccessSitesResponse::validate() +{ +} + +web::json::value ListAccessSitesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(accessSitesIsSet_) { + val[utility::conversions::to_string_t("access_sites")] = ModelBase::toJson(accessSites_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListAccessSitesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_sites"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_sites")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSites(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListAccessSitesResponse::getRequestId() const +{ + return requestId_; +} + +void ListAccessSitesResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListAccessSitesResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListAccessSitesResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListAccessSitesResponse::getAccessSites() +{ + return accessSites_; +} + +void ListAccessSitesResponse::setAccessSites(const std::vector& value) +{ + accessSites_ = value; + accessSitesIsSet_ = true; +} + +bool ListAccessSitesResponse::accessSitesIsSet() const +{ + return accessSitesIsSet_; +} + +void ListAccessSitesResponse::unsetaccessSites() +{ + accessSitesIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListAccessSitesResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListAccessSitesResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListAccessSitesResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListAccessSitesResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListAccessSitesResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListAccessSitesResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListAccessSitesResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListAccessSitesResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipPools.cpp b/geip/src/v3/model/ListGeipPools.cpp new file mode 100644 index 000000000..8485c7a97 --- /dev/null +++ b/geip/src/v3/model/ListGeipPools.cpp @@ -0,0 +1,463 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipPools.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipPools::ListGeipPools() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + enName_ = ""; + enNameIsSet_ = false; + cnName_ = ""; + cnNameIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + allowedBandwidthTypesIsSet_ = false; +} + +ListGeipPools::~ListGeipPools() = default; + +void ListGeipPools::validate() +{ +} + +web::json::value ListGeipPools::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(enNameIsSet_) { + val[utility::conversions::to_string_t("en_name")] = ModelBase::toJson(enName_); + } + if(cnNameIsSet_) { + val[utility::conversions::to_string_t("cn_name")] = ModelBase::toJson(cnName_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(allowedBandwidthTypesIsSet_) { + val[utility::conversions::to_string_t("allowed_bandwidth_types")] = ModelBase::toJson(allowedBandwidthTypes_); + } + + return val; +} +bool ListGeipPools::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("en_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("en_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cn_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cn_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCnName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("allowed_bandwidth_types"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allowed_bandwidth_types")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAllowedBandwidthTypes(refVal); + } + } + return ok; +} + + +std::string ListGeipPools::getId() const +{ + return id_; +} + +void ListGeipPools::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListGeipPools::idIsSet() const +{ + return idIsSet_; +} + +void ListGeipPools::unsetid() +{ + idIsSet_ = false; +} + +std::string ListGeipPools::getName() const +{ + return name_; +} + +void ListGeipPools::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListGeipPools::nameIsSet() const +{ + return nameIsSet_; +} + +void ListGeipPools::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListGeipPools::getEnName() const +{ + return enName_; +} + +void ListGeipPools::setEnName(const std::string& value) +{ + enName_ = value; + enNameIsSet_ = true; +} + +bool ListGeipPools::enNameIsSet() const +{ + return enNameIsSet_; +} + +void ListGeipPools::unsetenName() +{ + enNameIsSet_ = false; +} + +std::string ListGeipPools::getCnName() const +{ + return cnName_; +} + +void ListGeipPools::setCnName(const std::string& value) +{ + cnName_ = value; + cnNameIsSet_ = true; +} + +bool ListGeipPools::cnNameIsSet() const +{ + return cnNameIsSet_; +} + +void ListGeipPools::unsetcnName() +{ + cnNameIsSet_ = false; +} + +std::string ListGeipPools::getStatus() const +{ + return status_; +} + +void ListGeipPools::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListGeipPools::statusIsSet() const +{ + return statusIsSet_; +} + +void ListGeipPools::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string ListGeipPools::getIsp() const +{ + return isp_; +} + +void ListGeipPools::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ListGeipPools::ispIsSet() const +{ + return ispIsSet_; +} + +void ListGeipPools::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t ListGeipPools::getIpVersion() const +{ + return ipVersion_; +} + +void ListGeipPools::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListGeipPools::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListGeipPools::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string ListGeipPools::getAccessSite() const +{ + return accessSite_; +} + +void ListGeipPools::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListGeipPools::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListGeipPools::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string ListGeipPools::getType() const +{ + return type_; +} + +void ListGeipPools::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListGeipPools::typeIsSet() const +{ + return typeIsSet_; +} + +void ListGeipPools::unsettype() +{ + typeIsSet_ = false; +} + +utility::datetime ListGeipPools::getCreatedAt() const +{ + return createdAt_; +} + +void ListGeipPools::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListGeipPools::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListGeipPools::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListGeipPools::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListGeipPools::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListGeipPools::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListGeipPools::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +std::vector& ListGeipPools::getAllowedBandwidthTypes() +{ + return allowedBandwidthTypes_; +} + +void ListGeipPools::setAllowedBandwidthTypes(const std::vector& value) +{ + allowedBandwidthTypes_ = value; + allowedBandwidthTypesIsSet_ = true; +} + +bool ListGeipPools::allowedBandwidthTypesIsSet() const +{ + return allowedBandwidthTypesIsSet_; +} + +void ListGeipPools::unsetallowedBandwidthTypes() +{ + allowedBandwidthTypesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipPoolsRequest.cpp b/geip/src/v3/model/ListGeipPoolsRequest.cpp new file mode 100644 index 000000000..e350e963c --- /dev/null +++ b/geip/src/v3/model/ListGeipPoolsRequest.cpp @@ -0,0 +1,524 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipPoolsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipPoolsRequest::ListGeipPoolsRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + codeIsSet_ = false; + accessSiteIsSet_ = false; + ispIsSet_ = false; + ipVersionIsSet_ = false; + statusIsSet_ = false; + typeIsSet_ = false; +} + +ListGeipPoolsRequest::~ListGeipPoolsRequest() = default; + +void ListGeipPoolsRequest::validate() +{ +} + +web::json::value ListGeipPoolsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(codeIsSet_) { + val[utility::conversions::to_string_t("code")] = ModelBase::toJson(code_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool ListGeipPoolsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("code")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +int32_t ListGeipPoolsRequest::getLimit() const +{ + return limit_; +} + +void ListGeipPoolsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListGeipPoolsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListGeipPoolsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListGeipPoolsRequest::getOffset() const +{ + return offset_; +} + +void ListGeipPoolsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListGeipPoolsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListGeipPoolsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListGeipPoolsRequest::getMarker() const +{ + return marker_; +} + +void ListGeipPoolsRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListGeipPoolsRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListGeipPoolsRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListGeipPoolsRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListGeipPoolsRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListGeipPoolsRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListGeipPoolsRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getFields() +{ + return fields_; +} + +void ListGeipPoolsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListGeipPoolsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListGeipPoolsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getSortKey() +{ + return sortKey_; +} + +void ListGeipPoolsRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListGeipPoolsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListGeipPoolsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getSortDir() +{ + return sortDir_; +} + +void ListGeipPoolsRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListGeipPoolsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListGeipPoolsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getId() +{ + return id_; +} + +void ListGeipPoolsRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListGeipPoolsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListGeipPoolsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getCode() +{ + return code_; +} + +void ListGeipPoolsRequest::setCode(const std::vector& value) +{ + code_ = value; + codeIsSet_ = true; +} + +bool ListGeipPoolsRequest::codeIsSet() const +{ + return codeIsSet_; +} + +void ListGeipPoolsRequest::unsetcode() +{ + codeIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getAccessSite() +{ + return accessSite_; +} + +void ListGeipPoolsRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListGeipPoolsRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListGeipPoolsRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getIsp() +{ + return isp_; +} + +void ListGeipPoolsRequest::setIsp(const std::vector& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ListGeipPoolsRequest::ispIsSet() const +{ + return ispIsSet_; +} + +void ListGeipPoolsRequest::unsetisp() +{ + ispIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getIpVersion() +{ + return ipVersion_; +} + +void ListGeipPoolsRequest::setIpVersion(const std::vector& value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListGeipPoolsRequest::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListGeipPoolsRequest::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getStatus() +{ + return status_; +} + +void ListGeipPoolsRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListGeipPoolsRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void ListGeipPoolsRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& ListGeipPoolsRequest::getType() +{ + return type_; +} + +void ListGeipPoolsRequest::setType(const std::vector& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListGeipPoolsRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ListGeipPoolsRequest::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipPoolsResponse.cpp b/geip/src/v3/model/ListGeipPoolsResponse.cpp new file mode 100644 index 000000000..2bc1bf7bb --- /dev/null +++ b/geip/src/v3/model/ListGeipPoolsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipPoolsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipPoolsResponse::ListGeipPoolsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + geipPoolsIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGeipPoolsResponse::~ListGeipPoolsResponse() = default; + +void ListGeipPoolsResponse::validate() +{ +} + +web::json::value ListGeipPoolsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(geipPoolsIsSet_) { + val[utility::conversions::to_string_t("geip_pools")] = ModelBase::toJson(geipPools_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGeipPoolsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pools"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pools")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPools(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGeipPoolsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGeipPoolsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGeipPoolsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGeipPoolsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListGeipPoolsResponse::getGeipPools() +{ + return geipPools_; +} + +void ListGeipPoolsResponse::setGeipPools(const std::vector& value) +{ + geipPools_ = value; + geipPoolsIsSet_ = true; +} + +bool ListGeipPoolsResponse::geipPoolsIsSet() const +{ + return geipPoolsIsSet_; +} + +void ListGeipPoolsResponse::unsetgeipPools() +{ + geipPoolsIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListGeipPoolsResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListGeipPoolsResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListGeipPoolsResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListGeipPoolsResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListGeipPoolsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGeipPoolsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGeipPoolsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGeipPoolsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipResourceQuotasRequest.cpp b/geip/src/v3/model/ListGeipResourceQuotasRequest.cpp new file mode 100644 index 000000000..4e0627926 --- /dev/null +++ b/geip/src/v3/model/ListGeipResourceQuotasRequest.cpp @@ -0,0 +1,252 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipResourceQuotasRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipResourceQuotasRequest::ListGeipResourceQuotasRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + typeIsSet_ = false; +} + +ListGeipResourceQuotasRequest::~ListGeipResourceQuotasRequest() = default; + +void ListGeipResourceQuotasRequest::validate() +{ +} + +web::json::value ListGeipResourceQuotasRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool ListGeipResourceQuotasRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +int32_t ListGeipResourceQuotasRequest::getLimit() const +{ + return limit_; +} + +void ListGeipResourceQuotasRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListGeipResourceQuotasRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListGeipResourceQuotasRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListGeipResourceQuotasRequest::getOffset() const +{ + return offset_; +} + +void ListGeipResourceQuotasRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListGeipResourceQuotasRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListGeipResourceQuotasRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListGeipResourceQuotasRequest::getMarker() const +{ + return marker_; +} + +void ListGeipResourceQuotasRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListGeipResourceQuotasRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListGeipResourceQuotasRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListGeipResourceQuotasRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListGeipResourceQuotasRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListGeipResourceQuotasRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListGeipResourceQuotasRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListGeipResourceQuotasRequest::getFields() +{ + return fields_; +} + +void ListGeipResourceQuotasRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListGeipResourceQuotasRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListGeipResourceQuotasRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListGeipResourceQuotasRequest::getType() +{ + return type_; +} + +void ListGeipResourceQuotasRequest::setType(const std::vector& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListGeipResourceQuotasRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ListGeipResourceQuotasRequest::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipResourceQuotasResponse.cpp b/geip/src/v3/model/ListGeipResourceQuotasResponse.cpp new file mode 100644 index 000000000..a3ccdebb8 --- /dev/null +++ b/geip/src/v3/model/ListGeipResourceQuotasResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipResourceQuotasResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipResourceQuotasResponse::ListGeipResourceQuotasResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + quotasIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGeipResourceQuotasResponse::~ListGeipResourceQuotasResponse() = default; + +void ListGeipResourceQuotasResponse::validate() +{ +} + +web::json::value ListGeipResourceQuotasResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(quotasIsSet_) { + val[utility::conversions::to_string_t("quotas")] = ModelBase::toJson(quotas_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGeipResourceQuotasResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("quotas"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("quotas")); + if(!fieldValue.is_null()) + { + ListQuotas refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setQuotas(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGeipResourceQuotasResponse::getRequestId() const +{ + return requestId_; +} + +void ListGeipResourceQuotasResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGeipResourceQuotasResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGeipResourceQuotasResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +ListQuotas ListGeipResourceQuotasResponse::getQuotas() const +{ + return quotas_; +} + +void ListGeipResourceQuotasResponse::setQuotas(const ListQuotas& value) +{ + quotas_ = value; + quotasIsSet_ = true; +} + +bool ListGeipResourceQuotasResponse::quotasIsSet() const +{ + return quotasIsSet_; +} + +void ListGeipResourceQuotasResponse::unsetquotas() +{ + quotasIsSet_ = false; +} + +std::string ListGeipResourceQuotasResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGeipResourceQuotasResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGeipResourceQuotasResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGeipResourceQuotasResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipSegmentCountFilterTagsRequest.cpp b/geip/src/v3/model/ListGeipSegmentCountFilterTagsRequest.cpp new file mode 100644 index 000000000..64f7b1bc9 --- /dev/null +++ b/geip/src/v3/model/ListGeipSegmentCountFilterTagsRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipSegmentCountFilterTagsRequest::ListGeipSegmentCountFilterTagsRequest() +{ + bodyIsSet_ = false; +} + +ListGeipSegmentCountFilterTagsRequest::~ListGeipSegmentCountFilterTagsRequest() = default; + +void ListGeipSegmentCountFilterTagsRequest::validate() +{ +} + +web::json::value ListGeipSegmentCountFilterTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ListGeipSegmentCountFilterTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + ListResourcesByTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +ListResourcesByTagsRequestBody ListGeipSegmentCountFilterTagsRequest::getBody() const +{ + return body_; +} + +void ListGeipSegmentCountFilterTagsRequest::setBody(const ListResourcesByTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ListGeipSegmentCountFilterTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ListGeipSegmentCountFilterTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipSegmentCountFilterTagsResponse.cpp b/geip/src/v3/model/ListGeipSegmentCountFilterTagsResponse.cpp new file mode 100644 index 000000000..99b499448 --- /dev/null +++ b/geip/src/v3/model/ListGeipSegmentCountFilterTagsResponse.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipSegmentCountFilterTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipSegmentCountFilterTagsResponse::ListGeipSegmentCountFilterTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGeipSegmentCountFilterTagsResponse::~ListGeipSegmentCountFilterTagsResponse() = default; + +void ListGeipSegmentCountFilterTagsResponse::validate() +{ +} + +web::json::value ListGeipSegmentCountFilterTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGeipSegmentCountFilterTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGeipSegmentCountFilterTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGeipSegmentCountFilterTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGeipSegmentCountFilterTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGeipSegmentCountFilterTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +int32_t ListGeipSegmentCountFilterTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListGeipSegmentCountFilterTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListGeipSegmentCountFilterTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListGeipSegmentCountFilterTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::string ListGeipSegmentCountFilterTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGeipSegmentCountFilterTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGeipSegmentCountFilterTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGeipSegmentCountFilterTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipSegmentDomainTagsRequest.cpp b/geip/src/v3/model/ListGeipSegmentDomainTagsRequest.cpp new file mode 100644 index 000000000..1e3f5720e --- /dev/null +++ b/geip/src/v3/model/ListGeipSegmentDomainTagsRequest.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipSegmentDomainTagsRequest::ListGeipSegmentDomainTagsRequest() +{ +} + +ListGeipSegmentDomainTagsRequest::~ListGeipSegmentDomainTagsRequest() = default; + +void ListGeipSegmentDomainTagsRequest::validate() +{ +} + +web::json::value ListGeipSegmentDomainTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool ListGeipSegmentDomainTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipSegmentDomainTagsResponse.cpp b/geip/src/v3/model/ListGeipSegmentDomainTagsResponse.cpp new file mode 100644 index 000000000..a9453b2d3 --- /dev/null +++ b/geip/src/v3/model/ListGeipSegmentDomainTagsResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipSegmentDomainTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipSegmentDomainTagsResponse::ListGeipSegmentDomainTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + tagsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGeipSegmentDomainTagsResponse::~ListGeipSegmentDomainTagsResponse() = default; + +void ListGeipSegmentDomainTagsResponse::validate() +{ +} + +web::json::value ListGeipSegmentDomainTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGeipSegmentDomainTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGeipSegmentDomainTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGeipSegmentDomainTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGeipSegmentDomainTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGeipSegmentDomainTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +int32_t ListGeipSegmentDomainTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListGeipSegmentDomainTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListGeipSegmentDomainTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListGeipSegmentDomainTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::vector& ListGeipSegmentDomainTagsResponse::getTags() +{ + return tags_; +} + +void ListGeipSegmentDomainTagsResponse::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListGeipSegmentDomainTagsResponse::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListGeipSegmentDomainTagsResponse::unsettags() +{ + tagsIsSet_ = false; +} + +std::string ListGeipSegmentDomainTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGeipSegmentDomainTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGeipSegmentDomainTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGeipSegmentDomainTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipSegmentFilterTagsRequest.cpp b/geip/src/v3/model/ListGeipSegmentFilterTagsRequest.cpp new file mode 100644 index 000000000..495ea2ea8 --- /dev/null +++ b/geip/src/v3/model/ListGeipSegmentFilterTagsRequest.cpp @@ -0,0 +1,146 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipSegmentFilterTagsRequest::ListGeipSegmentFilterTagsRequest() +{ + limitIsSet_ = false; + offsetIsSet_ = false; + bodyIsSet_ = false; +} + +ListGeipSegmentFilterTagsRequest::~ListGeipSegmentFilterTagsRequest() = default; + +void ListGeipSegmentFilterTagsRequest::validate() +{ +} + +web::json::value ListGeipSegmentFilterTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ListGeipSegmentFilterTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + ListResourcesByTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::vector& ListGeipSegmentFilterTagsRequest::getLimit() +{ + return limit_; +} + +void ListGeipSegmentFilterTagsRequest::setLimit(std::vector value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListGeipSegmentFilterTagsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListGeipSegmentFilterTagsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +std::vector& ListGeipSegmentFilterTagsRequest::getOffset() +{ + return offset_; +} + +void ListGeipSegmentFilterTagsRequest::setOffset(std::vector value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListGeipSegmentFilterTagsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListGeipSegmentFilterTagsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +ListResourcesByTagsRequestBody ListGeipSegmentFilterTagsRequest::getBody() const +{ + return body_; +} + +void ListGeipSegmentFilterTagsRequest::setBody(const ListResourcesByTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ListGeipSegmentFilterTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ListGeipSegmentFilterTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGeipSegmentFilterTagsResponse.cpp b/geip/src/v3/model/ListGeipSegmentFilterTagsResponse.cpp new file mode 100644 index 000000000..719451fbf --- /dev/null +++ b/geip/src/v3/model/ListGeipSegmentFilterTagsResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/geip/v3/model/ListGeipSegmentFilterTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGeipSegmentFilterTagsResponse::ListGeipSegmentFilterTagsResponse() +{ + resourcesIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGeipSegmentFilterTagsResponse::~ListGeipSegmentFilterTagsResponse() = default; + +void ListGeipSegmentFilterTagsResponse::validate() +{ +} + +web::json::value ListGeipSegmentFilterTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourcesIsSet_) { + val[utility::conversions::to_string_t("resources")] = ModelBase::toJson(resources_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGeipSegmentFilterTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resources"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resources")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResources(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::vector& ListGeipSegmentFilterTagsResponse::getResources() +{ + return resources_; +} + +void ListGeipSegmentFilterTagsResponse::setResources(const std::vector& value) +{ + resources_ = value; + resourcesIsSet_ = true; +} + +bool ListGeipSegmentFilterTagsResponse::resourcesIsSet() const +{ + return resourcesIsSet_; +} + +void ListGeipSegmentFilterTagsResponse::unsetresources() +{ + resourcesIsSet_ = false; +} + +int32_t ListGeipSegmentFilterTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListGeipSegmentFilterTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListGeipSegmentFilterTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListGeipSegmentFilterTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::string ListGeipSegmentFilterTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGeipSegmentFilterTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGeipSegmentFilterTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGeipSegmentFilterTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::string ListGeipSegmentFilterTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGeipSegmentFilterTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGeipSegmentFilterTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGeipSegmentFilterTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipCountFilterTagsRequest.cpp b/geip/src/v3/model/ListGlobalEipCountFilterTagsRequest.cpp new file mode 100644 index 000000000..9e0192e9e --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipCountFilterTagsRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipCountFilterTagsRequest::ListGlobalEipCountFilterTagsRequest() +{ + bodyIsSet_ = false; +} + +ListGlobalEipCountFilterTagsRequest::~ListGlobalEipCountFilterTagsRequest() = default; + +void ListGlobalEipCountFilterTagsRequest::validate() +{ +} + +web::json::value ListGlobalEipCountFilterTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ListGlobalEipCountFilterTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + ListResourcesByTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +ListResourcesByTagsRequestBody ListGlobalEipCountFilterTagsRequest::getBody() const +{ + return body_; +} + +void ListGlobalEipCountFilterTagsRequest::setBody(const ListResourcesByTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ListGlobalEipCountFilterTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ListGlobalEipCountFilterTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipCountFilterTagsResponse.cpp b/geip/src/v3/model/ListGlobalEipCountFilterTagsResponse.cpp new file mode 100644 index 000000000..75b6b077c --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipCountFilterTagsResponse.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipCountFilterTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipCountFilterTagsResponse::ListGlobalEipCountFilterTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGlobalEipCountFilterTagsResponse::~ListGlobalEipCountFilterTagsResponse() = default; + +void ListGlobalEipCountFilterTagsResponse::validate() +{ +} + +web::json::value ListGlobalEipCountFilterTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGlobalEipCountFilterTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGlobalEipCountFilterTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGlobalEipCountFilterTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGlobalEipCountFilterTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGlobalEipCountFilterTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +int32_t ListGlobalEipCountFilterTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListGlobalEipCountFilterTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListGlobalEipCountFilterTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListGlobalEipCountFilterTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::string ListGlobalEipCountFilterTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGlobalEipCountFilterTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGlobalEipCountFilterTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGlobalEipCountFilterTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipDomainTagsRequest.cpp b/geip/src/v3/model/ListGlobalEipDomainTagsRequest.cpp new file mode 100644 index 000000000..81954309d --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipDomainTagsRequest.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipDomainTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipDomainTagsRequest::ListGlobalEipDomainTagsRequest() +{ +} + +ListGlobalEipDomainTagsRequest::~ListGlobalEipDomainTagsRequest() = default; + +void ListGlobalEipDomainTagsRequest::validate() +{ +} + +web::json::value ListGlobalEipDomainTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool ListGlobalEipDomainTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipDomainTagsResponse.cpp b/geip/src/v3/model/ListGlobalEipDomainTagsResponse.cpp new file mode 100644 index 000000000..79f73d7ae --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipDomainTagsResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipDomainTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipDomainTagsResponse::ListGlobalEipDomainTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + tagsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGlobalEipDomainTagsResponse::~ListGlobalEipDomainTagsResponse() = default; + +void ListGlobalEipDomainTagsResponse::validate() +{ +} + +web::json::value ListGlobalEipDomainTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGlobalEipDomainTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGlobalEipDomainTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGlobalEipDomainTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGlobalEipDomainTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGlobalEipDomainTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +int32_t ListGlobalEipDomainTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListGlobalEipDomainTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListGlobalEipDomainTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListGlobalEipDomainTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::vector& ListGlobalEipDomainTagsResponse::getTags() +{ + return tags_; +} + +void ListGlobalEipDomainTagsResponse::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListGlobalEipDomainTagsResponse::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListGlobalEipDomainTagsResponse::unsettags() +{ + tagsIsSet_ = false; +} + +std::string ListGlobalEipDomainTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGlobalEipDomainTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGlobalEipDomainTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGlobalEipDomainTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipFilterTagsRequest.cpp b/geip/src/v3/model/ListGlobalEipFilterTagsRequest.cpp new file mode 100644 index 000000000..fa7294973 --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipFilterTagsRequest.cpp @@ -0,0 +1,146 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipFilterTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipFilterTagsRequest::ListGlobalEipFilterTagsRequest() +{ + limitIsSet_ = false; + offsetIsSet_ = false; + bodyIsSet_ = false; +} + +ListGlobalEipFilterTagsRequest::~ListGlobalEipFilterTagsRequest() = default; + +void ListGlobalEipFilterTagsRequest::validate() +{ +} + +web::json::value ListGlobalEipFilterTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ListGlobalEipFilterTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + ListResourcesByTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::vector& ListGlobalEipFilterTagsRequest::getLimit() +{ + return limit_; +} + +void ListGlobalEipFilterTagsRequest::setLimit(std::vector value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListGlobalEipFilterTagsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListGlobalEipFilterTagsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +std::vector& ListGlobalEipFilterTagsRequest::getOffset() +{ + return offset_; +} + +void ListGlobalEipFilterTagsRequest::setOffset(std::vector value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListGlobalEipFilterTagsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListGlobalEipFilterTagsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +ListResourcesByTagsRequestBody ListGlobalEipFilterTagsRequest::getBody() const +{ + return body_; +} + +void ListGlobalEipFilterTagsRequest::setBody(const ListResourcesByTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ListGlobalEipFilterTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ListGlobalEipFilterTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipFilterTagsResponse.cpp b/geip/src/v3/model/ListGlobalEipFilterTagsResponse.cpp new file mode 100644 index 000000000..942baee33 --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipFilterTagsResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipFilterTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipFilterTagsResponse::ListGlobalEipFilterTagsResponse() +{ + resourcesIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGlobalEipFilterTagsResponse::~ListGlobalEipFilterTagsResponse() = default; + +void ListGlobalEipFilterTagsResponse::validate() +{ +} + +web::json::value ListGlobalEipFilterTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourcesIsSet_) { + val[utility::conversions::to_string_t("resources")] = ModelBase::toJson(resources_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGlobalEipFilterTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resources"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resources")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResources(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::vector& ListGlobalEipFilterTagsResponse::getResources() +{ + return resources_; +} + +void ListGlobalEipFilterTagsResponse::setResources(const std::vector& value) +{ + resources_ = value; + resourcesIsSet_ = true; +} + +bool ListGlobalEipFilterTagsResponse::resourcesIsSet() const +{ + return resourcesIsSet_; +} + +void ListGlobalEipFilterTagsResponse::unsetresources() +{ + resourcesIsSet_ = false; +} + +int32_t ListGlobalEipFilterTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListGlobalEipFilterTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListGlobalEipFilterTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListGlobalEipFilterTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::string ListGlobalEipFilterTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGlobalEipFilterTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGlobalEipFilterTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGlobalEipFilterTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::string ListGlobalEipFilterTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGlobalEipFilterTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGlobalEipFilterTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGlobalEipFilterTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipSegments.cpp b/geip/src/v3/model/ListGlobalEipSegments.cpp new file mode 100644 index 000000000..2d48fc1be --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipSegments.cpp @@ -0,0 +1,775 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipSegments.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipSegments::ListGlobalEipSegments() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + cidr_ = ""; + cidrIsSet_ = false; + cidrV6_ = ""; + cidrV6IsSet_ = false; + freezen_ = false; + freezenIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + internetBandwidthIsSet_ = false; + associateInstanceIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +ListGlobalEipSegments::~ListGlobalEipSegments() = default; + +void ListGlobalEipSegments::validate() +{ +} + +web::json::value ListGlobalEipSegments::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(cidrIsSet_) { + val[utility::conversions::to_string_t("cidr")] = ModelBase::toJson(cidr_); + } + if(cidrV6IsSet_) { + val[utility::conversions::to_string_t("cidr_v6")] = ModelBase::toJson(cidrV6_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + if(associateInstanceIsSet_) { + val[utility::conversions::to_string_t("associate_instance")] = ModelBase::toJson(associateInstance_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool ListGlobalEipSegments::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidr(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr_v6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr_v6")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidrV6(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + InternetBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance")); + if(!fieldValue.is_null()) + { + InstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstance(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string ListGlobalEipSegments::getId() const +{ + return id_; +} + +void ListGlobalEipSegments::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListGlobalEipSegments::idIsSet() const +{ + return idIsSet_; +} + +void ListGlobalEipSegments::unsetid() +{ + idIsSet_ = false; +} + +std::string ListGlobalEipSegments::getName() const +{ + return name_; +} + +void ListGlobalEipSegments::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListGlobalEipSegments::nameIsSet() const +{ + return nameIsSet_; +} + +void ListGlobalEipSegments::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListGlobalEipSegments::getDescription() const +{ + return description_; +} + +void ListGlobalEipSegments::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool ListGlobalEipSegments::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void ListGlobalEipSegments::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string ListGlobalEipSegments::getDomainId() const +{ + return domainId_; +} + +void ListGlobalEipSegments::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool ListGlobalEipSegments::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void ListGlobalEipSegments::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string ListGlobalEipSegments::getAccessSite() const +{ + return accessSite_; +} + +void ListGlobalEipSegments::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListGlobalEipSegments::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListGlobalEipSegments::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string ListGlobalEipSegments::getGeipPoolName() const +{ + return geipPoolName_; +} + +void ListGlobalEipSegments::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool ListGlobalEipSegments::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void ListGlobalEipSegments::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string ListGlobalEipSegments::getIsp() const +{ + return isp_; +} + +void ListGlobalEipSegments::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ListGlobalEipSegments::ispIsSet() const +{ + return ispIsSet_; +} + +void ListGlobalEipSegments::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t ListGlobalEipSegments::getIpVersion() const +{ + return ipVersion_; +} + +void ListGlobalEipSegments::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListGlobalEipSegments::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListGlobalEipSegments::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string ListGlobalEipSegments::getCidr() const +{ + return cidr_; +} + +void ListGlobalEipSegments::setCidr(const std::string& value) +{ + cidr_ = value; + cidrIsSet_ = true; +} + +bool ListGlobalEipSegments::cidrIsSet() const +{ + return cidrIsSet_; +} + +void ListGlobalEipSegments::unsetcidr() +{ + cidrIsSet_ = false; +} + +std::string ListGlobalEipSegments::getCidrV6() const +{ + return cidrV6_; +} + +void ListGlobalEipSegments::setCidrV6(const std::string& value) +{ + cidrV6_ = value; + cidrV6IsSet_ = true; +} + +bool ListGlobalEipSegments::cidrV6IsSet() const +{ + return cidrV6IsSet_; +} + +void ListGlobalEipSegments::unsetcidrV6() +{ + cidrV6IsSet_ = false; +} + +bool ListGlobalEipSegments::isFreezen() const +{ + return freezen_; +} + +void ListGlobalEipSegments::setFreezen(bool value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool ListGlobalEipSegments::freezenIsSet() const +{ + return freezenIsSet_; +} + +void ListGlobalEipSegments::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::string ListGlobalEipSegments::getFreezenInfo() const +{ + return freezenInfo_; +} + +void ListGlobalEipSegments::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool ListGlobalEipSegments::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void ListGlobalEipSegments::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +std::string ListGlobalEipSegments::getStatus() const +{ + return status_; +} + +void ListGlobalEipSegments::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListGlobalEipSegments::statusIsSet() const +{ + return statusIsSet_; +} + +void ListGlobalEipSegments::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime ListGlobalEipSegments::getCreatedAt() const +{ + return createdAt_; +} + +void ListGlobalEipSegments::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListGlobalEipSegments::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListGlobalEipSegments::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListGlobalEipSegments::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListGlobalEipSegments::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListGlobalEipSegments::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListGlobalEipSegments::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +InternetBandwidthInfo ListGlobalEipSegments::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void ListGlobalEipSegments::setInternetBandwidth(const InternetBandwidthInfo& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool ListGlobalEipSegments::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void ListGlobalEipSegments::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +InstanceInfo ListGlobalEipSegments::getAssociateInstance() const +{ + return associateInstance_; +} + +void ListGlobalEipSegments::setAssociateInstance(const InstanceInfo& value) +{ + associateInstance_ = value; + associateInstanceIsSet_ = true; +} + +bool ListGlobalEipSegments::associateInstanceIsSet() const +{ + return associateInstanceIsSet_; +} + +void ListGlobalEipSegments::unsetassociateInstance() +{ + associateInstanceIsSet_ = false; +} + +bool ListGlobalEipSegments::isIsPrePaid() const +{ + return isPrePaid_; +} + +void ListGlobalEipSegments::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool ListGlobalEipSegments::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void ListGlobalEipSegments::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& ListGlobalEipSegments::getTags() +{ + return tags_; +} + +void ListGlobalEipSegments::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListGlobalEipSegments::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListGlobalEipSegments::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ListGlobalEipSegments::getSysTags() +{ + return sysTags_; +} + +void ListGlobalEipSegments::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ListGlobalEipSegments::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ListGlobalEipSegments::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ListGlobalEipSegments::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ListGlobalEipSegments::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListGlobalEipSegments::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListGlobalEipSegments::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipSegmentsRequest.cpp b/geip/src/v3/model/ListGlobalEipSegmentsRequest.cpp new file mode 100644 index 000000000..c9b5e5875 --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipSegmentsRequest.cpp @@ -0,0 +1,1069 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipSegmentsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipSegmentsRequest::ListGlobalEipSegmentsRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + internetBandwidthIdIsSet_ = false; + nameIsSet_ = false; + nameLike_ = ""; + nameLikeIsSet_ = false; + accessSiteIsSet_ = false; + geipPoolNameIsSet_ = false; + ispIsSet_ = false; + ipVersionIsSet_ = false; + cidrIsSet_ = false; + cidrV6IsSet_ = false; + freezenIsSet_ = false; + internetBandwidthIsNullIsSet_ = false; + statusIsSet_ = false; + associateInstanceRegionIsSet_ = false; + associateInstanceInstanceTypeIsSet_ = false; + associateInstancePublicBorderGroupIsSet_ = false; + associateInstanceInstanceSiteIsSet_ = false; + associateInstanceInstanceIdIsSet_ = false; + associateInstanceProjectIdIsSet_ = false; + associateInstanceServiceIdIsSet_ = false; + associateInstanceServiceTypeIsSet_ = false; + enterpriseProjectIdIsSet_ = false; + tagsIsSet_ = false; +} + +ListGlobalEipSegmentsRequest::~ListGlobalEipSegmentsRequest() = default; + +void ListGlobalEipSegmentsRequest::validate() +{ +} + +web::json::value ListGlobalEipSegmentsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(nameLikeIsSet_) { + val[utility::conversions::to_string_t("name_like")] = ModelBase::toJson(nameLike_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(cidrIsSet_) { + val[utility::conversions::to_string_t("cidr")] = ModelBase::toJson(cidr_); + } + if(cidrV6IsSet_) { + val[utility::conversions::to_string_t("cidr_v6")] = ModelBase::toJson(cidrV6_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(internetBandwidthIsNullIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_is_null")] = ModelBase::toJson(internetBandwidthIsNull_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(associateInstanceRegionIsSet_) { + val[utility::conversions::to_string_t("associate_instance.region")] = ModelBase::toJson(associateInstanceRegion_); + } + if(associateInstanceInstanceTypeIsSet_) { + val[utility::conversions::to_string_t("associate_instance.instance_type")] = ModelBase::toJson(associateInstanceInstanceType_); + } + if(associateInstancePublicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("associate_instance.public_border_group")] = ModelBase::toJson(associateInstancePublicBorderGroup_); + } + if(associateInstanceInstanceSiteIsSet_) { + val[utility::conversions::to_string_t("associate_instance.instance_site")] = ModelBase::toJson(associateInstanceInstanceSite_); + } + if(associateInstanceInstanceIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance.instance_id")] = ModelBase::toJson(associateInstanceInstanceId_); + } + if(associateInstanceProjectIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance.project_id")] = ModelBase::toJson(associateInstanceProjectId_); + } + if(associateInstanceServiceIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance.service_id")] = ModelBase::toJson(associateInstanceServiceId_); + } + if(associateInstanceServiceTypeIsSet_) { + val[utility::conversions::to_string_t("associate_instance.service_type")] = ModelBase::toJson(associateInstanceServiceType_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool ListGlobalEipSegmentsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name_like"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name_like")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNameLike(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidr(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr_v6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr_v6")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidrV6(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_is_null"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_is_null")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthIsNull(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.region")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.instance_type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.public_border_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstancePublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.instance_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.instance_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInstanceSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.instance_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.service_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.service_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceServiceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance.service_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance.service_type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceServiceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +int32_t ListGlobalEipSegmentsRequest::getLimit() const +{ + return limit_; +} + +void ListGlobalEipSegmentsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListGlobalEipSegmentsRequest::getOffset() const +{ + return offset_; +} + +void ListGlobalEipSegmentsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListGlobalEipSegmentsRequest::getMarker() const +{ + return marker_; +} + +void ListGlobalEipSegmentsRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListGlobalEipSegmentsRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListGlobalEipSegmentsRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getFields() +{ + return fields_; +} + +void ListGlobalEipSegmentsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getSortKey() +{ + return sortKey_; +} + +void ListGlobalEipSegmentsRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getSortDir() +{ + return sortDir_; +} + +void ListGlobalEipSegmentsRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getId() +{ + return id_; +} + +void ListGlobalEipSegmentsRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getInternetBandwidthId() +{ + return internetBandwidthId_; +} + +void ListGlobalEipSegmentsRequest::setInternetBandwidthId(const std::vector& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getName() +{ + return name_; +} + +void ListGlobalEipSegmentsRequest::setName(const std::vector& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListGlobalEipSegmentsRequest::getNameLike() const +{ + return nameLike_; +} + +void ListGlobalEipSegmentsRequest::setNameLike(const std::string& value) +{ + nameLike_ = value; + nameLikeIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::nameLikeIsSet() const +{ + return nameLikeIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetnameLike() +{ + nameLikeIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAccessSite() +{ + return accessSite_; +} + +void ListGlobalEipSegmentsRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getGeipPoolName() +{ + return geipPoolName_; +} + +void ListGlobalEipSegmentsRequest::setGeipPoolName(const std::vector& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getIsp() +{ + return isp_; +} + +void ListGlobalEipSegmentsRequest::setIsp(const std::vector& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::ispIsSet() const +{ + return ispIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetisp() +{ + ispIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getIpVersion() +{ + return ipVersion_; +} + +void ListGlobalEipSegmentsRequest::setIpVersion(std::vector value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getCidr() +{ + return cidr_; +} + +void ListGlobalEipSegmentsRequest::setCidr(const std::vector& value) +{ + cidr_ = value; + cidrIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::cidrIsSet() const +{ + return cidrIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetcidr() +{ + cidrIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getCidrV6() +{ + return cidrV6_; +} + +void ListGlobalEipSegmentsRequest::setCidrV6(const std::vector& value) +{ + cidrV6_ = value; + cidrV6IsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::cidrV6IsSet() const +{ + return cidrV6IsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetcidrV6() +{ + cidrV6IsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getFreezen() +{ + return freezen_; +} + +void ListGlobalEipSegmentsRequest::setFreezen(std::vector value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::freezenIsSet() const +{ + return freezenIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getInternetBandwidthIsNull() +{ + return internetBandwidthIsNull_; +} + +void ListGlobalEipSegmentsRequest::setInternetBandwidthIsNull(std::vector value) +{ + internetBandwidthIsNull_ = value; + internetBandwidthIsNullIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::internetBandwidthIsNullIsSet() const +{ + return internetBandwidthIsNullIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetinternetBandwidthIsNull() +{ + internetBandwidthIsNullIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getStatus() +{ + return status_; +} + +void ListGlobalEipSegmentsRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstanceRegion() +{ + return associateInstanceRegion_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstanceRegion(const std::vector& value) +{ + associateInstanceRegion_ = value; + associateInstanceRegionIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstanceRegionIsSet() const +{ + return associateInstanceRegionIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstanceRegion() +{ + associateInstanceRegionIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstanceInstanceType() +{ + return associateInstanceInstanceType_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstanceInstanceType(const std::vector& value) +{ + associateInstanceInstanceType_ = value; + associateInstanceInstanceTypeIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstanceInstanceTypeIsSet() const +{ + return associateInstanceInstanceTypeIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstanceInstanceType() +{ + associateInstanceInstanceTypeIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstancePublicBorderGroup() +{ + return associateInstancePublicBorderGroup_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstancePublicBorderGroup(const std::vector& value) +{ + associateInstancePublicBorderGroup_ = value; + associateInstancePublicBorderGroupIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstancePublicBorderGroupIsSet() const +{ + return associateInstancePublicBorderGroupIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstancePublicBorderGroup() +{ + associateInstancePublicBorderGroupIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstanceInstanceSite() +{ + return associateInstanceInstanceSite_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstanceInstanceSite(const std::vector& value) +{ + associateInstanceInstanceSite_ = value; + associateInstanceInstanceSiteIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstanceInstanceSiteIsSet() const +{ + return associateInstanceInstanceSiteIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstanceInstanceSite() +{ + associateInstanceInstanceSiteIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstanceInstanceId() +{ + return associateInstanceInstanceId_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstanceInstanceId(const std::vector& value) +{ + associateInstanceInstanceId_ = value; + associateInstanceInstanceIdIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstanceInstanceIdIsSet() const +{ + return associateInstanceInstanceIdIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstanceInstanceId() +{ + associateInstanceInstanceIdIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstanceProjectId() +{ + return associateInstanceProjectId_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstanceProjectId(const std::vector& value) +{ + associateInstanceProjectId_ = value; + associateInstanceProjectIdIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstanceProjectIdIsSet() const +{ + return associateInstanceProjectIdIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstanceProjectId() +{ + associateInstanceProjectIdIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstanceServiceId() +{ + return associateInstanceServiceId_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstanceServiceId(const std::vector& value) +{ + associateInstanceServiceId_ = value; + associateInstanceServiceIdIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstanceServiceIdIsSet() const +{ + return associateInstanceServiceIdIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstanceServiceId() +{ + associateInstanceServiceIdIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getAssociateInstanceServiceType() +{ + return associateInstanceServiceType_; +} + +void ListGlobalEipSegmentsRequest::setAssociateInstanceServiceType(const std::vector& value) +{ + associateInstanceServiceType_ = value; + associateInstanceServiceTypeIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::associateInstanceServiceTypeIsSet() const +{ + return associateInstanceServiceTypeIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetassociateInstanceServiceType() +{ + associateInstanceServiceTypeIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getEnterpriseProjectId() +{ + return enterpriseProjectId_; +} + +void ListGlobalEipSegmentsRequest::setEnterpriseProjectId(const std::vector& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsRequest::getTags() +{ + return tags_; +} + +void ListGlobalEipSegmentsRequest::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListGlobalEipSegmentsRequest::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListGlobalEipSegmentsRequest::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipSegmentsResponse.cpp b/geip/src/v3/model/ListGlobalEipSegmentsResponse.cpp new file mode 100644 index 000000000..34fd01051 --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipSegmentsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipSegmentsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipSegmentsResponse::ListGlobalEipSegmentsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipSegmentsIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGlobalEipSegmentsResponse::~ListGlobalEipSegmentsResponse() = default; + +void ListGlobalEipSegmentsResponse::validate() +{ +} + +web::json::value ListGlobalEipSegmentsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipSegmentsIsSet_) { + val[utility::conversions::to_string_t("global_eip_segments")] = ModelBase::toJson(globalEipSegments_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGlobalEipSegmentsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_segments"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segments")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegments(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGlobalEipSegmentsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGlobalEipSegmentsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGlobalEipSegmentsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGlobalEipSegmentsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListGlobalEipSegmentsResponse::getGlobalEipSegments() +{ + return globalEipSegments_; +} + +void ListGlobalEipSegmentsResponse::setGlobalEipSegments(const std::vector& value) +{ + globalEipSegments_ = value; + globalEipSegmentsIsSet_ = true; +} + +bool ListGlobalEipSegmentsResponse::globalEipSegmentsIsSet() const +{ + return globalEipSegmentsIsSet_; +} + +void ListGlobalEipSegmentsResponse::unsetglobalEipSegments() +{ + globalEipSegmentsIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListGlobalEipSegmentsResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListGlobalEipSegmentsResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListGlobalEipSegmentsResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListGlobalEipSegmentsResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListGlobalEipSegmentsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGlobalEipSegmentsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGlobalEipSegmentsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGlobalEipSegmentsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEips.cpp b/geip/src/v3/model/ListGlobalEips.cpp new file mode 100644 index 000000000..f9da6beab --- /dev/null +++ b/geip/src/v3/model/ListGlobalEips.cpp @@ -0,0 +1,844 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEips.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEips::ListGlobalEips() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + ipAddress_ = ""; + ipAddressIsSet_ = false; + ipv6Address_ = ""; + ipv6AddressIsSet_ = false; + freezen_ = false; + freezenIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + polluted_ = false; + pollutedIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + internetBandwidthInfoIsSet_ = false; + globalConnectionBandwidthInfoIsSet_ = false; + associateInstanceInfoIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +ListGlobalEips::~ListGlobalEips() = default; + +void ListGlobalEips::validate() +{ +} + +web::json::value ListGlobalEips::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(ipv6AddressIsSet_) { + val[utility::conversions::to_string_t("ipv6_address")] = ModelBase::toJson(ipv6Address_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(pollutedIsSet_) { + val[utility::conversions::to_string_t("polluted")] = ModelBase::toJson(polluted_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(internetBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_info")] = ModelBase::toJson(internetBandwidthInfo_); + } + if(globalConnectionBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("global_connection_bandwidth_info")] = ModelBase::toJson(globalConnectionBandwidthInfo_); + } + if(associateInstanceInfoIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info")] = ModelBase::toJson(associateInstanceInfo_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool ListGlobalEips::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ipv6_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpv6Address(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("polluted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("polluted")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPolluted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_info")); + if(!fieldValue.is_null()) + { + InternetBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_connection_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_connection_bandwidth_info")); + if(!fieldValue.is_null()) + { + GlobalConnectionBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalConnectionBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info")); + if(!fieldValue.is_null()) + { + InstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string ListGlobalEips::getId() const +{ + return id_; +} + +void ListGlobalEips::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListGlobalEips::idIsSet() const +{ + return idIsSet_; +} + +void ListGlobalEips::unsetid() +{ + idIsSet_ = false; +} + +std::string ListGlobalEips::getName() const +{ + return name_; +} + +void ListGlobalEips::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListGlobalEips::nameIsSet() const +{ + return nameIsSet_; +} + +void ListGlobalEips::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListGlobalEips::getDescription() const +{ + return description_; +} + +void ListGlobalEips::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool ListGlobalEips::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void ListGlobalEips::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string ListGlobalEips::getDomainId() const +{ + return domainId_; +} + +void ListGlobalEips::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool ListGlobalEips::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void ListGlobalEips::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string ListGlobalEips::getAccessSite() const +{ + return accessSite_; +} + +void ListGlobalEips::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListGlobalEips::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListGlobalEips::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string ListGlobalEips::getGeipPoolName() const +{ + return geipPoolName_; +} + +void ListGlobalEips::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool ListGlobalEips::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void ListGlobalEips::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string ListGlobalEips::getIsp() const +{ + return isp_; +} + +void ListGlobalEips::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ListGlobalEips::ispIsSet() const +{ + return ispIsSet_; +} + +void ListGlobalEips::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t ListGlobalEips::getIpVersion() const +{ + return ipVersion_; +} + +void ListGlobalEips::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListGlobalEips::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListGlobalEips::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string ListGlobalEips::getIpAddress() const +{ + return ipAddress_; +} + +void ListGlobalEips::setIpAddress(const std::string& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool ListGlobalEips::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void ListGlobalEips::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::string ListGlobalEips::getIpv6Address() const +{ + return ipv6Address_; +} + +void ListGlobalEips::setIpv6Address(const std::string& value) +{ + ipv6Address_ = value; + ipv6AddressIsSet_ = true; +} + +bool ListGlobalEips::ipv6AddressIsSet() const +{ + return ipv6AddressIsSet_; +} + +void ListGlobalEips::unsetipv6Address() +{ + ipv6AddressIsSet_ = false; +} + +bool ListGlobalEips::isFreezen() const +{ + return freezen_; +} + +void ListGlobalEips::setFreezen(bool value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool ListGlobalEips::freezenIsSet() const +{ + return freezenIsSet_; +} + +void ListGlobalEips::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::string ListGlobalEips::getFreezenInfo() const +{ + return freezenInfo_; +} + +void ListGlobalEips::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool ListGlobalEips::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void ListGlobalEips::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +bool ListGlobalEips::isPolluted() const +{ + return polluted_; +} + +void ListGlobalEips::setPolluted(bool value) +{ + polluted_ = value; + pollutedIsSet_ = true; +} + +bool ListGlobalEips::pollutedIsSet() const +{ + return pollutedIsSet_; +} + +void ListGlobalEips::unsetpolluted() +{ + pollutedIsSet_ = false; +} + +std::string ListGlobalEips::getStatus() const +{ + return status_; +} + +void ListGlobalEips::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListGlobalEips::statusIsSet() const +{ + return statusIsSet_; +} + +void ListGlobalEips::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime ListGlobalEips::getCreatedAt() const +{ + return createdAt_; +} + +void ListGlobalEips::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListGlobalEips::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListGlobalEips::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListGlobalEips::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListGlobalEips::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListGlobalEips::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListGlobalEips::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +InternetBandwidthInfo ListGlobalEips::getInternetBandwidthInfo() const +{ + return internetBandwidthInfo_; +} + +void ListGlobalEips::setInternetBandwidthInfo(const InternetBandwidthInfo& value) +{ + internetBandwidthInfo_ = value; + internetBandwidthInfoIsSet_ = true; +} + +bool ListGlobalEips::internetBandwidthInfoIsSet() const +{ + return internetBandwidthInfoIsSet_; +} + +void ListGlobalEips::unsetinternetBandwidthInfo() +{ + internetBandwidthInfoIsSet_ = false; +} + +GlobalConnectionBandwidthInfo ListGlobalEips::getGlobalConnectionBandwidthInfo() const +{ + return globalConnectionBandwidthInfo_; +} + +void ListGlobalEips::setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value) +{ + globalConnectionBandwidthInfo_ = value; + globalConnectionBandwidthInfoIsSet_ = true; +} + +bool ListGlobalEips::globalConnectionBandwidthInfoIsSet() const +{ + return globalConnectionBandwidthInfoIsSet_; +} + +void ListGlobalEips::unsetglobalConnectionBandwidthInfo() +{ + globalConnectionBandwidthInfoIsSet_ = false; +} + +InstanceInfo ListGlobalEips::getAssociateInstanceInfo() const +{ + return associateInstanceInfo_; +} + +void ListGlobalEips::setAssociateInstanceInfo(const InstanceInfo& value) +{ + associateInstanceInfo_ = value; + associateInstanceInfoIsSet_ = true; +} + +bool ListGlobalEips::associateInstanceInfoIsSet() const +{ + return associateInstanceInfoIsSet_; +} + +void ListGlobalEips::unsetassociateInstanceInfo() +{ + associateInstanceInfoIsSet_ = false; +} + +bool ListGlobalEips::isIsPrePaid() const +{ + return isPrePaid_; +} + +void ListGlobalEips::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool ListGlobalEips::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void ListGlobalEips::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& ListGlobalEips::getTags() +{ + return tags_; +} + +void ListGlobalEips::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListGlobalEips::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListGlobalEips::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ListGlobalEips::getSysTags() +{ + return sysTags_; +} + +void ListGlobalEips::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ListGlobalEips::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ListGlobalEips::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ListGlobalEips::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ListGlobalEips::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListGlobalEips::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListGlobalEips::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipsRequest.cpp b/geip/src/v3/model/ListGlobalEipsRequest.cpp new file mode 100644 index 000000000..1cb2f0ac2 --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipsRequest.cpp @@ -0,0 +1,1137 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipsRequest::ListGlobalEipsRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + internetBandwidthIdIsSet_ = false; + nameIsSet_ = false; + nameLike_ = ""; + nameLikeIsSet_ = false; + accessSiteIsSet_ = false; + geipPoolNameIsSet_ = false; + ispIsSet_ = false; + ipVersionIsSet_ = false; + ipAddressIsSet_ = false; + ipv6AddressIsSet_ = false; + freezenIsSet_ = false; + pollutedIsSet_ = false; + internetBandwidthIsNullIsSet_ = false; + gcbBandwidthIsNullIsSet_ = false; + statusIsSet_ = false; + associateInstanceInfoRegionIsSet_ = false; + associateInstanceInfoInstanceTypeIsSet_ = false; + associateInstanceInfoPublicBorderGroupIsSet_ = false; + associateInstanceInfoInstanceSiteIsSet_ = false; + associateInstanceInfoInstanceIdIsSet_ = false; + associateInstanceInfoProjectIdIsSet_ = false; + associateInstanceInfoServiceIdIsSet_ = false; + associateInstanceInfoServiceTypeIsSet_ = false; + enterpriseProjectIdIsSet_ = false; + tagsIsSet_ = false; +} + +ListGlobalEipsRequest::~ListGlobalEipsRequest() = default; + +void ListGlobalEipsRequest::validate() +{ +} + +web::json::value ListGlobalEipsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(nameLikeIsSet_) { + val[utility::conversions::to_string_t("name_like")] = ModelBase::toJson(nameLike_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(ipv6AddressIsSet_) { + val[utility::conversions::to_string_t("ipv6_address")] = ModelBase::toJson(ipv6Address_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(pollutedIsSet_) { + val[utility::conversions::to_string_t("polluted")] = ModelBase::toJson(polluted_); + } + if(internetBandwidthIsNullIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_is_null")] = ModelBase::toJson(internetBandwidthIsNull_); + } + if(gcbBandwidthIsNullIsSet_) { + val[utility::conversions::to_string_t("gcb_bandwidth_is_null")] = ModelBase::toJson(gcbBandwidthIsNull_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(associateInstanceInfoRegionIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.region")] = ModelBase::toJson(associateInstanceInfoRegion_); + } + if(associateInstanceInfoInstanceTypeIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.instance_type")] = ModelBase::toJson(associateInstanceInfoInstanceType_); + } + if(associateInstanceInfoPublicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.public_border_group")] = ModelBase::toJson(associateInstanceInfoPublicBorderGroup_); + } + if(associateInstanceInfoInstanceSiteIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.instance_site")] = ModelBase::toJson(associateInstanceInfoInstanceSite_); + } + if(associateInstanceInfoInstanceIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.instance_id")] = ModelBase::toJson(associateInstanceInfoInstanceId_); + } + if(associateInstanceInfoProjectIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.project_id")] = ModelBase::toJson(associateInstanceInfoProjectId_); + } + if(associateInstanceInfoServiceIdIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.service_id")] = ModelBase::toJson(associateInstanceInfoServiceId_); + } + if(associateInstanceInfoServiceTypeIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info.service_type")] = ModelBase::toJson(associateInstanceInfoServiceType_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool ListGlobalEipsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name_like"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name_like")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNameLike(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ipv6_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_address")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpv6Address(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("polluted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("polluted")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPolluted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_is_null"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_is_null")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthIsNull(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("gcb_bandwidth_is_null"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("gcb_bandwidth_is_null")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGcbBandwidthIsNull(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.region")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.instance_type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.public_border_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.instance_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.instance_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoInstanceSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.instance_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.service_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.service_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoServiceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info.service_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info.service_type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfoServiceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +int32_t ListGlobalEipsRequest::getLimit() const +{ + return limit_; +} + +void ListGlobalEipsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListGlobalEipsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListGlobalEipsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListGlobalEipsRequest::getOffset() const +{ + return offset_; +} + +void ListGlobalEipsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListGlobalEipsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListGlobalEipsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListGlobalEipsRequest::getMarker() const +{ + return marker_; +} + +void ListGlobalEipsRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListGlobalEipsRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListGlobalEipsRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListGlobalEipsRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListGlobalEipsRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListGlobalEipsRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListGlobalEipsRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getFields() +{ + return fields_; +} + +void ListGlobalEipsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListGlobalEipsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListGlobalEipsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getSortKey() +{ + return sortKey_; +} + +void ListGlobalEipsRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListGlobalEipsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListGlobalEipsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getSortDir() +{ + return sortDir_; +} + +void ListGlobalEipsRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListGlobalEipsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListGlobalEipsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getId() +{ + return id_; +} + +void ListGlobalEipsRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListGlobalEipsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListGlobalEipsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getInternetBandwidthId() +{ + return internetBandwidthId_; +} + +void ListGlobalEipsRequest::setInternetBandwidthId(const std::vector& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool ListGlobalEipsRequest::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void ListGlobalEipsRequest::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getName() +{ + return name_; +} + +void ListGlobalEipsRequest::setName(const std::vector& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListGlobalEipsRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void ListGlobalEipsRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListGlobalEipsRequest::getNameLike() const +{ + return nameLike_; +} + +void ListGlobalEipsRequest::setNameLike(const std::string& value) +{ + nameLike_ = value; + nameLikeIsSet_ = true; +} + +bool ListGlobalEipsRequest::nameLikeIsSet() const +{ + return nameLikeIsSet_; +} + +void ListGlobalEipsRequest::unsetnameLike() +{ + nameLikeIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAccessSite() +{ + return accessSite_; +} + +void ListGlobalEipsRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListGlobalEipsRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListGlobalEipsRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getGeipPoolName() +{ + return geipPoolName_; +} + +void ListGlobalEipsRequest::setGeipPoolName(const std::vector& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool ListGlobalEipsRequest::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void ListGlobalEipsRequest::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getIsp() +{ + return isp_; +} + +void ListGlobalEipsRequest::setIsp(const std::vector& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ListGlobalEipsRequest::ispIsSet() const +{ + return ispIsSet_; +} + +void ListGlobalEipsRequest::unsetisp() +{ + ispIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getIpVersion() +{ + return ipVersion_; +} + +void ListGlobalEipsRequest::setIpVersion(std::vector value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListGlobalEipsRequest::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListGlobalEipsRequest::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getIpAddress() +{ + return ipAddress_; +} + +void ListGlobalEipsRequest::setIpAddress(const std::vector& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool ListGlobalEipsRequest::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void ListGlobalEipsRequest::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getIpv6Address() +{ + return ipv6Address_; +} + +void ListGlobalEipsRequest::setIpv6Address(const std::vector& value) +{ + ipv6Address_ = value; + ipv6AddressIsSet_ = true; +} + +bool ListGlobalEipsRequest::ipv6AddressIsSet() const +{ + return ipv6AddressIsSet_; +} + +void ListGlobalEipsRequest::unsetipv6Address() +{ + ipv6AddressIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getFreezen() +{ + return freezen_; +} + +void ListGlobalEipsRequest::setFreezen(std::vector value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool ListGlobalEipsRequest::freezenIsSet() const +{ + return freezenIsSet_; +} + +void ListGlobalEipsRequest::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getPolluted() +{ + return polluted_; +} + +void ListGlobalEipsRequest::setPolluted(std::vector value) +{ + polluted_ = value; + pollutedIsSet_ = true; +} + +bool ListGlobalEipsRequest::pollutedIsSet() const +{ + return pollutedIsSet_; +} + +void ListGlobalEipsRequest::unsetpolluted() +{ + pollutedIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getInternetBandwidthIsNull() +{ + return internetBandwidthIsNull_; +} + +void ListGlobalEipsRequest::setInternetBandwidthIsNull(std::vector value) +{ + internetBandwidthIsNull_ = value; + internetBandwidthIsNullIsSet_ = true; +} + +bool ListGlobalEipsRequest::internetBandwidthIsNullIsSet() const +{ + return internetBandwidthIsNullIsSet_; +} + +void ListGlobalEipsRequest::unsetinternetBandwidthIsNull() +{ + internetBandwidthIsNullIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getGcbBandwidthIsNull() +{ + return gcbBandwidthIsNull_; +} + +void ListGlobalEipsRequest::setGcbBandwidthIsNull(std::vector value) +{ + gcbBandwidthIsNull_ = value; + gcbBandwidthIsNullIsSet_ = true; +} + +bool ListGlobalEipsRequest::gcbBandwidthIsNullIsSet() const +{ + return gcbBandwidthIsNullIsSet_; +} + +void ListGlobalEipsRequest::unsetgcbBandwidthIsNull() +{ + gcbBandwidthIsNullIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getStatus() +{ + return status_; +} + +void ListGlobalEipsRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListGlobalEipsRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void ListGlobalEipsRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoRegion() +{ + return associateInstanceInfoRegion_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoRegion(const std::vector& value) +{ + associateInstanceInfoRegion_ = value; + associateInstanceInfoRegionIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoRegionIsSet() const +{ + return associateInstanceInfoRegionIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoRegion() +{ + associateInstanceInfoRegionIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoInstanceType() +{ + return associateInstanceInfoInstanceType_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoInstanceType(const std::vector& value) +{ + associateInstanceInfoInstanceType_ = value; + associateInstanceInfoInstanceTypeIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoInstanceTypeIsSet() const +{ + return associateInstanceInfoInstanceTypeIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoInstanceType() +{ + associateInstanceInfoInstanceTypeIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoPublicBorderGroup() +{ + return associateInstanceInfoPublicBorderGroup_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoPublicBorderGroup(const std::vector& value) +{ + associateInstanceInfoPublicBorderGroup_ = value; + associateInstanceInfoPublicBorderGroupIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoPublicBorderGroupIsSet() const +{ + return associateInstanceInfoPublicBorderGroupIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoPublicBorderGroup() +{ + associateInstanceInfoPublicBorderGroupIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoInstanceSite() +{ + return associateInstanceInfoInstanceSite_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoInstanceSite(const std::vector& value) +{ + associateInstanceInfoInstanceSite_ = value; + associateInstanceInfoInstanceSiteIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoInstanceSiteIsSet() const +{ + return associateInstanceInfoInstanceSiteIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoInstanceSite() +{ + associateInstanceInfoInstanceSiteIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoInstanceId() +{ + return associateInstanceInfoInstanceId_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoInstanceId(const std::vector& value) +{ + associateInstanceInfoInstanceId_ = value; + associateInstanceInfoInstanceIdIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoInstanceIdIsSet() const +{ + return associateInstanceInfoInstanceIdIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoInstanceId() +{ + associateInstanceInfoInstanceIdIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoProjectId() +{ + return associateInstanceInfoProjectId_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoProjectId(const std::vector& value) +{ + associateInstanceInfoProjectId_ = value; + associateInstanceInfoProjectIdIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoProjectIdIsSet() const +{ + return associateInstanceInfoProjectIdIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoProjectId() +{ + associateInstanceInfoProjectIdIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoServiceId() +{ + return associateInstanceInfoServiceId_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoServiceId(const std::vector& value) +{ + associateInstanceInfoServiceId_ = value; + associateInstanceInfoServiceIdIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoServiceIdIsSet() const +{ + return associateInstanceInfoServiceIdIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoServiceId() +{ + associateInstanceInfoServiceIdIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getAssociateInstanceInfoServiceType() +{ + return associateInstanceInfoServiceType_; +} + +void ListGlobalEipsRequest::setAssociateInstanceInfoServiceType(const std::vector& value) +{ + associateInstanceInfoServiceType_ = value; + associateInstanceInfoServiceTypeIsSet_ = true; +} + +bool ListGlobalEipsRequest::associateInstanceInfoServiceTypeIsSet() const +{ + return associateInstanceInfoServiceTypeIsSet_; +} + +void ListGlobalEipsRequest::unsetassociateInstanceInfoServiceType() +{ + associateInstanceInfoServiceTypeIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getEnterpriseProjectId() +{ + return enterpriseProjectId_; +} + +void ListGlobalEipsRequest::setEnterpriseProjectId(const std::vector& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListGlobalEipsRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListGlobalEipsRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::vector& ListGlobalEipsRequest::getTags() +{ + return tags_; +} + +void ListGlobalEipsRequest::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListGlobalEipsRequest::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListGlobalEipsRequest::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipsResponse.cpp b/geip/src/v3/model/ListGlobalEipsResponse.cpp new file mode 100644 index 000000000..557312cf8 --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipsResponse::ListGlobalEipsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipsIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListGlobalEipsResponse::~ListGlobalEipsResponse() = default; + +void ListGlobalEipsResponse::validate() +{ +} + +web::json::value ListGlobalEipsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipsIsSet_) { + val[utility::conversions::to_string_t("global_eips")] = ModelBase::toJson(globalEips_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListGlobalEipsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eips")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEips(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListGlobalEipsResponse::getRequestId() const +{ + return requestId_; +} + +void ListGlobalEipsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListGlobalEipsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListGlobalEipsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListGlobalEipsResponse::getGlobalEips() +{ + return globalEips_; +} + +void ListGlobalEipsResponse::setGlobalEips(const std::vector& value) +{ + globalEips_ = value; + globalEipsIsSet_ = true; +} + +bool ListGlobalEipsResponse::globalEipsIsSet() const +{ + return globalEipsIsSet_; +} + +void ListGlobalEipsResponse::unsetglobalEips() +{ + globalEipsIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListGlobalEipsResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListGlobalEipsResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListGlobalEipsResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListGlobalEipsResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListGlobalEipsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListGlobalEipsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListGlobalEipsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListGlobalEipsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListGlobalEipsResponseBody_page_info.cpp b/geip/src/v3/model/ListGlobalEipsResponseBody_page_info.cpp new file mode 100644 index 000000000..9484dcbf9 --- /dev/null +++ b/geip/src/v3/model/ListGlobalEipsResponseBody_page_info.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/ListGlobalEipsResponseBody_page_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListGlobalEipsResponseBody_page_info::ListGlobalEipsResponseBody_page_info() +{ + nextMarker_ = ""; + nextMarkerIsSet_ = false; + previousMarker_ = ""; + previousMarkerIsSet_ = false; + currentCount_ = 0; + currentCountIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info::~ListGlobalEipsResponseBody_page_info() = default; + +void ListGlobalEipsResponseBody_page_info::validate() +{ +} + +web::json::value ListGlobalEipsResponseBody_page_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nextMarkerIsSet_) { + val[utility::conversions::to_string_t("next_marker")] = ModelBase::toJson(nextMarker_); + } + if(previousMarkerIsSet_) { + val[utility::conversions::to_string_t("previous_marker")] = ModelBase::toJson(previousMarker_); + } + if(currentCountIsSet_) { + val[utility::conversions::to_string_t("current_count")] = ModelBase::toJson(currentCount_); + } + + return val; +} +bool ListGlobalEipsResponseBody_page_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("next_marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("next_marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNextMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("previous_marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("previous_marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPreviousMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("current_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("current_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCurrentCount(refVal); + } + } + return ok; +} + + +std::string ListGlobalEipsResponseBody_page_info::getNextMarker() const +{ + return nextMarker_; +} + +void ListGlobalEipsResponseBody_page_info::setNextMarker(const std::string& value) +{ + nextMarker_ = value; + nextMarkerIsSet_ = true; +} + +bool ListGlobalEipsResponseBody_page_info::nextMarkerIsSet() const +{ + return nextMarkerIsSet_; +} + +void ListGlobalEipsResponseBody_page_info::unsetnextMarker() +{ + nextMarkerIsSet_ = false; +} + +std::string ListGlobalEipsResponseBody_page_info::getPreviousMarker() const +{ + return previousMarker_; +} + +void ListGlobalEipsResponseBody_page_info::setPreviousMarker(const std::string& value) +{ + previousMarker_ = value; + previousMarkerIsSet_ = true; +} + +bool ListGlobalEipsResponseBody_page_info::previousMarkerIsSet() const +{ + return previousMarkerIsSet_; +} + +void ListGlobalEipsResponseBody_page_info::unsetpreviousMarker() +{ + previousMarkerIsSet_ = false; +} + +int32_t ListGlobalEipsResponseBody_page_info::getCurrentCount() const +{ + return currentCount_; +} + +void ListGlobalEipsResponseBody_page_info::setCurrentCount(int32_t value) +{ + currentCount_ = value; + currentCountIsSet_ = true; +} + +bool ListGlobalEipsResponseBody_page_info::currentCountIsSet() const +{ + return currentCountIsSet_; +} + +void ListGlobalEipsResponseBody_page_info::unsetcurrentCount() +{ + currentCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthCountFilterTagsRequest.cpp b/geip/src/v3/model/ListInternetBandwidthCountFilterTagsRequest.cpp new file mode 100644 index 000000000..079cf5133 --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthCountFilterTagsRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthCountFilterTagsRequest::ListInternetBandwidthCountFilterTagsRequest() +{ + bodyIsSet_ = false; +} + +ListInternetBandwidthCountFilterTagsRequest::~ListInternetBandwidthCountFilterTagsRequest() = default; + +void ListInternetBandwidthCountFilterTagsRequest::validate() +{ +} + +web::json::value ListInternetBandwidthCountFilterTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ListInternetBandwidthCountFilterTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + ListResourcesByTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +ListResourcesByTagsRequestBody ListInternetBandwidthCountFilterTagsRequest::getBody() const +{ + return body_; +} + +void ListInternetBandwidthCountFilterTagsRequest::setBody(const ListResourcesByTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ListInternetBandwidthCountFilterTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ListInternetBandwidthCountFilterTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthCountFilterTagsResponse.cpp b/geip/src/v3/model/ListInternetBandwidthCountFilterTagsResponse.cpp new file mode 100644 index 000000000..f1d76d331 --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthCountFilterTagsResponse.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthCountFilterTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthCountFilterTagsResponse::ListInternetBandwidthCountFilterTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListInternetBandwidthCountFilterTagsResponse::~ListInternetBandwidthCountFilterTagsResponse() = default; + +void ListInternetBandwidthCountFilterTagsResponse::validate() +{ +} + +web::json::value ListInternetBandwidthCountFilterTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListInternetBandwidthCountFilterTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListInternetBandwidthCountFilterTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListInternetBandwidthCountFilterTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListInternetBandwidthCountFilterTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListInternetBandwidthCountFilterTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +int32_t ListInternetBandwidthCountFilterTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListInternetBandwidthCountFilterTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListInternetBandwidthCountFilterTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListInternetBandwidthCountFilterTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::string ListInternetBandwidthCountFilterTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListInternetBandwidthCountFilterTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListInternetBandwidthCountFilterTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListInternetBandwidthCountFilterTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthDomainTagsRequest.cpp b/geip/src/v3/model/ListInternetBandwidthDomainTagsRequest.cpp new file mode 100644 index 000000000..5bbcaf38f --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthDomainTagsRequest.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthDomainTagsRequest::ListInternetBandwidthDomainTagsRequest() +{ +} + +ListInternetBandwidthDomainTagsRequest::~ListInternetBandwidthDomainTagsRequest() = default; + +void ListInternetBandwidthDomainTagsRequest::validate() +{ +} + +web::json::value ListInternetBandwidthDomainTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool ListInternetBandwidthDomainTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthDomainTagsResponse.cpp b/geip/src/v3/model/ListInternetBandwidthDomainTagsResponse.cpp new file mode 100644 index 000000000..0b5cb0e7e --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthDomainTagsResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthDomainTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthDomainTagsResponse::ListInternetBandwidthDomainTagsResponse() +{ + tagsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListInternetBandwidthDomainTagsResponse::~ListInternetBandwidthDomainTagsResponse() = default; + +void ListInternetBandwidthDomainTagsResponse::validate() +{ +} + +web::json::value ListInternetBandwidthDomainTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListInternetBandwidthDomainTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::vector& ListInternetBandwidthDomainTagsResponse::getTags() +{ + return tags_; +} + +void ListInternetBandwidthDomainTagsResponse::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListInternetBandwidthDomainTagsResponse::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListInternetBandwidthDomainTagsResponse::unsettags() +{ + tagsIsSet_ = false; +} + +std::string ListInternetBandwidthDomainTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListInternetBandwidthDomainTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListInternetBandwidthDomainTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListInternetBandwidthDomainTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthFilterTagsRequest.cpp b/geip/src/v3/model/ListInternetBandwidthFilterTagsRequest.cpp new file mode 100644 index 000000000..8d59a87e1 --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthFilterTagsRequest.cpp @@ -0,0 +1,146 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthFilterTagsRequest::ListInternetBandwidthFilterTagsRequest() +{ + limitIsSet_ = false; + offsetIsSet_ = false; + bodyIsSet_ = false; +} + +ListInternetBandwidthFilterTagsRequest::~ListInternetBandwidthFilterTagsRequest() = default; + +void ListInternetBandwidthFilterTagsRequest::validate() +{ +} + +web::json::value ListInternetBandwidthFilterTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ListInternetBandwidthFilterTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + ListResourcesByTagsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::vector& ListInternetBandwidthFilterTagsRequest::getLimit() +{ + return limit_; +} + +void ListInternetBandwidthFilterTagsRequest::setLimit(std::vector value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListInternetBandwidthFilterTagsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListInternetBandwidthFilterTagsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +std::vector& ListInternetBandwidthFilterTagsRequest::getOffset() +{ + return offset_; +} + +void ListInternetBandwidthFilterTagsRequest::setOffset(std::vector value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListInternetBandwidthFilterTagsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListInternetBandwidthFilterTagsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +ListResourcesByTagsRequestBody ListInternetBandwidthFilterTagsRequest::getBody() const +{ + return body_; +} + +void ListInternetBandwidthFilterTagsRequest::setBody(const ListResourcesByTagsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ListInternetBandwidthFilterTagsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ListInternetBandwidthFilterTagsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthFilterTagsResponse.cpp b/geip/src/v3/model/ListInternetBandwidthFilterTagsResponse.cpp new file mode 100644 index 000000000..ee56a7a10 --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthFilterTagsResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthFilterTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthFilterTagsResponse::ListInternetBandwidthFilterTagsResponse() +{ + resourcesIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + requestId_ = ""; + requestIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListInternetBandwidthFilterTagsResponse::~ListInternetBandwidthFilterTagsResponse() = default; + +void ListInternetBandwidthFilterTagsResponse::validate() +{ +} + +web::json::value ListInternetBandwidthFilterTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourcesIsSet_) { + val[utility::conversions::to_string_t("resources")] = ModelBase::toJson(resources_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListInternetBandwidthFilterTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resources"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resources")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResources(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::vector& ListInternetBandwidthFilterTagsResponse::getResources() +{ + return resources_; +} + +void ListInternetBandwidthFilterTagsResponse::setResources(const std::vector& value) +{ + resources_ = value; + resourcesIsSet_ = true; +} + +bool ListInternetBandwidthFilterTagsResponse::resourcesIsSet() const +{ + return resourcesIsSet_; +} + +void ListInternetBandwidthFilterTagsResponse::unsetresources() +{ + resourcesIsSet_ = false; +} + +int32_t ListInternetBandwidthFilterTagsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListInternetBandwidthFilterTagsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListInternetBandwidthFilterTagsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListInternetBandwidthFilterTagsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::string ListInternetBandwidthFilterTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ListInternetBandwidthFilterTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListInternetBandwidthFilterTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListInternetBandwidthFilterTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::string ListInternetBandwidthFilterTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListInternetBandwidthFilterTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListInternetBandwidthFilterTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListInternetBandwidthFilterTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthLimits.cpp b/geip/src/v3/model/ListInternetBandwidthLimits.cpp new file mode 100644 index 000000000..4c851593a --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthLimits.cpp @@ -0,0 +1,253 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthLimits.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthLimits::ListInternetBandwidthLimits() +{ + id_ = ""; + idIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + minSize_ = 0; + minSizeIsSet_ = false; + extLimitIsSet_ = false; + maxSize_ = 0; + maxSizeIsSet_ = false; + type_ = ""; + typeIsSet_ = false; +} + +ListInternetBandwidthLimits::~ListInternetBandwidthLimits() = default; + +void ListInternetBandwidthLimits::validate() +{ +} + +web::json::value ListInternetBandwidthLimits::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(minSizeIsSet_) { + val[utility::conversions::to_string_t("min_size")] = ModelBase::toJson(minSize_); + } + if(extLimitIsSet_) { + val[utility::conversions::to_string_t("ext_limit")] = ModelBase::toJson(extLimit_); + } + if(maxSizeIsSet_) { + val[utility::conversions::to_string_t("max_size")] = ModelBase::toJson(maxSize_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool ListInternetBandwidthLimits::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("min_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("min_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMinSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ext_limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ext_limit")); + if(!fieldValue.is_null()) + { + ExtLimitPojo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExtLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("max_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("max_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMaxSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +std::string ListInternetBandwidthLimits::getId() const +{ + return id_; +} + +void ListInternetBandwidthLimits::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListInternetBandwidthLimits::idIsSet() const +{ + return idIsSet_; +} + +void ListInternetBandwidthLimits::unsetid() +{ + idIsSet_ = false; +} + +std::string ListInternetBandwidthLimits::getChargeMode() const +{ + return chargeMode_; +} + +void ListInternetBandwidthLimits::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool ListInternetBandwidthLimits::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void ListInternetBandwidthLimits::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t ListInternetBandwidthLimits::getMinSize() const +{ + return minSize_; +} + +void ListInternetBandwidthLimits::setMinSize(int32_t value) +{ + minSize_ = value; + minSizeIsSet_ = true; +} + +bool ListInternetBandwidthLimits::minSizeIsSet() const +{ + return minSizeIsSet_; +} + +void ListInternetBandwidthLimits::unsetminSize() +{ + minSizeIsSet_ = false; +} + +ExtLimitPojo ListInternetBandwidthLimits::getExtLimit() const +{ + return extLimit_; +} + +void ListInternetBandwidthLimits::setExtLimit(const ExtLimitPojo& value) +{ + extLimit_ = value; + extLimitIsSet_ = true; +} + +bool ListInternetBandwidthLimits::extLimitIsSet() const +{ + return extLimitIsSet_; +} + +void ListInternetBandwidthLimits::unsetextLimit() +{ + extLimitIsSet_ = false; +} + +int32_t ListInternetBandwidthLimits::getMaxSize() const +{ + return maxSize_; +} + +void ListInternetBandwidthLimits::setMaxSize(int32_t value) +{ + maxSize_ = value; + maxSizeIsSet_ = true; +} + +bool ListInternetBandwidthLimits::maxSizeIsSet() const +{ + return maxSizeIsSet_; +} + +void ListInternetBandwidthLimits::unsetmaxSize() +{ + maxSizeIsSet_ = false; +} + +std::string ListInternetBandwidthLimits::getType() const +{ + return type_; +} + +void ListInternetBandwidthLimits::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListInternetBandwidthLimits::typeIsSet() const +{ + return typeIsSet_; +} + +void ListInternetBandwidthLimits::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthLimitsRequest.cpp b/geip/src/v3/model/ListInternetBandwidthLimitsRequest.cpp new file mode 100644 index 000000000..ecb307bad --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthLimitsRequest.cpp @@ -0,0 +1,215 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthLimitsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthLimitsRequest::ListInternetBandwidthLimitsRequest() +{ + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + chargeModeIsSet_ = false; + type_ = ""; + typeIsSet_ = false; +} + +ListInternetBandwidthLimitsRequest::~ListInternetBandwidthLimitsRequest() = default; + +void ListInternetBandwidthLimitsRequest::validate() +{ +} + +web::json::value ListInternetBandwidthLimitsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool ListInternetBandwidthLimitsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +std::vector& ListInternetBandwidthLimitsRequest::getFields() +{ + return fields_; +} + +void ListInternetBandwidthLimitsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListInternetBandwidthLimitsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListInternetBandwidthLimitsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListInternetBandwidthLimitsRequest::getSortKey() +{ + return sortKey_; +} + +void ListInternetBandwidthLimitsRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListInternetBandwidthLimitsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListInternetBandwidthLimitsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListInternetBandwidthLimitsRequest::getSortDir() +{ + return sortDir_; +} + +void ListInternetBandwidthLimitsRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListInternetBandwidthLimitsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListInternetBandwidthLimitsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListInternetBandwidthLimitsRequest::getChargeMode() +{ + return chargeMode_; +} + +void ListInternetBandwidthLimitsRequest::setChargeMode(const std::vector& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool ListInternetBandwidthLimitsRequest::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void ListInternetBandwidthLimitsRequest::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +std::string ListInternetBandwidthLimitsRequest::getType() const +{ + return type_; +} + +void ListInternetBandwidthLimitsRequest::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListInternetBandwidthLimitsRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ListInternetBandwidthLimitsRequest::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthLimitsResponse.cpp b/geip/src/v3/model/ListInternetBandwidthLimitsResponse.cpp new file mode 100644 index 000000000..b189d78fe --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthLimitsResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthLimitsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthLimitsResponse::ListInternetBandwidthLimitsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + internetBandwidthLimitsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListInternetBandwidthLimitsResponse::~ListInternetBandwidthLimitsResponse() = default; + +void ListInternetBandwidthLimitsResponse::validate() +{ +} + +web::json::value ListInternetBandwidthLimitsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(internetBandwidthLimitsIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_limits")] = ModelBase::toJson(internetBandwidthLimits_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListInternetBandwidthLimitsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_limits"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_limits")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthLimits(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListInternetBandwidthLimitsResponse::getRequestId() const +{ + return requestId_; +} + +void ListInternetBandwidthLimitsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListInternetBandwidthLimitsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListInternetBandwidthLimitsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListInternetBandwidthLimitsResponse::getInternetBandwidthLimits() +{ + return internetBandwidthLimits_; +} + +void ListInternetBandwidthLimitsResponse::setInternetBandwidthLimits(const std::vector& value) +{ + internetBandwidthLimits_ = value; + internetBandwidthLimitsIsSet_ = true; +} + +bool ListInternetBandwidthLimitsResponse::internetBandwidthLimitsIsSet() const +{ + return internetBandwidthLimitsIsSet_; +} + +void ListInternetBandwidthLimitsResponse::unsetinternetBandwidthLimits() +{ + internetBandwidthLimitsIsSet_ = false; +} + +std::string ListInternetBandwidthLimitsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListInternetBandwidthLimitsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListInternetBandwidthLimitsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListInternetBandwidthLimitsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidths.cpp b/geip/src/v3/model/ListInternetBandwidths.cpp new file mode 100644 index 000000000..e1793d79f --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidths.cpp @@ -0,0 +1,846 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidths.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidths::ListInternetBandwidths() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + ratio95peak_ = 0; + ratio95peakIsSet_ = false; + billingInfo_ = ""; + billingInfoIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + geipCount_ = 0; + geipCountIsSet_ = false; + geipSegmentCount_ = 0; + geipSegmentCountIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + lockInfosIsSet_ = false; +} + +ListInternetBandwidths::~ListInternetBandwidths() = default; + +void ListInternetBandwidths::validate() +{ +} + +web::json::value ListInternetBandwidths::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(ratio95peakIsSet_) { + val[utility::conversions::to_string_t("ratio_95peak")] = ModelBase::toJson(ratio95peak_); + } + if(billingInfoIsSet_) { + val[utility::conversions::to_string_t("billing_info")] = ModelBase::toJson(billingInfo_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(geipCountIsSet_) { + val[utility::conversions::to_string_t("geip_count")] = ModelBase::toJson(geipCount_); + } + if(geipSegmentCountIsSet_) { + val[utility::conversions::to_string_t("geip_segment_count")] = ModelBase::toJson(geipSegmentCount_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(lockInfosIsSet_) { + val[utility::conversions::to_string_t("lock_infos")] = ModelBase::toJson(lockInfos_); + } + + return val; +} +bool ListInternetBandwidths::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ratio_95peak"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ratio_95peak")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRatio95peak(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("billing_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("billing_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBillingInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_segment_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_segment_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipSegmentCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lock_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lock_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLockInfos(refVal); + } + } + return ok; +} + + +std::string ListInternetBandwidths::getId() const +{ + return id_; +} + +void ListInternetBandwidths::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListInternetBandwidths::idIsSet() const +{ + return idIsSet_; +} + +void ListInternetBandwidths::unsetid() +{ + idIsSet_ = false; +} + +std::string ListInternetBandwidths::getName() const +{ + return name_; +} + +void ListInternetBandwidths::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListInternetBandwidths::nameIsSet() const +{ + return nameIsSet_; +} + +void ListInternetBandwidths::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListInternetBandwidths::getIsp() const +{ + return isp_; +} + +void ListInternetBandwidths::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ListInternetBandwidths::ispIsSet() const +{ + return ispIsSet_; +} + +void ListInternetBandwidths::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t ListInternetBandwidths::getIngressSize() const +{ + return ingressSize_; +} + +void ListInternetBandwidths::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool ListInternetBandwidths::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void ListInternetBandwidths::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string ListInternetBandwidths::getAccessSite() const +{ + return accessSite_; +} + +void ListInternetBandwidths::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListInternetBandwidths::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListInternetBandwidths::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t ListInternetBandwidths::getSize() const +{ + return size_; +} + +void ListInternetBandwidths::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool ListInternetBandwidths::sizeIsSet() const +{ + return sizeIsSet_; +} + +void ListInternetBandwidths::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string ListInternetBandwidths::getDescription() const +{ + return description_; +} + +void ListInternetBandwidths::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool ListInternetBandwidths::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void ListInternetBandwidths::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string ListInternetBandwidths::getChargeMode() const +{ + return chargeMode_; +} + +void ListInternetBandwidths::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool ListInternetBandwidths::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void ListInternetBandwidths::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t ListInternetBandwidths::getRatio95peak() const +{ + return ratio95peak_; +} + +void ListInternetBandwidths::setRatio95peak(int32_t value) +{ + ratio95peak_ = value; + ratio95peakIsSet_ = true; +} + +bool ListInternetBandwidths::ratio95peakIsSet() const +{ + return ratio95peakIsSet_; +} + +void ListInternetBandwidths::unsetratio95peak() +{ + ratio95peakIsSet_ = false; +} + +std::string ListInternetBandwidths::getBillingInfo() const +{ + return billingInfo_; +} + +void ListInternetBandwidths::setBillingInfo(const std::string& value) +{ + billingInfo_ = value; + billingInfoIsSet_ = true; +} + +bool ListInternetBandwidths::billingInfoIsSet() const +{ + return billingInfoIsSet_; +} + +void ListInternetBandwidths::unsetbillingInfo() +{ + billingInfoIsSet_ = false; +} + +std::string ListInternetBandwidths::getFreezenInfo() const +{ + return freezenInfo_; +} + +void ListInternetBandwidths::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool ListInternetBandwidths::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void ListInternetBandwidths::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +std::string ListInternetBandwidths::getDomainId() const +{ + return domainId_; +} + +void ListInternetBandwidths::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool ListInternetBandwidths::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void ListInternetBandwidths::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string ListInternetBandwidths::getStatus() const +{ + return status_; +} + +void ListInternetBandwidths::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListInternetBandwidths::statusIsSet() const +{ + return statusIsSet_; +} + +void ListInternetBandwidths::unsetstatus() +{ + statusIsSet_ = false; +} + +int32_t ListInternetBandwidths::getGeipCount() const +{ + return geipCount_; +} + +void ListInternetBandwidths::setGeipCount(int32_t value) +{ + geipCount_ = value; + geipCountIsSet_ = true; +} + +bool ListInternetBandwidths::geipCountIsSet() const +{ + return geipCountIsSet_; +} + +void ListInternetBandwidths::unsetgeipCount() +{ + geipCountIsSet_ = false; +} + +int32_t ListInternetBandwidths::getGeipSegmentCount() const +{ + return geipSegmentCount_; +} + +void ListInternetBandwidths::setGeipSegmentCount(int32_t value) +{ + geipSegmentCount_ = value; + geipSegmentCountIsSet_ = true; +} + +bool ListInternetBandwidths::geipSegmentCountIsSet() const +{ + return geipSegmentCountIsSet_; +} + +void ListInternetBandwidths::unsetgeipSegmentCount() +{ + geipSegmentCountIsSet_ = false; +} + +utility::datetime ListInternetBandwidths::getCreatedAt() const +{ + return createdAt_; +} + +void ListInternetBandwidths::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListInternetBandwidths::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListInternetBandwidths::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListInternetBandwidths::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListInternetBandwidths::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListInternetBandwidths::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListInternetBandwidths::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +bool ListInternetBandwidths::isIsPrePaid() const +{ + return isPrePaid_; +} + +void ListInternetBandwidths::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool ListInternetBandwidths::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void ListInternetBandwidths::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& ListInternetBandwidths::getTags() +{ + return tags_; +} + +void ListInternetBandwidths::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListInternetBandwidths::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListInternetBandwidths::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ListInternetBandwidths::getSysTags() +{ + return sysTags_; +} + +void ListInternetBandwidths::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ListInternetBandwidths::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ListInternetBandwidths::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ListInternetBandwidths::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ListInternetBandwidths::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListInternetBandwidths::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListInternetBandwidths::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string ListInternetBandwidths::getType() const +{ + return type_; +} + +void ListInternetBandwidths::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListInternetBandwidths::typeIsSet() const +{ + return typeIsSet_; +} + +void ListInternetBandwidths::unsettype() +{ + typeIsSet_ = false; +} + +std::vector& ListInternetBandwidths::getLockInfos() +{ + return lockInfos_; +} + +void ListInternetBandwidths::setLockInfos(const std::vector& value) +{ + lockInfos_ = value; + lockInfosIsSet_ = true; +} + +bool ListInternetBandwidths::lockInfosIsSet() const +{ + return lockInfosIsSet_; +} + +void ListInternetBandwidths::unsetlockInfos() +{ + lockInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthsRequest.cpp b/geip/src/v3/model/ListInternetBandwidthsRequest.cpp new file mode 100644 index 000000000..acd996f86 --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthsRequest.cpp @@ -0,0 +1,627 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthsRequest::ListInternetBandwidthsRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + extFieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + sizeIsSet_ = false; + nameIsSet_ = false; + nameLike_ = ""; + nameLikeIsSet_ = false; + accessSiteIsSet_ = false; + statusIsSet_ = false; + enterpriseProjectIdIsSet_ = false; + tagsIsSet_ = false; + typeIsSet_ = false; +} + +ListInternetBandwidthsRequest::~ListInternetBandwidthsRequest() = default; + +void ListInternetBandwidthsRequest::validate() +{ +} + +web::json::value ListInternetBandwidthsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(extFieldsIsSet_) { + val[utility::conversions::to_string_t("ext-fields")] = ModelBase::toJson(extFields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(nameLikeIsSet_) { + val[utility::conversions::to_string_t("name_like")] = ModelBase::toJson(nameLike_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool ListInternetBandwidthsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ext-fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ext-fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExtFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name_like"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name_like")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNameLike(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +int32_t ListInternetBandwidthsRequest::getLimit() const +{ + return limit_; +} + +void ListInternetBandwidthsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListInternetBandwidthsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListInternetBandwidthsRequest::getOffset() const +{ + return offset_; +} + +void ListInternetBandwidthsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListInternetBandwidthsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListInternetBandwidthsRequest::getMarker() const +{ + return marker_; +} + +void ListInternetBandwidthsRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListInternetBandwidthsRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListInternetBandwidthsRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListInternetBandwidthsRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListInternetBandwidthsRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getFields() +{ + return fields_; +} + +void ListInternetBandwidthsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListInternetBandwidthsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getExtFields() +{ + return extFields_; +} + +void ListInternetBandwidthsRequest::setExtFields(const std::vector& value) +{ + extFields_ = value; + extFieldsIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::extFieldsIsSet() const +{ + return extFieldsIsSet_; +} + +void ListInternetBandwidthsRequest::unsetextFields() +{ + extFieldsIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getSortKey() +{ + return sortKey_; +} + +void ListInternetBandwidthsRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListInternetBandwidthsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getSortDir() +{ + return sortDir_; +} + +void ListInternetBandwidthsRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListInternetBandwidthsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getId() +{ + return id_; +} + +void ListInternetBandwidthsRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListInternetBandwidthsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getSize() +{ + return size_; +} + +void ListInternetBandwidthsRequest::setSize(std::vector value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::sizeIsSet() const +{ + return sizeIsSet_; +} + +void ListInternetBandwidthsRequest::unsetsize() +{ + sizeIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getName() +{ + return name_; +} + +void ListInternetBandwidthsRequest::setName(const std::vector& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void ListInternetBandwidthsRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListInternetBandwidthsRequest::getNameLike() const +{ + return nameLike_; +} + +void ListInternetBandwidthsRequest::setNameLike(const std::string& value) +{ + nameLike_ = value; + nameLikeIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::nameLikeIsSet() const +{ + return nameLikeIsSet_; +} + +void ListInternetBandwidthsRequest::unsetnameLike() +{ + nameLikeIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getAccessSite() +{ + return accessSite_; +} + +void ListInternetBandwidthsRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListInternetBandwidthsRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getStatus() +{ + return status_; +} + +void ListInternetBandwidthsRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void ListInternetBandwidthsRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getEnterpriseProjectId() +{ + return enterpriseProjectId_; +} + +void ListInternetBandwidthsRequest::setEnterpriseProjectId(const std::vector& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListInternetBandwidthsRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getTags() +{ + return tags_; +} + +void ListInternetBandwidthsRequest::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListInternetBandwidthsRequest::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ListInternetBandwidthsRequest::getType() +{ + return type_; +} + +void ListInternetBandwidthsRequest::setType(const std::vector& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListInternetBandwidthsRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ListInternetBandwidthsRequest::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListInternetBandwidthsResponse.cpp b/geip/src/v3/model/ListInternetBandwidthsResponse.cpp new file mode 100644 index 000000000..2c1d7fce0 --- /dev/null +++ b/geip/src/v3/model/ListInternetBandwidthsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListInternetBandwidthsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListInternetBandwidthsResponse::ListInternetBandwidthsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + internetBandwidthsIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListInternetBandwidthsResponse::~ListInternetBandwidthsResponse() = default; + +void ListInternetBandwidthsResponse::validate() +{ +} + +web::json::value ListInternetBandwidthsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(internetBandwidthsIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidths")] = ModelBase::toJson(internetBandwidths_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListInternetBandwidthsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidths"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidths")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidths(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListInternetBandwidthsResponse::getRequestId() const +{ + return requestId_; +} + +void ListInternetBandwidthsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListInternetBandwidthsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListInternetBandwidthsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListInternetBandwidthsResponse::getInternetBandwidths() +{ + return internetBandwidths_; +} + +void ListInternetBandwidthsResponse::setInternetBandwidths(const std::vector& value) +{ + internetBandwidths_ = value; + internetBandwidthsIsSet_ = true; +} + +bool ListInternetBandwidthsResponse::internetBandwidthsIsSet() const +{ + return internetBandwidthsIsSet_; +} + +void ListInternetBandwidthsResponse::unsetinternetBandwidths() +{ + internetBandwidthsIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListInternetBandwidthsResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListInternetBandwidthsResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListInternetBandwidthsResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListInternetBandwidthsResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListInternetBandwidthsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListInternetBandwidthsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListInternetBandwidthsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListInternetBandwidthsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListJobs.cpp b/geip/src/v3/model/ListJobs.cpp new file mode 100644 index 000000000..46d716403 --- /dev/null +++ b/geip/src/v3/model/ListJobs.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/geip/v3/model/ListJobs.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListJobs::ListJobs() +{ + id_ = ""; + idIsSet_ = false; + action_ = ""; + actionIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + errorTask_ = ""; + errorTaskIsSet_ = false; + errorCode_ = ""; + errorCodeIsSet_ = false; + errorMessage_ = ""; + errorMessageIsSet_ = false; + startTime_ = utility::datetime(); + startTimeIsSet_ = false; + endTime_ = utility::datetime(); + endTimeIsSet_ = false; +} + +ListJobs::~ListJobs() = default; + +void ListJobs::validate() +{ +} + +web::json::value ListJobs::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(actionIsSet_) { + val[utility::conversions::to_string_t("action")] = ModelBase::toJson(action_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(errorTaskIsSet_) { + val[utility::conversions::to_string_t("error_task")] = ModelBase::toJson(errorTask_); + } + if(errorCodeIsSet_) { + val[utility::conversions::to_string_t("error_code")] = ModelBase::toJson(errorCode_); + } + if(errorMessageIsSet_) { + val[utility::conversions::to_string_t("error_message")] = ModelBase::toJson(errorMessage_); + } + if(startTimeIsSet_) { + val[utility::conversions::to_string_t("start_time")] = ModelBase::toJson(startTime_); + } + if(endTimeIsSet_) { + val[utility::conversions::to_string_t("end_time")] = ModelBase::toJson(endTime_); + } + + return val; +} +bool ListJobs::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("action"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("action")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAction(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_task"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_task")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorTask(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_message"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_message")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorMessage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("start_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("start_time")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStartTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("end_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("end_time")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEndTime(refVal); + } + } + return ok; +} + + +std::string ListJobs::getId() const +{ + return id_; +} + +void ListJobs::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListJobs::idIsSet() const +{ + return idIsSet_; +} + +void ListJobs::unsetid() +{ + idIsSet_ = false; +} + +std::string ListJobs::getAction() const +{ + return action_; +} + +void ListJobs::setAction(const std::string& value) +{ + action_ = value; + actionIsSet_ = true; +} + +bool ListJobs::actionIsSet() const +{ + return actionIsSet_; +} + +void ListJobs::unsetaction() +{ + actionIsSet_ = false; +} + +std::string ListJobs::getStatus() const +{ + return status_; +} + +void ListJobs::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListJobs::statusIsSet() const +{ + return statusIsSet_; +} + +void ListJobs::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string ListJobs::getErrorTask() const +{ + return errorTask_; +} + +void ListJobs::setErrorTask(const std::string& value) +{ + errorTask_ = value; + errorTaskIsSet_ = true; +} + +bool ListJobs::errorTaskIsSet() const +{ + return errorTaskIsSet_; +} + +void ListJobs::unseterrorTask() +{ + errorTaskIsSet_ = false; +} + +std::string ListJobs::getErrorCode() const +{ + return errorCode_; +} + +void ListJobs::setErrorCode(const std::string& value) +{ + errorCode_ = value; + errorCodeIsSet_ = true; +} + +bool ListJobs::errorCodeIsSet() const +{ + return errorCodeIsSet_; +} + +void ListJobs::unseterrorCode() +{ + errorCodeIsSet_ = false; +} + +std::string ListJobs::getErrorMessage() const +{ + return errorMessage_; +} + +void ListJobs::setErrorMessage(const std::string& value) +{ + errorMessage_ = value; + errorMessageIsSet_ = true; +} + +bool ListJobs::errorMessageIsSet() const +{ + return errorMessageIsSet_; +} + +void ListJobs::unseterrorMessage() +{ + errorMessageIsSet_ = false; +} + +utility::datetime ListJobs::getStartTime() const +{ + return startTime_; +} + +void ListJobs::setStartTime(const utility::datetime& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ListJobs::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ListJobs::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +utility::datetime ListJobs::getEndTime() const +{ + return endTime_; +} + +void ListJobs::setEndTime(const utility::datetime& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool ListJobs::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void ListJobs::unsetendTime() +{ + endTimeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListJobsRequest.cpp b/geip/src/v3/model/ListJobsRequest.cpp new file mode 100644 index 000000000..efe568f42 --- /dev/null +++ b/geip/src/v3/model/ListJobsRequest.cpp @@ -0,0 +1,388 @@ + + +#include "huaweicloud/geip/v3/model/ListJobsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListJobsRequest::ListJobsRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + actionIsSet_ = false; + statusIsSet_ = false; +} + +ListJobsRequest::~ListJobsRequest() = default; + +void ListJobsRequest::validate() +{ +} + +web::json::value ListJobsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(actionIsSet_) { + val[utility::conversions::to_string_t("action")] = ModelBase::toJson(action_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + + return val; +} +bool ListJobsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("action"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("action")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAction(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + return ok; +} + + +int32_t ListJobsRequest::getLimit() const +{ + return limit_; +} + +void ListJobsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListJobsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListJobsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListJobsRequest::getOffset() const +{ + return offset_; +} + +void ListJobsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListJobsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListJobsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListJobsRequest::getMarker() const +{ + return marker_; +} + +void ListJobsRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListJobsRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListJobsRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListJobsRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListJobsRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListJobsRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListJobsRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListJobsRequest::getFields() +{ + return fields_; +} + +void ListJobsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListJobsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListJobsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListJobsRequest::getSortKey() +{ + return sortKey_; +} + +void ListJobsRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListJobsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListJobsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListJobsRequest::getSortDir() +{ + return sortDir_; +} + +void ListJobsRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListJobsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListJobsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListJobsRequest::getId() +{ + return id_; +} + +void ListJobsRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListJobsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListJobsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListJobsRequest::getAction() +{ + return action_; +} + +void ListJobsRequest::setAction(const std::vector& value) +{ + action_ = value; + actionIsSet_ = true; +} + +bool ListJobsRequest::actionIsSet() const +{ + return actionIsSet_; +} + +void ListJobsRequest::unsetaction() +{ + actionIsSet_ = false; +} + +std::vector& ListJobsRequest::getStatus() +{ + return status_; +} + +void ListJobsRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListJobsRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void ListJobsRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListJobsResponse.cpp b/geip/src/v3/model/ListJobsResponse.cpp new file mode 100644 index 000000000..2bebc6202 --- /dev/null +++ b/geip/src/v3/model/ListJobsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListJobsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListJobsResponse::ListJobsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + jobsIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListJobsResponse::~ListJobsResponse() = default; + +void ListJobsResponse::validate() +{ +} + +web::json::value ListJobsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(jobsIsSet_) { + val[utility::conversions::to_string_t("jobs")] = ModelBase::toJson(jobs_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListJobsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("jobs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("jobs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobs(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListJobsResponse::getRequestId() const +{ + return requestId_; +} + +void ListJobsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListJobsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListJobsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListJobsResponse::getJobs() +{ + return jobs_; +} + +void ListJobsResponse::setJobs(const std::vector& value) +{ + jobs_ = value; + jobsIsSet_ = true; +} + +bool ListJobsResponse::jobsIsSet() const +{ + return jobsIsSet_; +} + +void ListJobsResponse::unsetjobs() +{ + jobsIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListJobsResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListJobsResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListJobsResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListJobsResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListJobsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListJobsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListJobsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListJobsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListQuotas.cpp b/geip/src/v3/model/ListQuotas.cpp new file mode 100644 index 000000000..9944bf78d --- /dev/null +++ b/geip/src/v3/model/ListQuotas.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/ListQuotas.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListQuotas::ListQuotas() +{ + resourcesIsSet_ = false; +} + +ListQuotas::~ListQuotas() = default; + +void ListQuotas::validate() +{ +} + +web::json::value ListQuotas::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourcesIsSet_) { + val[utility::conversions::to_string_t("resources")] = ModelBase::toJson(resources_); + } + + return val; +} +bool ListQuotas::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resources"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resources")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResources(refVal); + } + } + return ok; +} + + +std::vector& ListQuotas::getResources() +{ + return resources_; +} + +void ListQuotas::setResources(const std::vector& value) +{ + resources_ = value; + resourcesIsSet_ = true; +} + +bool ListQuotas::resourcesIsSet() const +{ + return resourcesIsSet_; +} + +void ListQuotas::unsetresources() +{ + resourcesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListResourcesByTagsRequestBody.cpp b/geip/src/v3/model/ListResourcesByTagsRequestBody.cpp new file mode 100644 index 000000000..1a20c0f8a --- /dev/null +++ b/geip/src/v3/model/ListResourcesByTagsRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/ListResourcesByTagsRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListResourcesByTagsRequestBody::ListResourcesByTagsRequestBody() +{ + tagsIsSet_ = false; +} + +ListResourcesByTagsRequestBody::~ListResourcesByTagsRequestBody() = default; + +void ListResourcesByTagsRequestBody::validate() +{ +} + +web::json::value ListResourcesByTagsRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool ListResourcesByTagsRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::vector& ListResourcesByTagsRequestBody::getTags() +{ + return tags_; +} + +void ListResourcesByTagsRequestBody::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListResourcesByTagsRequestBody::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListResourcesByTagsRequestBody::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListSupportInstancesSupportRegions.cpp b/geip/src/v3/model/ListSupportInstancesSupportRegions.cpp new file mode 100644 index 000000000..a848f7dd2 --- /dev/null +++ b/geip/src/v3/model/ListSupportInstancesSupportRegions.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/geip/v3/model/ListSupportInstancesSupportRegions.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListSupportInstancesSupportRegions::ListSupportInstancesSupportRegions() +{ + id_ = ""; + idIsSet_ = false; + instanceType_ = ""; + instanceTypeIsSet_ = false; + publicBorderGroup_ = ""; + publicBorderGroupIsSet_ = false; + regionId_ = ""; + regionIdIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; +} + +ListSupportInstancesSupportRegions::~ListSupportInstancesSupportRegions() = default; + +void ListSupportInstancesSupportRegions::validate() +{ +} + +web::json::value ListSupportInstancesSupportRegions::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(instanceTypeIsSet_) { + val[utility::conversions::to_string_t("instance_type")] = ModelBase::toJson(instanceType_); + } + if(publicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("public_border_group")] = ModelBase::toJson(publicBorderGroup_); + } + if(regionIdIsSet_) { + val[utility::conversions::to_string_t("region_id")] = ModelBase::toJson(regionId_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool ListSupportInstancesSupportRegions::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_border_group")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegionId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string ListSupportInstancesSupportRegions::getId() const +{ + return id_; +} + +void ListSupportInstancesSupportRegions::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::idIsSet() const +{ + return idIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetid() +{ + idIsSet_ = false; +} + +std::string ListSupportInstancesSupportRegions::getInstanceType() const +{ + return instanceType_; +} + +void ListSupportInstancesSupportRegions::setInstanceType(const std::string& value) +{ + instanceType_ = value; + instanceTypeIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::instanceTypeIsSet() const +{ + return instanceTypeIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetinstanceType() +{ + instanceTypeIsSet_ = false; +} + +std::string ListSupportInstancesSupportRegions::getPublicBorderGroup() const +{ + return publicBorderGroup_; +} + +void ListSupportInstancesSupportRegions::setPublicBorderGroup(const std::string& value) +{ + publicBorderGroup_ = value; + publicBorderGroupIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::publicBorderGroupIsSet() const +{ + return publicBorderGroupIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetpublicBorderGroup() +{ + publicBorderGroupIsSet_ = false; +} + +std::string ListSupportInstancesSupportRegions::getRegionId() const +{ + return regionId_; +} + +void ListSupportInstancesSupportRegions::setRegionId(const std::string& value) +{ + regionId_ = value; + regionIdIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::regionIdIsSet() const +{ + return regionIdIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetregionId() +{ + regionIdIsSet_ = false; +} + +std::string ListSupportInstancesSupportRegions::getAccessSite() const +{ + return accessSite_; +} + +void ListSupportInstancesSupportRegions::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string ListSupportInstancesSupportRegions::getStatus() const +{ + return status_; +} + +void ListSupportInstancesSupportRegions::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::statusIsSet() const +{ + return statusIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime ListSupportInstancesSupportRegions::getCreatedAt() const +{ + return createdAt_; +} + +void ListSupportInstancesSupportRegions::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListSupportInstancesSupportRegions::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListSupportInstancesSupportRegions::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListSupportInstancesSupportRegions::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListSupportInstancesSupportRegions::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListSupportMasks.cpp b/geip/src/v3/model/ListSupportMasks.cpp new file mode 100644 index 000000000..ca36361ae --- /dev/null +++ b/geip/src/v3/model/ListSupportMasks.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/geip/v3/model/ListSupportMasks.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListSupportMasks::ListSupportMasks() +{ + id_ = ""; + idIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + mask_ = 0; + maskIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; +} + +ListSupportMasks::~ListSupportMasks() = default; + +void ListSupportMasks::validate() +{ +} + +web::json::value ListSupportMasks::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(maskIsSet_) { + val[utility::conversions::to_string_t("mask")] = ModelBase::toJson(mask_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool ListSupportMasks::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("mask"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mask")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMask(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string ListSupportMasks::getId() const +{ + return id_; +} + +void ListSupportMasks::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListSupportMasks::idIsSet() const +{ + return idIsSet_; +} + +void ListSupportMasks::unsetid() +{ + idIsSet_ = false; +} + +int32_t ListSupportMasks::getIpVersion() const +{ + return ipVersion_; +} + +void ListSupportMasks::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListSupportMasks::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListSupportMasks::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +int32_t ListSupportMasks::getMask() const +{ + return mask_; +} + +void ListSupportMasks::setMask(int32_t value) +{ + mask_ = value; + maskIsSet_ = true; +} + +bool ListSupportMasks::maskIsSet() const +{ + return maskIsSet_; +} + +void ListSupportMasks::unsetmask() +{ + maskIsSet_ = false; +} + +utility::datetime ListSupportMasks::getCreatedAt() const +{ + return createdAt_; +} + +void ListSupportMasks::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListSupportMasks::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListSupportMasks::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListSupportMasks::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListSupportMasks::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListSupportMasks::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListSupportMasks::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListSupportMasksRequest.cpp b/geip/src/v3/model/ListSupportMasksRequest.cpp new file mode 100644 index 000000000..bbc9bc238 --- /dev/null +++ b/geip/src/v3/model/ListSupportMasksRequest.cpp @@ -0,0 +1,388 @@ + + +#include "huaweicloud/geip/v3/model/ListSupportMasksRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListSupportMasksRequest::ListSupportMasksRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + ipVersionIsSet_ = false; + maskIsSet_ = false; +} + +ListSupportMasksRequest::~ListSupportMasksRequest() = default; + +void ListSupportMasksRequest::validate() +{ +} + +web::json::value ListSupportMasksRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(maskIsSet_) { + val[utility::conversions::to_string_t("mask")] = ModelBase::toJson(mask_); + } + + return val; +} +bool ListSupportMasksRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("mask"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mask")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMask(refVal); + } + } + return ok; +} + + +int32_t ListSupportMasksRequest::getLimit() const +{ + return limit_; +} + +void ListSupportMasksRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListSupportMasksRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListSupportMasksRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListSupportMasksRequest::getOffset() const +{ + return offset_; +} + +void ListSupportMasksRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListSupportMasksRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListSupportMasksRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListSupportMasksRequest::getMarker() const +{ + return marker_; +} + +void ListSupportMasksRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListSupportMasksRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListSupportMasksRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListSupportMasksRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListSupportMasksRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListSupportMasksRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListSupportMasksRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListSupportMasksRequest::getFields() +{ + return fields_; +} + +void ListSupportMasksRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListSupportMasksRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListSupportMasksRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListSupportMasksRequest::getSortKey() +{ + return sortKey_; +} + +void ListSupportMasksRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListSupportMasksRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListSupportMasksRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListSupportMasksRequest::getSortDir() +{ + return sortDir_; +} + +void ListSupportMasksRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListSupportMasksRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListSupportMasksRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListSupportMasksRequest::getId() +{ + return id_; +} + +void ListSupportMasksRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListSupportMasksRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListSupportMasksRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListSupportMasksRequest::getIpVersion() +{ + return ipVersion_; +} + +void ListSupportMasksRequest::setIpVersion(std::vector value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ListSupportMasksRequest::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ListSupportMasksRequest::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::vector& ListSupportMasksRequest::getMask() +{ + return mask_; +} + +void ListSupportMasksRequest::setMask(std::vector value) +{ + mask_ = value; + maskIsSet_ = true; +} + +bool ListSupportMasksRequest::maskIsSet() const +{ + return maskIsSet_; +} + +void ListSupportMasksRequest::unsetmask() +{ + maskIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListSupportMasksResponse.cpp b/geip/src/v3/model/ListSupportMasksResponse.cpp new file mode 100644 index 000000000..628194271 --- /dev/null +++ b/geip/src/v3/model/ListSupportMasksResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListSupportMasksResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListSupportMasksResponse::ListSupportMasksResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + supportMasksIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListSupportMasksResponse::~ListSupportMasksResponse() = default; + +void ListSupportMasksResponse::validate() +{ +} + +web::json::value ListSupportMasksResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(supportMasksIsSet_) { + val[utility::conversions::to_string_t("support_masks")] = ModelBase::toJson(supportMasks_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListSupportMasksResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("support_masks"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("support_masks")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSupportMasks(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListSupportMasksResponse::getRequestId() const +{ + return requestId_; +} + +void ListSupportMasksResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListSupportMasksResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListSupportMasksResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListSupportMasksResponse::getSupportMasks() +{ + return supportMasks_; +} + +void ListSupportMasksResponse::setSupportMasks(const std::vector& value) +{ + supportMasks_ = value; + supportMasksIsSet_ = true; +} + +bool ListSupportMasksResponse::supportMasksIsSet() const +{ + return supportMasksIsSet_; +} + +void ListSupportMasksResponse::unsetsupportMasks() +{ + supportMasksIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListSupportMasksResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListSupportMasksResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListSupportMasksResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListSupportMasksResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListSupportMasksResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListSupportMasksResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListSupportMasksResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListSupportMasksResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListSupportRegions.cpp b/geip/src/v3/model/ListSupportRegions.cpp new file mode 100644 index 000000000..9aac28a6e --- /dev/null +++ b/geip/src/v3/model/ListSupportRegions.cpp @@ -0,0 +1,359 @@ + + +#include "huaweicloud/geip/v3/model/ListSupportRegions.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListSupportRegions::ListSupportRegions() +{ + id_ = ""; + idIsSet_ = false; + instanceType_ = ""; + instanceTypeIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + regionId_ = ""; + regionIdIsSet_ = false; + publicBorderGroup_ = ""; + publicBorderGroupIsSet_ = false; + remoteEndpoint_ = ""; + remoteEndpointIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; +} + +ListSupportRegions::~ListSupportRegions() = default; + +void ListSupportRegions::validate() +{ +} + +web::json::value ListSupportRegions::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(instanceTypeIsSet_) { + val[utility::conversions::to_string_t("instance_type")] = ModelBase::toJson(instanceType_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(regionIdIsSet_) { + val[utility::conversions::to_string_t("region_id")] = ModelBase::toJson(regionId_); + } + if(publicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("public_border_group")] = ModelBase::toJson(publicBorderGroup_); + } + if(remoteEndpointIsSet_) { + val[utility::conversions::to_string_t("remote_endpoint")] = ModelBase::toJson(remoteEndpoint_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool ListSupportRegions::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegionId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_border_group")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("remote_endpoint"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("remote_endpoint")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRemoteEndpoint(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string ListSupportRegions::getId() const +{ + return id_; +} + +void ListSupportRegions::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListSupportRegions::idIsSet() const +{ + return idIsSet_; +} + +void ListSupportRegions::unsetid() +{ + idIsSet_ = false; +} + +std::string ListSupportRegions::getInstanceType() const +{ + return instanceType_; +} + +void ListSupportRegions::setInstanceType(const std::string& value) +{ + instanceType_ = value; + instanceTypeIsSet_ = true; +} + +bool ListSupportRegions::instanceTypeIsSet() const +{ + return instanceTypeIsSet_; +} + +void ListSupportRegions::unsetinstanceType() +{ + instanceTypeIsSet_ = false; +} + +std::string ListSupportRegions::getAccessSite() const +{ + return accessSite_; +} + +void ListSupportRegions::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListSupportRegions::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListSupportRegions::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string ListSupportRegions::getRegionId() const +{ + return regionId_; +} + +void ListSupportRegions::setRegionId(const std::string& value) +{ + regionId_ = value; + regionIdIsSet_ = true; +} + +bool ListSupportRegions::regionIdIsSet() const +{ + return regionIdIsSet_; +} + +void ListSupportRegions::unsetregionId() +{ + regionIdIsSet_ = false; +} + +std::string ListSupportRegions::getPublicBorderGroup() const +{ + return publicBorderGroup_; +} + +void ListSupportRegions::setPublicBorderGroup(const std::string& value) +{ + publicBorderGroup_ = value; + publicBorderGroupIsSet_ = true; +} + +bool ListSupportRegions::publicBorderGroupIsSet() const +{ + return publicBorderGroupIsSet_; +} + +void ListSupportRegions::unsetpublicBorderGroup() +{ + publicBorderGroupIsSet_ = false; +} + +std::string ListSupportRegions::getRemoteEndpoint() const +{ + return remoteEndpoint_; +} + +void ListSupportRegions::setRemoteEndpoint(const std::string& value) +{ + remoteEndpoint_ = value; + remoteEndpointIsSet_ = true; +} + +bool ListSupportRegions::remoteEndpointIsSet() const +{ + return remoteEndpointIsSet_; +} + +void ListSupportRegions::unsetremoteEndpoint() +{ + remoteEndpointIsSet_ = false; +} + +std::string ListSupportRegions::getStatus() const +{ + return status_; +} + +void ListSupportRegions::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListSupportRegions::statusIsSet() const +{ + return statusIsSet_; +} + +void ListSupportRegions::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime ListSupportRegions::getCreatedAt() const +{ + return createdAt_; +} + +void ListSupportRegions::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ListSupportRegions::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ListSupportRegions::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ListSupportRegions::getUpdatedAt() const +{ + return updatedAt_; +} + +void ListSupportRegions::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ListSupportRegions::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ListSupportRegions::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListSupportRegionsRequest.cpp b/geip/src/v3/model/ListSupportRegionsRequest.cpp new file mode 100644 index 000000000..e52906811 --- /dev/null +++ b/geip/src/v3/model/ListSupportRegionsRequest.cpp @@ -0,0 +1,524 @@ + + +#include "huaweicloud/geip/v3/model/ListSupportRegionsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListSupportRegionsRequest::ListSupportRegionsRequest() +{ + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + marker_ = ""; + markerIsSet_ = false; + pageReverse_ = false; + pageReverseIsSet_ = false; + fieldsIsSet_ = false; + sortKeyIsSet_ = false; + sortDirIsSet_ = false; + idIsSet_ = false; + instanceTypeIsSet_ = false; + publicBorderGroupIsSet_ = false; + accessSiteIsSet_ = false; + regionIdIsSet_ = false; + remoteEndpointIsSet_ = false; + statusIsSet_ = false; +} + +ListSupportRegionsRequest::~ListSupportRegionsRequest() = default; + +void ListSupportRegionsRequest::validate() +{ +} + +web::json::value ListSupportRegionsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(markerIsSet_) { + val[utility::conversions::to_string_t("marker")] = ModelBase::toJson(marker_); + } + if(pageReverseIsSet_) { + val[utility::conversions::to_string_t("page_reverse")] = ModelBase::toJson(pageReverse_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(sortKeyIsSet_) { + val[utility::conversions::to_string_t("sort_key")] = ModelBase::toJson(sortKey_); + } + if(sortDirIsSet_) { + val[utility::conversions::to_string_t("sort_dir")] = ModelBase::toJson(sortDir_); + } + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(instanceTypeIsSet_) { + val[utility::conversions::to_string_t("instance_type")] = ModelBase::toJson(instanceType_); + } + if(publicBorderGroupIsSet_) { + val[utility::conversions::to_string_t("public_border_group")] = ModelBase::toJson(publicBorderGroup_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(regionIdIsSet_) { + val[utility::conversions::to_string_t("region_id")] = ModelBase::toJson(regionId_); + } + if(remoteEndpointIsSet_) { + val[utility::conversions::to_string_t("remote_endpoint")] = ModelBase::toJson(remoteEndpoint_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + + return val; +} +bool ListSupportRegionsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("marker"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("marker")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMarker(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_reverse"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_reverse")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageReverse(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_key")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sort_dir"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sort_dir")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSortDir(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_type")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_border_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_border_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicBorderGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegionId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("remote_endpoint"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("remote_endpoint")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRemoteEndpoint(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + return ok; +} + + +int32_t ListSupportRegionsRequest::getLimit() const +{ + return limit_; +} + +void ListSupportRegionsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListSupportRegionsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListSupportRegionsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListSupportRegionsRequest::getOffset() const +{ + return offset_; +} + +void ListSupportRegionsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListSupportRegionsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListSupportRegionsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListSupportRegionsRequest::getMarker() const +{ + return marker_; +} + +void ListSupportRegionsRequest::setMarker(const std::string& value) +{ + marker_ = value; + markerIsSet_ = true; +} + +bool ListSupportRegionsRequest::markerIsSet() const +{ + return markerIsSet_; +} + +void ListSupportRegionsRequest::unsetmarker() +{ + markerIsSet_ = false; +} + +bool ListSupportRegionsRequest::isPageReverse() const +{ + return pageReverse_; +} + +void ListSupportRegionsRequest::setPageReverse(bool value) +{ + pageReverse_ = value; + pageReverseIsSet_ = true; +} + +bool ListSupportRegionsRequest::pageReverseIsSet() const +{ + return pageReverseIsSet_; +} + +void ListSupportRegionsRequest::unsetpageReverse() +{ + pageReverseIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getFields() +{ + return fields_; +} + +void ListSupportRegionsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListSupportRegionsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListSupportRegionsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getSortKey() +{ + return sortKey_; +} + +void ListSupportRegionsRequest::setSortKey(const std::vector& value) +{ + sortKey_ = value; + sortKeyIsSet_ = true; +} + +bool ListSupportRegionsRequest::sortKeyIsSet() const +{ + return sortKeyIsSet_; +} + +void ListSupportRegionsRequest::unsetsortKey() +{ + sortKeyIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getSortDir() +{ + return sortDir_; +} + +void ListSupportRegionsRequest::setSortDir(const std::vector& value) +{ + sortDir_ = value; + sortDirIsSet_ = true; +} + +bool ListSupportRegionsRequest::sortDirIsSet() const +{ + return sortDirIsSet_; +} + +void ListSupportRegionsRequest::unsetsortDir() +{ + sortDirIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getId() +{ + return id_; +} + +void ListSupportRegionsRequest::setId(const std::vector& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListSupportRegionsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListSupportRegionsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getInstanceType() +{ + return instanceType_; +} + +void ListSupportRegionsRequest::setInstanceType(const std::vector& value) +{ + instanceType_ = value; + instanceTypeIsSet_ = true; +} + +bool ListSupportRegionsRequest::instanceTypeIsSet() const +{ + return instanceTypeIsSet_; +} + +void ListSupportRegionsRequest::unsetinstanceType() +{ + instanceTypeIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getPublicBorderGroup() +{ + return publicBorderGroup_; +} + +void ListSupportRegionsRequest::setPublicBorderGroup(const std::vector& value) +{ + publicBorderGroup_ = value; + publicBorderGroupIsSet_ = true; +} + +bool ListSupportRegionsRequest::publicBorderGroupIsSet() const +{ + return publicBorderGroupIsSet_; +} + +void ListSupportRegionsRequest::unsetpublicBorderGroup() +{ + publicBorderGroupIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getAccessSite() +{ + return accessSite_; +} + +void ListSupportRegionsRequest::setAccessSite(const std::vector& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListSupportRegionsRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListSupportRegionsRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getRegionId() +{ + return regionId_; +} + +void ListSupportRegionsRequest::setRegionId(const std::vector& value) +{ + regionId_ = value; + regionIdIsSet_ = true; +} + +bool ListSupportRegionsRequest::regionIdIsSet() const +{ + return regionIdIsSet_; +} + +void ListSupportRegionsRequest::unsetregionId() +{ + regionIdIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getRemoteEndpoint() +{ + return remoteEndpoint_; +} + +void ListSupportRegionsRequest::setRemoteEndpoint(const std::vector& value) +{ + remoteEndpoint_ = value; + remoteEndpointIsSet_ = true; +} + +bool ListSupportRegionsRequest::remoteEndpointIsSet() const +{ + return remoteEndpointIsSet_; +} + +void ListSupportRegionsRequest::unsetremoteEndpoint() +{ + remoteEndpointIsSet_ = false; +} + +std::vector& ListSupportRegionsRequest::getStatus() +{ + return status_; +} + +void ListSupportRegionsRequest::setStatus(const std::vector& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListSupportRegionsRequest::statusIsSet() const +{ + return statusIsSet_; +} + +void ListSupportRegionsRequest::unsetstatus() +{ + statusIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListSupportRegionsResponse.cpp b/geip/src/v3/model/ListSupportRegionsResponse.cpp new file mode 100644 index 000000000..3072dcc2e --- /dev/null +++ b/geip/src/v3/model/ListSupportRegionsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ListSupportRegionsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListSupportRegionsResponse::ListSupportRegionsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + supportRegionsIsSet_ = false; + pageInfoIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListSupportRegionsResponse::~ListSupportRegionsResponse() = default; + +void ListSupportRegionsResponse::validate() +{ +} + +web::json::value ListSupportRegionsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(supportRegionsIsSet_) { + val[utility::conversions::to_string_t("support_regions")] = ModelBase::toJson(supportRegions_); + } + if(pageInfoIsSet_) { + val[utility::conversions::to_string_t("page_info")] = ModelBase::toJson(pageInfo_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListSupportRegionsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("support_regions"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("support_regions")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSupportRegions(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("page_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("page_info")); + if(!fieldValue.is_null()) + { + ListGlobalEipsResponseBody_page_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPageInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListSupportRegionsResponse::getRequestId() const +{ + return requestId_; +} + +void ListSupportRegionsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListSupportRegionsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListSupportRegionsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListSupportRegionsResponse::getSupportRegions() +{ + return supportRegions_; +} + +void ListSupportRegionsResponse::setSupportRegions(const std::vector& value) +{ + supportRegions_ = value; + supportRegionsIsSet_ = true; +} + +bool ListSupportRegionsResponse::supportRegionsIsSet() const +{ + return supportRegionsIsSet_; +} + +void ListSupportRegionsResponse::unsetsupportRegions() +{ + supportRegionsIsSet_ = false; +} + +ListGlobalEipsResponseBody_page_info ListSupportRegionsResponse::getPageInfo() const +{ + return pageInfo_; +} + +void ListSupportRegionsResponse::setPageInfo(const ListGlobalEipsResponseBody_page_info& value) +{ + pageInfo_ = value; + pageInfoIsSet_ = true; +} + +bool ListSupportRegionsResponse::pageInfoIsSet() const +{ + return pageInfoIsSet_; +} + +void ListSupportRegionsResponse::unsetpageInfo() +{ + pageInfoIsSet_ = false; +} + +std::string ListSupportRegionsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListSupportRegionsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListSupportRegionsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListSupportRegionsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListTenantGeipSupportInstancesRequest.cpp b/geip/src/v3/model/ListTenantGeipSupportInstancesRequest.cpp new file mode 100644 index 000000000..74e16e04c --- /dev/null +++ b/geip/src/v3/model/ListTenantGeipSupportInstancesRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListTenantGeipSupportInstancesRequest::ListTenantGeipSupportInstancesRequest() +{ + accessSite_ = ""; + accessSiteIsSet_ = false; + fieldsIsSet_ = false; +} + +ListTenantGeipSupportInstancesRequest::~ListTenantGeipSupportInstancesRequest() = default; + +void ListTenantGeipSupportInstancesRequest::validate() +{ +} + +web::json::value ListTenantGeipSupportInstancesRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + + return val; +} +bool ListTenantGeipSupportInstancesRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + return ok; +} + + +std::string ListTenantGeipSupportInstancesRequest::getAccessSite() const +{ + return accessSite_; +} + +void ListTenantGeipSupportInstancesRequest::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ListTenantGeipSupportInstancesRequest::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ListTenantGeipSupportInstancesRequest::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::vector& ListTenantGeipSupportInstancesRequest::getFields() +{ + return fields_; +} + +void ListTenantGeipSupportInstancesRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ListTenantGeipSupportInstancesRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ListTenantGeipSupportInstancesRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ListTenantGeipSupportInstancesResponse.cpp b/geip/src/v3/model/ListTenantGeipSupportInstancesResponse.cpp new file mode 100644 index 000000000..4fc0fd6b9 --- /dev/null +++ b/geip/src/v3/model/ListTenantGeipSupportInstancesResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ListTenantGeipSupportInstancesResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ListTenantGeipSupportInstancesResponse::ListTenantGeipSupportInstancesResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + supportRegionsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ListTenantGeipSupportInstancesResponse::~ListTenantGeipSupportInstancesResponse() = default; + +void ListTenantGeipSupportInstancesResponse::validate() +{ +} + +web::json::value ListTenantGeipSupportInstancesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(supportRegionsIsSet_) { + val[utility::conversions::to_string_t("support_regions")] = ModelBase::toJson(supportRegions_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ListTenantGeipSupportInstancesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("support_regions"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("support_regions")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSupportRegions(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ListTenantGeipSupportInstancesResponse::getRequestId() const +{ + return requestId_; +} + +void ListTenantGeipSupportInstancesResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ListTenantGeipSupportInstancesResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ListTenantGeipSupportInstancesResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ListTenantGeipSupportInstancesResponse::getSupportRegions() +{ + return supportRegions_; +} + +void ListTenantGeipSupportInstancesResponse::setSupportRegions(const std::vector& value) +{ + supportRegions_ = value; + supportRegionsIsSet_ = true; +} + +bool ListTenantGeipSupportInstancesResponse::supportRegionsIsSet() const +{ + return supportRegionsIsSet_; +} + +void ListTenantGeipSupportInstancesResponse::unsetsupportRegions() +{ + supportRegionsIsSet_ = false; +} + +std::string ListTenantGeipSupportInstancesResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ListTenantGeipSupportInstancesResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ListTenantGeipSupportInstancesResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ListTenantGeipSupportInstancesResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/LockInfo.cpp b/geip/src/v3/model/LockInfo.cpp new file mode 100644 index 000000000..c7805dd57 --- /dev/null +++ b/geip/src/v3/model/LockInfo.cpp @@ -0,0 +1,394 @@ + + +#include "huaweicloud/geip/v3/model/LockInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +LockInfo::LockInfo() +{ + id_ = ""; + idIsSet_ = false; + resourceType_ = ""; + resourceTypeIsSet_ = false; + resourceId_ = ""; + resourceIdIsSet_ = false; + scene_ = ""; + sceneIsSet_ = false; + sourceType_ = ""; + sourceTypeIsSet_ = false; + sourceId_ = ""; + sourceIdIsSet_ = false; + checkUrl_ = ""; + checkUrlIsSet_ = false; + action_ = ""; + actionIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; +} + +LockInfo::~LockInfo() = default; + +void LockInfo::validate() +{ +} + +web::json::value LockInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(resourceTypeIsSet_) { + val[utility::conversions::to_string_t("resource_type")] = ModelBase::toJson(resourceType_); + } + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + if(sceneIsSet_) { + val[utility::conversions::to_string_t("scene")] = ModelBase::toJson(scene_); + } + if(sourceTypeIsSet_) { + val[utility::conversions::to_string_t("source_type")] = ModelBase::toJson(sourceType_); + } + if(sourceIdIsSet_) { + val[utility::conversions::to_string_t("source_id")] = ModelBase::toJson(sourceId_); + } + if(checkUrlIsSet_) { + val[utility::conversions::to_string_t("check_url")] = ModelBase::toJson(checkUrl_); + } + if(actionIsSet_) { + val[utility::conversions::to_string_t("action")] = ModelBase::toJson(action_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool LockInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("resource_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("scene"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("scene")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setScene(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("check_url"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("check_url")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCheckUrl(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("action"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("action")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAction(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string LockInfo::getId() const +{ + return id_; +} + +void LockInfo::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool LockInfo::idIsSet() const +{ + return idIsSet_; +} + +void LockInfo::unsetid() +{ + idIsSet_ = false; +} + +std::string LockInfo::getResourceType() const +{ + return resourceType_; +} + +void LockInfo::setResourceType(const std::string& value) +{ + resourceType_ = value; + resourceTypeIsSet_ = true; +} + +bool LockInfo::resourceTypeIsSet() const +{ + return resourceTypeIsSet_; +} + +void LockInfo::unsetresourceType() +{ + resourceTypeIsSet_ = false; +} + +std::string LockInfo::getResourceId() const +{ + return resourceId_; +} + +void LockInfo::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool LockInfo::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void LockInfo::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +std::string LockInfo::getScene() const +{ + return scene_; +} + +void LockInfo::setScene(const std::string& value) +{ + scene_ = value; + sceneIsSet_ = true; +} + +bool LockInfo::sceneIsSet() const +{ + return sceneIsSet_; +} + +void LockInfo::unsetscene() +{ + sceneIsSet_ = false; +} + +std::string LockInfo::getSourceType() const +{ + return sourceType_; +} + +void LockInfo::setSourceType(const std::string& value) +{ + sourceType_ = value; + sourceTypeIsSet_ = true; +} + +bool LockInfo::sourceTypeIsSet() const +{ + return sourceTypeIsSet_; +} + +void LockInfo::unsetsourceType() +{ + sourceTypeIsSet_ = false; +} + +std::string LockInfo::getSourceId() const +{ + return sourceId_; +} + +void LockInfo::setSourceId(const std::string& value) +{ + sourceId_ = value; + sourceIdIsSet_ = true; +} + +bool LockInfo::sourceIdIsSet() const +{ + return sourceIdIsSet_; +} + +void LockInfo::unsetsourceId() +{ + sourceIdIsSet_ = false; +} + +std::string LockInfo::getCheckUrl() const +{ + return checkUrl_; +} + +void LockInfo::setCheckUrl(const std::string& value) +{ + checkUrl_ = value; + checkUrlIsSet_ = true; +} + +bool LockInfo::checkUrlIsSet() const +{ + return checkUrlIsSet_; +} + +void LockInfo::unsetcheckUrl() +{ + checkUrlIsSet_ = false; +} + +std::string LockInfo::getAction() const +{ + return action_; +} + +void LockInfo::setAction(const std::string& value) +{ + action_ = value; + actionIsSet_ = true; +} + +bool LockInfo::actionIsSet() const +{ + return actionIsSet_; +} + +void LockInfo::unsetaction() +{ + actionIsSet_ = false; +} + +utility::datetime LockInfo::getCreatedAt() const +{ + return createdAt_; +} + +void LockInfo::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool LockInfo::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void LockInfo::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime LockInfo::getUpdatedAt() const +{ + return updatedAt_; +} + +void LockInfo::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool LockInfo::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void LockInfo::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/NativeUUID.cpp b/geip/src/v3/model/NativeUUID.cpp new file mode 100644 index 000000000..ae80b8cef --- /dev/null +++ b/geip/src/v3/model/NativeUUID.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/geip/v3/model/NativeUUID.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +NativeUUID::NativeUUID() +{ +} + +NativeUUID::~NativeUUID() = default; + +void NativeUUID::validate() +{ +} + +web::json::value NativeUUID::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool NativeUUID::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ResourcesInfo.cpp b/geip/src/v3/model/ResourcesInfo.cpp new file mode 100644 index 000000000..74b119e78 --- /dev/null +++ b/geip/src/v3/model/ResourcesInfo.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/geip/v3/model/ResourcesInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ResourcesInfo::ResourcesInfo() +{ + type_ = ""; + typeIsSet_ = false; + used_ = 0; + usedIsSet_ = false; + quota_ = 0; + quotaIsSet_ = false; + min_ = 0; + minIsSet_ = false; +} + +ResourcesInfo::~ResourcesInfo() = default; + +void ResourcesInfo::validate() +{ +} + +web::json::value ResourcesInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(usedIsSet_) { + val[utility::conversions::to_string_t("used")] = ModelBase::toJson(used_); + } + if(quotaIsSet_) { + val[utility::conversions::to_string_t("quota")] = ModelBase::toJson(quota_); + } + if(minIsSet_) { + val[utility::conversions::to_string_t("min")] = ModelBase::toJson(min_); + } + + return val; +} +bool ResourcesInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("used"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("used")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUsed(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("quota"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("quota")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setQuota(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("min"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("min")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMin(refVal); + } + } + return ok; +} + + +std::string ResourcesInfo::getType() const +{ + return type_; +} + +void ResourcesInfo::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ResourcesInfo::typeIsSet() const +{ + return typeIsSet_; +} + +void ResourcesInfo::unsettype() +{ + typeIsSet_ = false; +} + +int32_t ResourcesInfo::getUsed() const +{ + return used_; +} + +void ResourcesInfo::setUsed(int32_t value) +{ + used_ = value; + usedIsSet_ = true; +} + +bool ResourcesInfo::usedIsSet() const +{ + return usedIsSet_; +} + +void ResourcesInfo::unsetused() +{ + usedIsSet_ = false; +} + +int32_t ResourcesInfo::getQuota() const +{ + return quota_; +} + +void ResourcesInfo::setQuota(int32_t value) +{ + quota_ = value; + quotaIsSet_ = true; +} + +bool ResourcesInfo::quotaIsSet() const +{ + return quotaIsSet_; +} + +void ResourcesInfo::unsetquota() +{ + quotaIsSet_ = false; +} + +int32_t ResourcesInfo::getMin() const +{ + return min_; +} + +void ResourcesInfo::setMin(int32_t value) +{ + min_ = value; + minIsSet_ = true; +} + +bool ResourcesInfo::minIsSet() const +{ + return minIsSet_; +} + +void ResourcesInfo::unsetmin() +{ + minIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShortGlobalEipSegment.cpp b/geip/src/v3/model/ShortGlobalEipSegment.cpp new file mode 100644 index 000000000..f5c53dbcc --- /dev/null +++ b/geip/src/v3/model/ShortGlobalEipSegment.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/ShortGlobalEipSegment.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShortGlobalEipSegment::ShortGlobalEipSegment() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +ShortGlobalEipSegment::~ShortGlobalEipSegment() = default; + +void ShortGlobalEipSegment::validate() +{ +} + +web::json::value ShortGlobalEipSegment::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + + return val; +} +bool ShortGlobalEipSegment::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + return ok; +} + + +std::string ShortGlobalEipSegment::getId() const +{ + return id_; +} + +void ShortGlobalEipSegment::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ShortGlobalEipSegment::idIsSet() const +{ + return idIsSet_; +} + +void ShortGlobalEipSegment::unsetid() +{ + idIsSet_ = false; +} + +std::string ShortGlobalEipSegment::getName() const +{ + return name_; +} + +void ShortGlobalEipSegment::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ShortGlobalEipSegment::nameIsSet() const +{ + return nameIsSet_; +} + +void ShortGlobalEipSegment::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGeipSegmentTagsRequest.cpp b/geip/src/v3/model/ShowGeipSegmentTagsRequest.cpp new file mode 100644 index 000000000..f88d197ab --- /dev/null +++ b/geip/src/v3/model/ShowGeipSegmentTagsRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/ShowGeipSegmentTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGeipSegmentTagsRequest::ShowGeipSegmentTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; +} + +ShowGeipSegmentTagsRequest::~ShowGeipSegmentTagsRequest() = default; + +void ShowGeipSegmentTagsRequest::validate() +{ +} + +web::json::value ShowGeipSegmentTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + + return val; +} +bool ShowGeipSegmentTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + return ok; +} + + +std::string ShowGeipSegmentTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void ShowGeipSegmentTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool ShowGeipSegmentTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void ShowGeipSegmentTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGeipSegmentTagsResponse.cpp b/geip/src/v3/model/ShowGeipSegmentTagsResponse.cpp new file mode 100644 index 000000000..263e8f258 --- /dev/null +++ b/geip/src/v3/model/ShowGeipSegmentTagsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ShowGeipSegmentTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGeipSegmentTagsResponse::ShowGeipSegmentTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowGeipSegmentTagsResponse::~ShowGeipSegmentTagsResponse() = default; + +void ShowGeipSegmentTagsResponse::validate() +{ +} + +web::json::value ShowGeipSegmentTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowGeipSegmentTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowGeipSegmentTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ShowGeipSegmentTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowGeipSegmentTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowGeipSegmentTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ShowGeipSegmentTagsResponse::getTags() +{ + return tags_; +} + +void ShowGeipSegmentTagsResponse::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ShowGeipSegmentTagsResponse::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ShowGeipSegmentTagsResponse::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ShowGeipSegmentTagsResponse::getSysTags() +{ + return sysTags_; +} + +void ShowGeipSegmentTagsResponse::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ShowGeipSegmentTagsResponse::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ShowGeipSegmentTagsResponse::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ShowGeipSegmentTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowGeipSegmentTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowGeipSegmentTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowGeipSegmentTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEip.cpp b/geip/src/v3/model/ShowGlobalEip.cpp new file mode 100644 index 000000000..16566134a --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEip.cpp @@ -0,0 +1,844 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEip::ShowGlobalEip() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + ipAddress_ = ""; + ipAddressIsSet_ = false; + ipv6Address_ = ""; + ipv6AddressIsSet_ = false; + freezen_ = false; + freezenIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + polluted_ = false; + pollutedIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + internetBandwidthInfoIsSet_ = false; + globalConnectionBandwidthInfoIsSet_ = false; + associateInstanceInfoIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +ShowGlobalEip::~ShowGlobalEip() = default; + +void ShowGlobalEip::validate() +{ +} + +web::json::value ShowGlobalEip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(ipv6AddressIsSet_) { + val[utility::conversions::to_string_t("ipv6_address")] = ModelBase::toJson(ipv6Address_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(pollutedIsSet_) { + val[utility::conversions::to_string_t("polluted")] = ModelBase::toJson(polluted_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(internetBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_info")] = ModelBase::toJson(internetBandwidthInfo_); + } + if(globalConnectionBandwidthInfoIsSet_) { + val[utility::conversions::to_string_t("global_connection_bandwidth_info")] = ModelBase::toJson(globalConnectionBandwidthInfo_); + } + if(associateInstanceInfoIsSet_) { + val[utility::conversions::to_string_t("associate_instance_info")] = ModelBase::toJson(associateInstanceInfo_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool ShowGlobalEip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ipv6_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpv6Address(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("polluted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("polluted")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPolluted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_info")); + if(!fieldValue.is_null()) + { + InternetBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_connection_bandwidth_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_connection_bandwidth_info")); + if(!fieldValue.is_null()) + { + GlobalConnectionBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalConnectionBandwidthInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance_info")); + if(!fieldValue.is_null()) + { + InstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstanceInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEip::getId() const +{ + return id_; +} + +void ShowGlobalEip::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ShowGlobalEip::idIsSet() const +{ + return idIsSet_; +} + +void ShowGlobalEip::unsetid() +{ + idIsSet_ = false; +} + +std::string ShowGlobalEip::getName() const +{ + return name_; +} + +void ShowGlobalEip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ShowGlobalEip::nameIsSet() const +{ + return nameIsSet_; +} + +void ShowGlobalEip::unsetname() +{ + nameIsSet_ = false; +} + +std::string ShowGlobalEip::getDescription() const +{ + return description_; +} + +void ShowGlobalEip::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool ShowGlobalEip::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void ShowGlobalEip::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string ShowGlobalEip::getDomainId() const +{ + return domainId_; +} + +void ShowGlobalEip::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool ShowGlobalEip::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void ShowGlobalEip::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string ShowGlobalEip::getAccessSite() const +{ + return accessSite_; +} + +void ShowGlobalEip::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ShowGlobalEip::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ShowGlobalEip::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string ShowGlobalEip::getGeipPoolName() const +{ + return geipPoolName_; +} + +void ShowGlobalEip::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool ShowGlobalEip::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void ShowGlobalEip::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string ShowGlobalEip::getIsp() const +{ + return isp_; +} + +void ShowGlobalEip::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ShowGlobalEip::ispIsSet() const +{ + return ispIsSet_; +} + +void ShowGlobalEip::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t ShowGlobalEip::getIpVersion() const +{ + return ipVersion_; +} + +void ShowGlobalEip::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ShowGlobalEip::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ShowGlobalEip::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string ShowGlobalEip::getIpAddress() const +{ + return ipAddress_; +} + +void ShowGlobalEip::setIpAddress(const std::string& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool ShowGlobalEip::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void ShowGlobalEip::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::string ShowGlobalEip::getIpv6Address() const +{ + return ipv6Address_; +} + +void ShowGlobalEip::setIpv6Address(const std::string& value) +{ + ipv6Address_ = value; + ipv6AddressIsSet_ = true; +} + +bool ShowGlobalEip::ipv6AddressIsSet() const +{ + return ipv6AddressIsSet_; +} + +void ShowGlobalEip::unsetipv6Address() +{ + ipv6AddressIsSet_ = false; +} + +bool ShowGlobalEip::isFreezen() const +{ + return freezen_; +} + +void ShowGlobalEip::setFreezen(bool value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool ShowGlobalEip::freezenIsSet() const +{ + return freezenIsSet_; +} + +void ShowGlobalEip::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::string ShowGlobalEip::getFreezenInfo() const +{ + return freezenInfo_; +} + +void ShowGlobalEip::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool ShowGlobalEip::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void ShowGlobalEip::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +bool ShowGlobalEip::isPolluted() const +{ + return polluted_; +} + +void ShowGlobalEip::setPolluted(bool value) +{ + polluted_ = value; + pollutedIsSet_ = true; +} + +bool ShowGlobalEip::pollutedIsSet() const +{ + return pollutedIsSet_; +} + +void ShowGlobalEip::unsetpolluted() +{ + pollutedIsSet_ = false; +} + +std::string ShowGlobalEip::getStatus() const +{ + return status_; +} + +void ShowGlobalEip::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ShowGlobalEip::statusIsSet() const +{ + return statusIsSet_; +} + +void ShowGlobalEip::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime ShowGlobalEip::getCreatedAt() const +{ + return createdAt_; +} + +void ShowGlobalEip::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ShowGlobalEip::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ShowGlobalEip::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ShowGlobalEip::getUpdatedAt() const +{ + return updatedAt_; +} + +void ShowGlobalEip::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ShowGlobalEip::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ShowGlobalEip::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +InternetBandwidthInfo ShowGlobalEip::getInternetBandwidthInfo() const +{ + return internetBandwidthInfo_; +} + +void ShowGlobalEip::setInternetBandwidthInfo(const InternetBandwidthInfo& value) +{ + internetBandwidthInfo_ = value; + internetBandwidthInfoIsSet_ = true; +} + +bool ShowGlobalEip::internetBandwidthInfoIsSet() const +{ + return internetBandwidthInfoIsSet_; +} + +void ShowGlobalEip::unsetinternetBandwidthInfo() +{ + internetBandwidthInfoIsSet_ = false; +} + +GlobalConnectionBandwidthInfo ShowGlobalEip::getGlobalConnectionBandwidthInfo() const +{ + return globalConnectionBandwidthInfo_; +} + +void ShowGlobalEip::setGlobalConnectionBandwidthInfo(const GlobalConnectionBandwidthInfo& value) +{ + globalConnectionBandwidthInfo_ = value; + globalConnectionBandwidthInfoIsSet_ = true; +} + +bool ShowGlobalEip::globalConnectionBandwidthInfoIsSet() const +{ + return globalConnectionBandwidthInfoIsSet_; +} + +void ShowGlobalEip::unsetglobalConnectionBandwidthInfo() +{ + globalConnectionBandwidthInfoIsSet_ = false; +} + +InstanceInfo ShowGlobalEip::getAssociateInstanceInfo() const +{ + return associateInstanceInfo_; +} + +void ShowGlobalEip::setAssociateInstanceInfo(const InstanceInfo& value) +{ + associateInstanceInfo_ = value; + associateInstanceInfoIsSet_ = true; +} + +bool ShowGlobalEip::associateInstanceInfoIsSet() const +{ + return associateInstanceInfoIsSet_; +} + +void ShowGlobalEip::unsetassociateInstanceInfo() +{ + associateInstanceInfoIsSet_ = false; +} + +bool ShowGlobalEip::isIsPrePaid() const +{ + return isPrePaid_; +} + +void ShowGlobalEip::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool ShowGlobalEip::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void ShowGlobalEip::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& ShowGlobalEip::getTags() +{ + return tags_; +} + +void ShowGlobalEip::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ShowGlobalEip::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ShowGlobalEip::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ShowGlobalEip::getSysTags() +{ + return sysTags_; +} + +void ShowGlobalEip::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ShowGlobalEip::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ShowGlobalEip::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ShowGlobalEip::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ShowGlobalEip::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ShowGlobalEip::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ShowGlobalEip::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEipRequest.cpp b/geip/src/v3/model/ShowGlobalEipRequest.cpp new file mode 100644 index 000000000..39185aca3 --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEipRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEipRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEipRequest::ShowGlobalEipRequest() +{ + globalEipId_ = ""; + globalEipIdIsSet_ = false; + fieldsIsSet_ = false; +} + +ShowGlobalEipRequest::~ShowGlobalEipRequest() = default; + +void ShowGlobalEipRequest::validate() +{ +} + +web::json::value ShowGlobalEipRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_id")] = ModelBase::toJson(globalEipId_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + + return val; +} +bool ShowGlobalEipRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEipRequest::getGlobalEipId() const +{ + return globalEipId_; +} + +void ShowGlobalEipRequest::setGlobalEipId(const std::string& value) +{ + globalEipId_ = value; + globalEipIdIsSet_ = true; +} + +bool ShowGlobalEipRequest::globalEipIdIsSet() const +{ + return globalEipIdIsSet_; +} + +void ShowGlobalEipRequest::unsetglobalEipId() +{ + globalEipIdIsSet_ = false; +} + +std::vector& ShowGlobalEipRequest::getFields() +{ + return fields_; +} + +void ShowGlobalEipRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ShowGlobalEipRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ShowGlobalEipRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEipResponse.cpp b/geip/src/v3/model/ShowGlobalEipResponse.cpp new file mode 100644 index 000000000..60f5358da --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEipResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEipResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEipResponse::ShowGlobalEipResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowGlobalEipResponse::~ShowGlobalEipResponse() = default; + +void ShowGlobalEipResponse::validate() +{ +} + +web::json::value ShowGlobalEipResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowGlobalEipResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + ShowGlobalEip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEipResponse::getRequestId() const +{ + return requestId_; +} + +void ShowGlobalEipResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowGlobalEipResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowGlobalEipResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +ShowGlobalEip ShowGlobalEipResponse::getGlobalEip() const +{ + return globalEip_; +} + +void ShowGlobalEipResponse::setGlobalEip(const ShowGlobalEip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool ShowGlobalEipResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void ShowGlobalEipResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string ShowGlobalEipResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowGlobalEipResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowGlobalEipResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowGlobalEipResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEipSegment.cpp b/geip/src/v3/model/ShowGlobalEipSegment.cpp new file mode 100644 index 000000000..3a018506f --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEipSegment.cpp @@ -0,0 +1,775 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEipSegment.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEipSegment::ShowGlobalEipSegment() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + geipPoolName_ = ""; + geipPoolNameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ipVersion_ = 0; + ipVersionIsSet_ = false; + cidr_ = ""; + cidrIsSet_ = false; + cidrV6_ = ""; + cidrV6IsSet_ = false; + freezen_ = false; + freezenIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + internetBandwidthIsSet_ = false; + associateInstanceIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +ShowGlobalEipSegment::~ShowGlobalEipSegment() = default; + +void ShowGlobalEipSegment::validate() +{ +} + +web::json::value ShowGlobalEipSegment::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(geipPoolNameIsSet_) { + val[utility::conversions::to_string_t("geip_pool_name")] = ModelBase::toJson(geipPoolName_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ipVersionIsSet_) { + val[utility::conversions::to_string_t("ip_version")] = ModelBase::toJson(ipVersion_); + } + if(cidrIsSet_) { + val[utility::conversions::to_string_t("cidr")] = ModelBase::toJson(cidr_); + } + if(cidrV6IsSet_) { + val[utility::conversions::to_string_t("cidr_v6")] = ModelBase::toJson(cidrV6_); + } + if(freezenIsSet_) { + val[utility::conversions::to_string_t("freezen")] = ModelBase::toJson(freezen_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + if(associateInstanceIsSet_) { + val[utility::conversions::to_string_t("associate_instance")] = ModelBase::toJson(associateInstance_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool ShowGlobalEipSegment::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("geip_pool_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("geip_pool_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGeipPoolName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_version")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidr(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cidr_v6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cidr_v6")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCidrV6(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + InternetBandwidthInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("associate_instance"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("associate_instance")); + if(!fieldValue.is_null()) + { + InstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAssociateInstance(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEipSegment::getId() const +{ + return id_; +} + +void ShowGlobalEipSegment::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ShowGlobalEipSegment::idIsSet() const +{ + return idIsSet_; +} + +void ShowGlobalEipSegment::unsetid() +{ + idIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getName() const +{ + return name_; +} + +void ShowGlobalEipSegment::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ShowGlobalEipSegment::nameIsSet() const +{ + return nameIsSet_; +} + +void ShowGlobalEipSegment::unsetname() +{ + nameIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getDescription() const +{ + return description_; +} + +void ShowGlobalEipSegment::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool ShowGlobalEipSegment::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void ShowGlobalEipSegment::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getDomainId() const +{ + return domainId_; +} + +void ShowGlobalEipSegment::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool ShowGlobalEipSegment::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void ShowGlobalEipSegment::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getAccessSite() const +{ + return accessSite_; +} + +void ShowGlobalEipSegment::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ShowGlobalEipSegment::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ShowGlobalEipSegment::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getGeipPoolName() const +{ + return geipPoolName_; +} + +void ShowGlobalEipSegment::setGeipPoolName(const std::string& value) +{ + geipPoolName_ = value; + geipPoolNameIsSet_ = true; +} + +bool ShowGlobalEipSegment::geipPoolNameIsSet() const +{ + return geipPoolNameIsSet_; +} + +void ShowGlobalEipSegment::unsetgeipPoolName() +{ + geipPoolNameIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getIsp() const +{ + return isp_; +} + +void ShowGlobalEipSegment::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ShowGlobalEipSegment::ispIsSet() const +{ + return ispIsSet_; +} + +void ShowGlobalEipSegment::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t ShowGlobalEipSegment::getIpVersion() const +{ + return ipVersion_; +} + +void ShowGlobalEipSegment::setIpVersion(int32_t value) +{ + ipVersion_ = value; + ipVersionIsSet_ = true; +} + +bool ShowGlobalEipSegment::ipVersionIsSet() const +{ + return ipVersionIsSet_; +} + +void ShowGlobalEipSegment::unsetipVersion() +{ + ipVersionIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getCidr() const +{ + return cidr_; +} + +void ShowGlobalEipSegment::setCidr(const std::string& value) +{ + cidr_ = value; + cidrIsSet_ = true; +} + +bool ShowGlobalEipSegment::cidrIsSet() const +{ + return cidrIsSet_; +} + +void ShowGlobalEipSegment::unsetcidr() +{ + cidrIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getCidrV6() const +{ + return cidrV6_; +} + +void ShowGlobalEipSegment::setCidrV6(const std::string& value) +{ + cidrV6_ = value; + cidrV6IsSet_ = true; +} + +bool ShowGlobalEipSegment::cidrV6IsSet() const +{ + return cidrV6IsSet_; +} + +void ShowGlobalEipSegment::unsetcidrV6() +{ + cidrV6IsSet_ = false; +} + +bool ShowGlobalEipSegment::isFreezen() const +{ + return freezen_; +} + +void ShowGlobalEipSegment::setFreezen(bool value) +{ + freezen_ = value; + freezenIsSet_ = true; +} + +bool ShowGlobalEipSegment::freezenIsSet() const +{ + return freezenIsSet_; +} + +void ShowGlobalEipSegment::unsetfreezen() +{ + freezenIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getFreezenInfo() const +{ + return freezenInfo_; +} + +void ShowGlobalEipSegment::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool ShowGlobalEipSegment::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void ShowGlobalEipSegment::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getStatus() const +{ + return status_; +} + +void ShowGlobalEipSegment::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ShowGlobalEipSegment::statusIsSet() const +{ + return statusIsSet_; +} + +void ShowGlobalEipSegment::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime ShowGlobalEipSegment::getCreatedAt() const +{ + return createdAt_; +} + +void ShowGlobalEipSegment::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ShowGlobalEipSegment::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ShowGlobalEipSegment::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ShowGlobalEipSegment::getUpdatedAt() const +{ + return updatedAt_; +} + +void ShowGlobalEipSegment::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ShowGlobalEipSegment::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ShowGlobalEipSegment::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +InternetBandwidthInfo ShowGlobalEipSegment::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void ShowGlobalEipSegment::setInternetBandwidth(const InternetBandwidthInfo& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool ShowGlobalEipSegment::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void ShowGlobalEipSegment::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +InstanceInfo ShowGlobalEipSegment::getAssociateInstance() const +{ + return associateInstance_; +} + +void ShowGlobalEipSegment::setAssociateInstance(const InstanceInfo& value) +{ + associateInstance_ = value; + associateInstanceIsSet_ = true; +} + +bool ShowGlobalEipSegment::associateInstanceIsSet() const +{ + return associateInstanceIsSet_; +} + +void ShowGlobalEipSegment::unsetassociateInstance() +{ + associateInstanceIsSet_ = false; +} + +bool ShowGlobalEipSegment::isIsPrePaid() const +{ + return isPrePaid_; +} + +void ShowGlobalEipSegment::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool ShowGlobalEipSegment::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void ShowGlobalEipSegment::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& ShowGlobalEipSegment::getTags() +{ + return tags_; +} + +void ShowGlobalEipSegment::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ShowGlobalEipSegment::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ShowGlobalEipSegment::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ShowGlobalEipSegment::getSysTags() +{ + return sysTags_; +} + +void ShowGlobalEipSegment::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ShowGlobalEipSegment::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ShowGlobalEipSegment::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ShowGlobalEipSegment::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ShowGlobalEipSegment::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ShowGlobalEipSegment::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ShowGlobalEipSegment::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEipSegmentRequest.cpp b/geip/src/v3/model/ShowGlobalEipSegmentRequest.cpp new file mode 100644 index 000000000..c0dc73283 --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEipSegmentRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEipSegmentRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEipSegmentRequest::ShowGlobalEipSegmentRequest() +{ + globalEipSegmentId_ = ""; + globalEipSegmentIdIsSet_ = false; + fieldsIsSet_ = false; +} + +ShowGlobalEipSegmentRequest::~ShowGlobalEipSegmentRequest() = default; + +void ShowGlobalEipSegmentRequest::validate() +{ +} + +web::json::value ShowGlobalEipSegmentRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment_id")] = ModelBase::toJson(globalEipSegmentId_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + + return val; +} +bool ShowGlobalEipSegmentRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEipSegmentRequest::getGlobalEipSegmentId() const +{ + return globalEipSegmentId_; +} + +void ShowGlobalEipSegmentRequest::setGlobalEipSegmentId(const std::string& value) +{ + globalEipSegmentId_ = value; + globalEipSegmentIdIsSet_ = true; +} + +bool ShowGlobalEipSegmentRequest::globalEipSegmentIdIsSet() const +{ + return globalEipSegmentIdIsSet_; +} + +void ShowGlobalEipSegmentRequest::unsetglobalEipSegmentId() +{ + globalEipSegmentIdIsSet_ = false; +} + +std::vector& ShowGlobalEipSegmentRequest::getFields() +{ + return fields_; +} + +void ShowGlobalEipSegmentRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ShowGlobalEipSegmentRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ShowGlobalEipSegmentRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEipSegmentResponse.cpp b/geip/src/v3/model/ShowGlobalEipSegmentResponse.cpp new file mode 100644 index 000000000..ebce1ff82 --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEipSegmentResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEipSegmentResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEipSegmentResponse::ShowGlobalEipSegmentResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + globalEipSegmentIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowGlobalEipSegmentResponse::~ShowGlobalEipSegmentResponse() = default; + +void ShowGlobalEipSegmentResponse::validate() +{ +} + +web::json::value ShowGlobalEipSegmentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowGlobalEipSegmentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + ShowGlobalEipSegment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEipSegmentResponse::getRequestId() const +{ + return requestId_; +} + +void ShowGlobalEipSegmentResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowGlobalEipSegmentResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowGlobalEipSegmentResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +ShowGlobalEipSegment ShowGlobalEipSegmentResponse::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void ShowGlobalEipSegmentResponse::setGlobalEipSegment(const ShowGlobalEipSegment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool ShowGlobalEipSegmentResponse::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void ShowGlobalEipSegmentResponse::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +std::string ShowGlobalEipSegmentResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowGlobalEipSegmentResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowGlobalEipSegmentResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowGlobalEipSegmentResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEipTagsRequest.cpp b/geip/src/v3/model/ShowGlobalEipTagsRequest.cpp new file mode 100644 index 000000000..acc9d22b1 --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEipTagsRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEipTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEipTagsRequest::ShowGlobalEipTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; +} + +ShowGlobalEipTagsRequest::~ShowGlobalEipTagsRequest() = default; + +void ShowGlobalEipTagsRequest::validate() +{ +} + +web::json::value ShowGlobalEipTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + + return val; +} +bool ShowGlobalEipTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEipTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void ShowGlobalEipTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool ShowGlobalEipTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void ShowGlobalEipTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowGlobalEipTagsResponse.cpp b/geip/src/v3/model/ShowGlobalEipTagsResponse.cpp new file mode 100644 index 000000000..121477577 --- /dev/null +++ b/geip/src/v3/model/ShowGlobalEipTagsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ShowGlobalEipTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowGlobalEipTagsResponse::ShowGlobalEipTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowGlobalEipTagsResponse::~ShowGlobalEipTagsResponse() = default; + +void ShowGlobalEipTagsResponse::validate() +{ +} + +web::json::value ShowGlobalEipTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowGlobalEipTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowGlobalEipTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ShowGlobalEipTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowGlobalEipTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowGlobalEipTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ShowGlobalEipTagsResponse::getTags() +{ + return tags_; +} + +void ShowGlobalEipTagsResponse::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ShowGlobalEipTagsResponse::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ShowGlobalEipTagsResponse::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ShowGlobalEipTagsResponse::getSysTags() +{ + return sysTags_; +} + +void ShowGlobalEipTagsResponse::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ShowGlobalEipTagsResponse::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ShowGlobalEipTagsResponse::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ShowGlobalEipTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowGlobalEipTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowGlobalEipTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowGlobalEipTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowInternetBandwidth.cpp b/geip/src/v3/model/ShowInternetBandwidth.cpp new file mode 100644 index 000000000..52176d62c --- /dev/null +++ b/geip/src/v3/model/ShowInternetBandwidth.cpp @@ -0,0 +1,776 @@ + + +#include "huaweicloud/geip/v3/model/ShowInternetBandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowInternetBandwidth::ShowInternetBandwidth() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + ratio95peak_ = 0; + ratio95peakIsSet_ = false; + billingInfo_ = ""; + billingInfoIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + lockInfosIsSet_ = false; +} + +ShowInternetBandwidth::~ShowInternetBandwidth() = default; + +void ShowInternetBandwidth::validate() +{ +} + +web::json::value ShowInternetBandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(ratio95peakIsSet_) { + val[utility::conversions::to_string_t("ratio_95peak")] = ModelBase::toJson(ratio95peak_); + } + if(billingInfoIsSet_) { + val[utility::conversions::to_string_t("billing_info")] = ModelBase::toJson(billingInfo_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(lockInfosIsSet_) { + val[utility::conversions::to_string_t("lock_infos")] = ModelBase::toJson(lockInfos_); + } + + return val; +} +bool ShowInternetBandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ratio_95peak"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ratio_95peak")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRatio95peak(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("billing_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("billing_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBillingInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lock_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lock_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLockInfos(refVal); + } + } + return ok; +} + + +std::string ShowInternetBandwidth::getId() const +{ + return id_; +} + +void ShowInternetBandwidth::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ShowInternetBandwidth::idIsSet() const +{ + return idIsSet_; +} + +void ShowInternetBandwidth::unsetid() +{ + idIsSet_ = false; +} + +std::string ShowInternetBandwidth::getName() const +{ + return name_; +} + +void ShowInternetBandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ShowInternetBandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void ShowInternetBandwidth::unsetname() +{ + nameIsSet_ = false; +} + +std::string ShowInternetBandwidth::getIsp() const +{ + return isp_; +} + +void ShowInternetBandwidth::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool ShowInternetBandwidth::ispIsSet() const +{ + return ispIsSet_; +} + +void ShowInternetBandwidth::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t ShowInternetBandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void ShowInternetBandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool ShowInternetBandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void ShowInternetBandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string ShowInternetBandwidth::getAccessSite() const +{ + return accessSite_; +} + +void ShowInternetBandwidth::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool ShowInternetBandwidth::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void ShowInternetBandwidth::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t ShowInternetBandwidth::getSize() const +{ + return size_; +} + +void ShowInternetBandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool ShowInternetBandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void ShowInternetBandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string ShowInternetBandwidth::getDescription() const +{ + return description_; +} + +void ShowInternetBandwidth::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool ShowInternetBandwidth::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void ShowInternetBandwidth::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string ShowInternetBandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void ShowInternetBandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool ShowInternetBandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void ShowInternetBandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t ShowInternetBandwidth::getRatio95peak() const +{ + return ratio95peak_; +} + +void ShowInternetBandwidth::setRatio95peak(int32_t value) +{ + ratio95peak_ = value; + ratio95peakIsSet_ = true; +} + +bool ShowInternetBandwidth::ratio95peakIsSet() const +{ + return ratio95peakIsSet_; +} + +void ShowInternetBandwidth::unsetratio95peak() +{ + ratio95peakIsSet_ = false; +} + +std::string ShowInternetBandwidth::getBillingInfo() const +{ + return billingInfo_; +} + +void ShowInternetBandwidth::setBillingInfo(const std::string& value) +{ + billingInfo_ = value; + billingInfoIsSet_ = true; +} + +bool ShowInternetBandwidth::billingInfoIsSet() const +{ + return billingInfoIsSet_; +} + +void ShowInternetBandwidth::unsetbillingInfo() +{ + billingInfoIsSet_ = false; +} + +std::string ShowInternetBandwidth::getFreezenInfo() const +{ + return freezenInfo_; +} + +void ShowInternetBandwidth::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool ShowInternetBandwidth::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void ShowInternetBandwidth::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +std::string ShowInternetBandwidth::getDomainId() const +{ + return domainId_; +} + +void ShowInternetBandwidth::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool ShowInternetBandwidth::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void ShowInternetBandwidth::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string ShowInternetBandwidth::getStatus() const +{ + return status_; +} + +void ShowInternetBandwidth::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ShowInternetBandwidth::statusIsSet() const +{ + return statusIsSet_; +} + +void ShowInternetBandwidth::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime ShowInternetBandwidth::getCreatedAt() const +{ + return createdAt_; +} + +void ShowInternetBandwidth::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ShowInternetBandwidth::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ShowInternetBandwidth::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ShowInternetBandwidth::getUpdatedAt() const +{ + return updatedAt_; +} + +void ShowInternetBandwidth::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ShowInternetBandwidth::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ShowInternetBandwidth::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +bool ShowInternetBandwidth::isIsPrePaid() const +{ + return isPrePaid_; +} + +void ShowInternetBandwidth::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool ShowInternetBandwidth::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void ShowInternetBandwidth::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& ShowInternetBandwidth::getTags() +{ + return tags_; +} + +void ShowInternetBandwidth::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ShowInternetBandwidth::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ShowInternetBandwidth::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ShowInternetBandwidth::getSysTags() +{ + return sysTags_; +} + +void ShowInternetBandwidth::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ShowInternetBandwidth::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ShowInternetBandwidth::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ShowInternetBandwidth::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ShowInternetBandwidth::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ShowInternetBandwidth::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ShowInternetBandwidth::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string ShowInternetBandwidth::getType() const +{ + return type_; +} + +void ShowInternetBandwidth::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ShowInternetBandwidth::typeIsSet() const +{ + return typeIsSet_; +} + +void ShowInternetBandwidth::unsettype() +{ + typeIsSet_ = false; +} + +std::vector& ShowInternetBandwidth::getLockInfos() +{ + return lockInfos_; +} + +void ShowInternetBandwidth::setLockInfos(const std::vector& value) +{ + lockInfos_ = value; + lockInfosIsSet_ = true; +} + +bool ShowInternetBandwidth::lockInfosIsSet() const +{ + return lockInfosIsSet_; +} + +void ShowInternetBandwidth::unsetlockInfos() +{ + lockInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowInternetBandwidthRequest.cpp b/geip/src/v3/model/ShowInternetBandwidthRequest.cpp new file mode 100644 index 000000000..04321c419 --- /dev/null +++ b/geip/src/v3/model/ShowInternetBandwidthRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/ShowInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowInternetBandwidthRequest::ShowInternetBandwidthRequest() +{ + internetBandwidthId_ = ""; + internetBandwidthIdIsSet_ = false; + fieldsIsSet_ = false; +} + +ShowInternetBandwidthRequest::~ShowInternetBandwidthRequest() = default; + +void ShowInternetBandwidthRequest::validate() +{ +} + +web::json::value ShowInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + + return val; +} +bool ShowInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + return ok; +} + + +std::string ShowInternetBandwidthRequest::getInternetBandwidthId() const +{ + return internetBandwidthId_; +} + +void ShowInternetBandwidthRequest::setInternetBandwidthId(const std::string& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool ShowInternetBandwidthRequest::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void ShowInternetBandwidthRequest::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +std::vector& ShowInternetBandwidthRequest::getFields() +{ + return fields_; +} + +void ShowInternetBandwidthRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ShowInternetBandwidthRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ShowInternetBandwidthRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowInternetBandwidthResponse.cpp b/geip/src/v3/model/ShowInternetBandwidthResponse.cpp new file mode 100644 index 000000000..40bb72505 --- /dev/null +++ b/geip/src/v3/model/ShowInternetBandwidthResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ShowInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowInternetBandwidthResponse::ShowInternetBandwidthResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + internetBandwidthIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowInternetBandwidthResponse::~ShowInternetBandwidthResponse() = default; + +void ShowInternetBandwidthResponse::validate() +{ +} + +web::json::value ShowInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + ShowInternetBandwidth refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowInternetBandwidthResponse::getRequestId() const +{ + return requestId_; +} + +void ShowInternetBandwidthResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowInternetBandwidthResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowInternetBandwidthResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +ShowInternetBandwidth ShowInternetBandwidthResponse::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void ShowInternetBandwidthResponse::setInternetBandwidth(const ShowInternetBandwidth& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool ShowInternetBandwidthResponse::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void ShowInternetBandwidthResponse::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +std::string ShowInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowInternetBandwidthTagsRequest.cpp b/geip/src/v3/model/ShowInternetBandwidthTagsRequest.cpp new file mode 100644 index 000000000..95801d2d0 --- /dev/null +++ b/geip/src/v3/model/ShowInternetBandwidthTagsRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/geip/v3/model/ShowInternetBandwidthTagsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowInternetBandwidthTagsRequest::ShowInternetBandwidthTagsRequest() +{ + resourceId_ = ""; + resourceIdIsSet_ = false; +} + +ShowInternetBandwidthTagsRequest::~ShowInternetBandwidthTagsRequest() = default; + +void ShowInternetBandwidthTagsRequest::validate() +{ +} + +web::json::value ShowInternetBandwidthTagsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resourceIdIsSet_) { + val[utility::conversions::to_string_t("resource_id")] = ModelBase::toJson(resourceId_); + } + + return val; +} +bool ShowInternetBandwidthTagsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResourceId(refVal); + } + } + return ok; +} + + +std::string ShowInternetBandwidthTagsRequest::getResourceId() const +{ + return resourceId_; +} + +void ShowInternetBandwidthTagsRequest::setResourceId(const std::string& value) +{ + resourceId_ = value; + resourceIdIsSet_ = true; +} + +bool ShowInternetBandwidthTagsRequest::resourceIdIsSet() const +{ + return resourceIdIsSet_; +} + +void ShowInternetBandwidthTagsRequest::unsetresourceId() +{ + resourceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowInternetBandwidthTagsResponse.cpp b/geip/src/v3/model/ShowInternetBandwidthTagsResponse.cpp new file mode 100644 index 000000000..94201bf11 --- /dev/null +++ b/geip/src/v3/model/ShowInternetBandwidthTagsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/geip/v3/model/ShowInternetBandwidthTagsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowInternetBandwidthTagsResponse::ShowInternetBandwidthTagsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + tagsIsSet_ = false; + sysTagsIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowInternetBandwidthTagsResponse::~ShowInternetBandwidthTagsResponse() = default; + +void ShowInternetBandwidthTagsResponse::validate() +{ +} + +web::json::value ShowInternetBandwidthTagsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowInternetBandwidthTagsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowInternetBandwidthTagsResponse::getRequestId() const +{ + return requestId_; +} + +void ShowInternetBandwidthTagsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowInternetBandwidthTagsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowInternetBandwidthTagsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +std::vector& ShowInternetBandwidthTagsResponse::getTags() +{ + return tags_; +} + +void ShowInternetBandwidthTagsResponse::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ShowInternetBandwidthTagsResponse::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ShowInternetBandwidthTagsResponse::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& ShowInternetBandwidthTagsResponse::getSysTags() +{ + return sysTags_; +} + +void ShowInternetBandwidthTagsResponse::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool ShowInternetBandwidthTagsResponse::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void ShowInternetBandwidthTagsResponse::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +std::string ShowInternetBandwidthTagsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowInternetBandwidthTagsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowInternetBandwidthTagsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowInternetBandwidthTagsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowJob.cpp b/geip/src/v3/model/ShowJob.cpp new file mode 100644 index 000000000..eac5541a7 --- /dev/null +++ b/geip/src/v3/model/ShowJob.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/geip/v3/model/ShowJob.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowJob::ShowJob() +{ + id_ = ""; + idIsSet_ = false; + action_ = ""; + actionIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + errorTask_ = ""; + errorTaskIsSet_ = false; + errorCode_ = ""; + errorCodeIsSet_ = false; + errorMessage_ = ""; + errorMessageIsSet_ = false; + startTime_ = utility::datetime(); + startTimeIsSet_ = false; + endTime_ = utility::datetime(); + endTimeIsSet_ = false; +} + +ShowJob::~ShowJob() = default; + +void ShowJob::validate() +{ +} + +web::json::value ShowJob::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(actionIsSet_) { + val[utility::conversions::to_string_t("action")] = ModelBase::toJson(action_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(errorTaskIsSet_) { + val[utility::conversions::to_string_t("error_task")] = ModelBase::toJson(errorTask_); + } + if(errorCodeIsSet_) { + val[utility::conversions::to_string_t("error_code")] = ModelBase::toJson(errorCode_); + } + if(errorMessageIsSet_) { + val[utility::conversions::to_string_t("error_message")] = ModelBase::toJson(errorMessage_); + } + if(startTimeIsSet_) { + val[utility::conversions::to_string_t("start_time")] = ModelBase::toJson(startTime_); + } + if(endTimeIsSet_) { + val[utility::conversions::to_string_t("end_time")] = ModelBase::toJson(endTime_); + } + + return val; +} +bool ShowJob::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("action"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("action")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAction(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_task"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_task")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorTask(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_message"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_message")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorMessage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("start_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("start_time")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStartTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("end_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("end_time")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEndTime(refVal); + } + } + return ok; +} + + +std::string ShowJob::getId() const +{ + return id_; +} + +void ShowJob::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ShowJob::idIsSet() const +{ + return idIsSet_; +} + +void ShowJob::unsetid() +{ + idIsSet_ = false; +} + +std::string ShowJob::getAction() const +{ + return action_; +} + +void ShowJob::setAction(const std::string& value) +{ + action_ = value; + actionIsSet_ = true; +} + +bool ShowJob::actionIsSet() const +{ + return actionIsSet_; +} + +void ShowJob::unsetaction() +{ + actionIsSet_ = false; +} + +std::string ShowJob::getStatus() const +{ + return status_; +} + +void ShowJob::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ShowJob::statusIsSet() const +{ + return statusIsSet_; +} + +void ShowJob::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string ShowJob::getErrorTask() const +{ + return errorTask_; +} + +void ShowJob::setErrorTask(const std::string& value) +{ + errorTask_ = value; + errorTaskIsSet_ = true; +} + +bool ShowJob::errorTaskIsSet() const +{ + return errorTaskIsSet_; +} + +void ShowJob::unseterrorTask() +{ + errorTaskIsSet_ = false; +} + +std::string ShowJob::getErrorCode() const +{ + return errorCode_; +} + +void ShowJob::setErrorCode(const std::string& value) +{ + errorCode_ = value; + errorCodeIsSet_ = true; +} + +bool ShowJob::errorCodeIsSet() const +{ + return errorCodeIsSet_; +} + +void ShowJob::unseterrorCode() +{ + errorCodeIsSet_ = false; +} + +std::string ShowJob::getErrorMessage() const +{ + return errorMessage_; +} + +void ShowJob::setErrorMessage(const std::string& value) +{ + errorMessage_ = value; + errorMessageIsSet_ = true; +} + +bool ShowJob::errorMessageIsSet() const +{ + return errorMessageIsSet_; +} + +void ShowJob::unseterrorMessage() +{ + errorMessageIsSet_ = false; +} + +utility::datetime ShowJob::getStartTime() const +{ + return startTime_; +} + +void ShowJob::setStartTime(const utility::datetime& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ShowJob::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ShowJob::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +utility::datetime ShowJob::getEndTime() const +{ + return endTime_; +} + +void ShowJob::setEndTime(const utility::datetime& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool ShowJob::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void ShowJob::unsetendTime() +{ + endTimeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowJobsRequest.cpp b/geip/src/v3/model/ShowJobsRequest.cpp new file mode 100644 index 000000000..27f2e43da --- /dev/null +++ b/geip/src/v3/model/ShowJobsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/ShowJobsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowJobsRequest::ShowJobsRequest() +{ + jobId_ = ""; + jobIdIsSet_ = false; + fieldsIsSet_ = false; +} + +ShowJobsRequest::~ShowJobsRequest() = default; + +void ShowJobsRequest::validate() +{ +} + +web::json::value ShowJobsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + + return val; +} +bool ShowJobsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + return ok; +} + + +std::string ShowJobsRequest::getJobId() const +{ + return jobId_; +} + +void ShowJobsRequest::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool ShowJobsRequest::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void ShowJobsRequest::unsetjobId() +{ + jobIdIsSet_ = false; +} + +std::vector& ShowJobsRequest::getFields() +{ + return fields_; +} + +void ShowJobsRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ShowJobsRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ShowJobsRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowJobsResponse.cpp b/geip/src/v3/model/ShowJobsResponse.cpp new file mode 100644 index 000000000..0a99be809 --- /dev/null +++ b/geip/src/v3/model/ShowJobsResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ShowJobsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowJobsResponse::ShowJobsResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + jobIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowJobsResponse::~ShowJobsResponse() = default; + +void ShowJobsResponse::validate() +{ +} + +web::json::value ShowJobsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(jobIsSet_) { + val[utility::conversions::to_string_t("job")] = ModelBase::toJson(job_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowJobsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("job"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job")); + if(!fieldValue.is_null()) + { + ShowJob refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJob(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowJobsResponse::getRequestId() const +{ + return requestId_; +} + +void ShowJobsResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowJobsResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowJobsResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +ShowJob ShowJobsResponse::getJob() const +{ + return job_; +} + +void ShowJobsResponse::setJob(const ShowJob& value) +{ + job_ = value; + jobIsSet_ = true; +} + +bool ShowJobsResponse::jobIsSet() const +{ + return jobIsSet_; +} + +void ShowJobsResponse::unsetjob() +{ + jobIsSet_ = false; +} + +std::string ShowJobsResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowJobsResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowJobsResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowJobsResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowUserDisclaimerRecord.cpp b/geip/src/v3/model/ShowUserDisclaimerRecord.cpp new file mode 100644 index 000000000..0b74729dc --- /dev/null +++ b/geip/src/v3/model/ShowUserDisclaimerRecord.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/geip/v3/model/ShowUserDisclaimerRecord.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowUserDisclaimerRecord::ShowUserDisclaimerRecord() +{ + domainId_ = ""; + domainIdIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; +} + +ShowUserDisclaimerRecord::~ShowUserDisclaimerRecord() = default; + +void ShowUserDisclaimerRecord::validate() +{ +} + +web::json::value ShowUserDisclaimerRecord::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool ShowUserDisclaimerRecord::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string ShowUserDisclaimerRecord::getDomainId() const +{ + return domainId_; +} + +void ShowUserDisclaimerRecord::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool ShowUserDisclaimerRecord::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void ShowUserDisclaimerRecord::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +utility::datetime ShowUserDisclaimerRecord::getCreatedAt() const +{ + return createdAt_; +} + +void ShowUserDisclaimerRecord::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ShowUserDisclaimerRecord::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ShowUserDisclaimerRecord::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime ShowUserDisclaimerRecord::getUpdatedAt() const +{ + return updatedAt_; +} + +void ShowUserDisclaimerRecord::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ShowUserDisclaimerRecord::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ShowUserDisclaimerRecord::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowUserDisclaimerRequest.cpp b/geip/src/v3/model/ShowUserDisclaimerRequest.cpp new file mode 100644 index 000000000..4a316acd4 --- /dev/null +++ b/geip/src/v3/model/ShowUserDisclaimerRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/ShowUserDisclaimerRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowUserDisclaimerRequest::ShowUserDisclaimerRequest() +{ + fieldsIsSet_ = false; +} + +ShowUserDisclaimerRequest::~ShowUserDisclaimerRequest() = default; + +void ShowUserDisclaimerRequest::validate() +{ +} + +web::json::value ShowUserDisclaimerRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + + return val; +} +bool ShowUserDisclaimerRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + return ok; +} + + +std::vector& ShowUserDisclaimerRequest::getFields() +{ + return fields_; +} + +void ShowUserDisclaimerRequest::setFields(const std::vector& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool ShowUserDisclaimerRequest::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void ShowUserDisclaimerRequest::unsetfields() +{ + fieldsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/ShowUserDisclaimerResponse.cpp b/geip/src/v3/model/ShowUserDisclaimerResponse.cpp new file mode 100644 index 000000000..abd050247 --- /dev/null +++ b/geip/src/v3/model/ShowUserDisclaimerResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/ShowUserDisclaimerResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +ShowUserDisclaimerResponse::ShowUserDisclaimerResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + userDisclaimerRecordIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +ShowUserDisclaimerResponse::~ShowUserDisclaimerResponse() = default; + +void ShowUserDisclaimerResponse::validate() +{ +} + +web::json::value ShowUserDisclaimerResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(userDisclaimerRecordIsSet_) { + val[utility::conversions::to_string_t("user_disclaimer_record")] = ModelBase::toJson(userDisclaimerRecord_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool ShowUserDisclaimerResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("user_disclaimer_record"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_disclaimer_record")); + if(!fieldValue.is_null()) + { + ShowUserDisclaimerRecord refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserDisclaimerRecord(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string ShowUserDisclaimerResponse::getRequestId() const +{ + return requestId_; +} + +void ShowUserDisclaimerResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool ShowUserDisclaimerResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void ShowUserDisclaimerResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +ShowUserDisclaimerRecord ShowUserDisclaimerResponse::getUserDisclaimerRecord() const +{ + return userDisclaimerRecord_; +} + +void ShowUserDisclaimerResponse::setUserDisclaimerRecord(const ShowUserDisclaimerRecord& value) +{ + userDisclaimerRecord_ = value; + userDisclaimerRecordIsSet_ = true; +} + +bool ShowUserDisclaimerResponse::userDisclaimerRecordIsSet() const +{ + return userDisclaimerRecordIsSet_; +} + +void ShowUserDisclaimerResponse::unsetuserDisclaimerRecord() +{ + userDisclaimerRecordIsSet_ = false; +} + +std::string ShowUserDisclaimerResponse::getXRequestId() const +{ + return xRequestId_; +} + +void ShowUserDisclaimerResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool ShowUserDisclaimerResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void ShowUserDisclaimerResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/SysTag.cpp b/geip/src/v3/model/SysTag.cpp new file mode 100644 index 000000000..50893a867 --- /dev/null +++ b/geip/src/v3/model/SysTag.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/SysTag.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +SysTag::SysTag() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +SysTag::~SysTag() = default; + +void SysTag::validate() +{ +} + +web::json::value SysTag::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool SysTag::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string SysTag::getKey() const +{ + return key_; +} + +void SysTag::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool SysTag::keyIsSet() const +{ + return keyIsSet_; +} + +void SysTag::unsetkey() +{ + keyIsSet_ = false; +} + +std::string SysTag::getValue() const +{ + return value_; +} + +void SysTag::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool SysTag::valueIsSet() const +{ + return valueIsSet_; +} + +void SysTag::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/Tag.cpp b/geip/src/v3/model/Tag.cpp new file mode 100644 index 000000000..cb7504730 --- /dev/null +++ b/geip/src/v3/model/Tag.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/Tag.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +Tag::Tag() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +Tag::~Tag() = default; + +void Tag::validate() +{ +} + +web::json::value Tag::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool Tag::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string Tag::getKey() const +{ + return key_; +} + +void Tag::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool Tag::keyIsSet() const +{ + return keyIsSet_; +} + +void Tag::unsetkey() +{ + keyIsSet_ = false; +} + +std::string Tag::getValue() const +{ + return value_; +} + +void Tag::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool Tag::valueIsSet() const +{ + return valueIsSet_; +} + +void Tag::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEip.cpp b/geip/src/v3/model/UpdateGlobalEip.cpp new file mode 100644 index 000000000..8b2577e75 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEip.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEip::UpdateGlobalEip() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +UpdateGlobalEip::~UpdateGlobalEip() = default; + +void UpdateGlobalEip::validate() +{ +} + +web::json::value UpdateGlobalEip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + + return val; +} +bool UpdateGlobalEip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + return ok; +} + + +std::string UpdateGlobalEip::getId() const +{ + return id_; +} + +void UpdateGlobalEip::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool UpdateGlobalEip::idIsSet() const +{ + return idIsSet_; +} + +void UpdateGlobalEip::unsetid() +{ + idIsSet_ = false; +} + +std::string UpdateGlobalEip::getName() const +{ + return name_; +} + +void UpdateGlobalEip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool UpdateGlobalEip::nameIsSet() const +{ + return nameIsSet_; +} + +void UpdateGlobalEip::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipRequest.cpp b/geip/src/v3/model/UpdateGlobalEipRequest.cpp new file mode 100644 index 000000000..37cae2084 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipRequest::UpdateGlobalEipRequest() +{ + globalEipId_ = ""; + globalEipIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateGlobalEipRequest::~UpdateGlobalEipRequest() = default; + +void UpdateGlobalEipRequest::validate() +{ +} + +web::json::value UpdateGlobalEipRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_id")] = ModelBase::toJson(globalEipId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdateGlobalEipRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdateGlobalEipRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateGlobalEipRequest::getGlobalEipId() const +{ + return globalEipId_; +} + +void UpdateGlobalEipRequest::setGlobalEipId(const std::string& value) +{ + globalEipId_ = value; + globalEipIdIsSet_ = true; +} + +bool UpdateGlobalEipRequest::globalEipIdIsSet() const +{ + return globalEipIdIsSet_; +} + +void UpdateGlobalEipRequest::unsetglobalEipId() +{ + globalEipIdIsSet_ = false; +} + +UpdateGlobalEipRequestBody UpdateGlobalEipRequest::getBody() const +{ + return body_; +} + +void UpdateGlobalEipRequest::setBody(const UpdateGlobalEipRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateGlobalEipRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateGlobalEipRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipRequestBody.cpp b/geip/src/v3/model/UpdateGlobalEipRequestBody.cpp new file mode 100644 index 000000000..da9b71ace --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipRequestBody.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipRequestBody::UpdateGlobalEipRequestBody() +{ + dryRun_ = false; + dryRunIsSet_ = false; + globalEipIsSet_ = false; +} + +UpdateGlobalEipRequestBody::~UpdateGlobalEipRequestBody() = default; + +void UpdateGlobalEipRequestBody::validate() +{ +} + +web::json::value UpdateGlobalEipRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dryRunIsSet_) { + val[utility::conversions::to_string_t("dry_run")] = ModelBase::toJson(dryRun_); + } + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + + return val; +} +bool UpdateGlobalEipRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dry_run"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dry_run")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDryRun(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + UpdateGlobalEipRequestBody_global_eip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + return ok; +} + + +bool UpdateGlobalEipRequestBody::isDryRun() const +{ + return dryRun_; +} + +void UpdateGlobalEipRequestBody::setDryRun(bool value) +{ + dryRun_ = value; + dryRunIsSet_ = true; +} + +bool UpdateGlobalEipRequestBody::dryRunIsSet() const +{ + return dryRunIsSet_; +} + +void UpdateGlobalEipRequestBody::unsetdryRun() +{ + dryRunIsSet_ = false; +} + +UpdateGlobalEipRequestBody_global_eip UpdateGlobalEipRequestBody::getGlobalEip() const +{ + return globalEip_; +} + +void UpdateGlobalEipRequestBody::setGlobalEip(const UpdateGlobalEipRequestBody_global_eip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool UpdateGlobalEipRequestBody::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void UpdateGlobalEipRequestBody::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipRequestBody_global_eip.cpp b/geip/src/v3/model/UpdateGlobalEipRequestBody_global_eip.cpp new file mode 100644 index 000000000..9e73a9652 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipRequestBody_global_eip.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipRequestBody_global_eip.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipRequestBody_global_eip::UpdateGlobalEipRequestBody_global_eip() +{ + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; +} + +UpdateGlobalEipRequestBody_global_eip::~UpdateGlobalEipRequestBody_global_eip() = default; + +void UpdateGlobalEipRequestBody_global_eip::validate() +{ +} + +web::json::value UpdateGlobalEipRequestBody_global_eip::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + + return val; +} +bool UpdateGlobalEipRequestBody_global_eip::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + return ok; +} + + +std::string UpdateGlobalEipRequestBody_global_eip::getName() const +{ + return name_; +} + +void UpdateGlobalEipRequestBody_global_eip::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool UpdateGlobalEipRequestBody_global_eip::nameIsSet() const +{ + return nameIsSet_; +} + +void UpdateGlobalEipRequestBody_global_eip::unsetname() +{ + nameIsSet_ = false; +} + +std::string UpdateGlobalEipRequestBody_global_eip::getDescription() const +{ + return description_; +} + +void UpdateGlobalEipRequestBody_global_eip::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool UpdateGlobalEipRequestBody_global_eip::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void UpdateGlobalEipRequestBody_global_eip::unsetdescription() +{ + descriptionIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipResponse.cpp b/geip/src/v3/model/UpdateGlobalEipResponse.cpp new file mode 100644 index 000000000..c5d730741 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipResponse::UpdateGlobalEipResponse() +{ + globalEipIsSet_ = false; + jobId_ = ""; + jobIdIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +UpdateGlobalEipResponse::~UpdateGlobalEipResponse() = default; + +void UpdateGlobalEipResponse::validate() +{ +} + +web::json::value UpdateGlobalEipResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipIsSet_) { + val[utility::conversions::to_string_t("global_eip")] = ModelBase::toJson(globalEip_); + } + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool UpdateGlobalEipResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip")); + if(!fieldValue.is_null()) + { + UpdateGlobalEip refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +UpdateGlobalEip UpdateGlobalEipResponse::getGlobalEip() const +{ + return globalEip_; +} + +void UpdateGlobalEipResponse::setGlobalEip(const UpdateGlobalEip& value) +{ + globalEip_ = value; + globalEipIsSet_ = true; +} + +bool UpdateGlobalEipResponse::globalEipIsSet() const +{ + return globalEipIsSet_; +} + +void UpdateGlobalEipResponse::unsetglobalEip() +{ + globalEipIsSet_ = false; +} + +std::string UpdateGlobalEipResponse::getJobId() const +{ + return jobId_; +} + +void UpdateGlobalEipResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool UpdateGlobalEipResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void UpdateGlobalEipResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +std::string UpdateGlobalEipResponse::getXRequestId() const +{ + return xRequestId_; +} + +void UpdateGlobalEipResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool UpdateGlobalEipResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void UpdateGlobalEipResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipSegmentRequest.cpp b/geip/src/v3/model/UpdateGlobalEipSegmentRequest.cpp new file mode 100644 index 000000000..d883ef496 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipSegmentRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipSegmentRequest::UpdateGlobalEipSegmentRequest() +{ + globalEipSegmentId_ = ""; + globalEipSegmentIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateGlobalEipSegmentRequest::~UpdateGlobalEipSegmentRequest() = default; + +void UpdateGlobalEipSegmentRequest::validate() +{ +} + +web::json::value UpdateGlobalEipSegmentRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIdIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment_id")] = ModelBase::toJson(globalEipSegmentId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdateGlobalEipSegmentRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdateGlobalEipSegmentRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateGlobalEipSegmentRequest::getGlobalEipSegmentId() const +{ + return globalEipSegmentId_; +} + +void UpdateGlobalEipSegmentRequest::setGlobalEipSegmentId(const std::string& value) +{ + globalEipSegmentId_ = value; + globalEipSegmentIdIsSet_ = true; +} + +bool UpdateGlobalEipSegmentRequest::globalEipSegmentIdIsSet() const +{ + return globalEipSegmentIdIsSet_; +} + +void UpdateGlobalEipSegmentRequest::unsetglobalEipSegmentId() +{ + globalEipSegmentIdIsSet_ = false; +} + +UpdateGlobalEipSegmentRequestBody UpdateGlobalEipSegmentRequest::getBody() const +{ + return body_; +} + +void UpdateGlobalEipSegmentRequest::setBody(const UpdateGlobalEipSegmentRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateGlobalEipSegmentRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateGlobalEipSegmentRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipSegmentRequestBody.cpp b/geip/src/v3/model/UpdateGlobalEipSegmentRequestBody.cpp new file mode 100644 index 000000000..22e9244d3 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipSegmentRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipSegmentRequestBody::UpdateGlobalEipSegmentRequestBody() +{ + globalEipSegmentIsSet_ = false; +} + +UpdateGlobalEipSegmentRequestBody::~UpdateGlobalEipSegmentRequestBody() = default; + +void UpdateGlobalEipSegmentRequestBody::validate() +{ +} + +web::json::value UpdateGlobalEipSegmentRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + + return val; +} +bool UpdateGlobalEipSegmentRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + UpdateGlobalEipSegmentRequestBody_global_eip_segment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + return ok; +} + + +UpdateGlobalEipSegmentRequestBody_global_eip_segment UpdateGlobalEipSegmentRequestBody::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void UpdateGlobalEipSegmentRequestBody::setGlobalEipSegment(const UpdateGlobalEipSegmentRequestBody_global_eip_segment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool UpdateGlobalEipSegmentRequestBody::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void UpdateGlobalEipSegmentRequestBody::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipSegmentRequestBody_global_eip_segment.cpp b/geip/src/v3/model/UpdateGlobalEipSegmentRequestBody_global_eip_segment.cpp new file mode 100644 index 000000000..377bc2a85 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipSegmentRequestBody_global_eip_segment.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipSegmentRequestBody_global_eip_segment.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipSegmentRequestBody_global_eip_segment::UpdateGlobalEipSegmentRequestBody_global_eip_segment() +{ + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; +} + +UpdateGlobalEipSegmentRequestBody_global_eip_segment::~UpdateGlobalEipSegmentRequestBody_global_eip_segment() = default; + +void UpdateGlobalEipSegmentRequestBody_global_eip_segment::validate() +{ +} + +web::json::value UpdateGlobalEipSegmentRequestBody_global_eip_segment::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + + return val; +} +bool UpdateGlobalEipSegmentRequestBody_global_eip_segment::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + return ok; +} + + +std::string UpdateGlobalEipSegmentRequestBody_global_eip_segment::getName() const +{ + return name_; +} + +void UpdateGlobalEipSegmentRequestBody_global_eip_segment::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool UpdateGlobalEipSegmentRequestBody_global_eip_segment::nameIsSet() const +{ + return nameIsSet_; +} + +void UpdateGlobalEipSegmentRequestBody_global_eip_segment::unsetname() +{ + nameIsSet_ = false; +} + +std::string UpdateGlobalEipSegmentRequestBody_global_eip_segment::getDescription() const +{ + return description_; +} + +void UpdateGlobalEipSegmentRequestBody_global_eip_segment::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool UpdateGlobalEipSegmentRequestBody_global_eip_segment::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void UpdateGlobalEipSegmentRequestBody_global_eip_segment::unsetdescription() +{ + descriptionIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateGlobalEipSegmentResponse.cpp b/geip/src/v3/model/UpdateGlobalEipSegmentResponse.cpp new file mode 100644 index 000000000..fb71402c1 --- /dev/null +++ b/geip/src/v3/model/UpdateGlobalEipSegmentResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/UpdateGlobalEipSegmentResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateGlobalEipSegmentResponse::UpdateGlobalEipSegmentResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; + globalEipSegmentIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +UpdateGlobalEipSegmentResponse::~UpdateGlobalEipSegmentResponse() = default; + +void UpdateGlobalEipSegmentResponse::validate() +{ +} + +web::json::value UpdateGlobalEipSegmentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(globalEipSegmentIsSet_) { + val[utility::conversions::to_string_t("global_eip_segment")] = ModelBase::toJson(globalEipSegment_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool UpdateGlobalEipSegmentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("global_eip_segment"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("global_eip_segment")); + if(!fieldValue.is_null()) + { + ShortGlobalEipSegment refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGlobalEipSegment(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string UpdateGlobalEipSegmentResponse::getJobId() const +{ + return jobId_; +} + +void UpdateGlobalEipSegmentResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool UpdateGlobalEipSegmentResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void UpdateGlobalEipSegmentResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +ShortGlobalEipSegment UpdateGlobalEipSegmentResponse::getGlobalEipSegment() const +{ + return globalEipSegment_; +} + +void UpdateGlobalEipSegmentResponse::setGlobalEipSegment(const ShortGlobalEipSegment& value) +{ + globalEipSegment_ = value; + globalEipSegmentIsSet_ = true; +} + +bool UpdateGlobalEipSegmentResponse::globalEipSegmentIsSet() const +{ + return globalEipSegmentIsSet_; +} + +void UpdateGlobalEipSegmentResponse::unsetglobalEipSegment() +{ + globalEipSegmentIsSet_ = false; +} + +std::string UpdateGlobalEipSegmentResponse::getXRequestId() const +{ + return xRequestId_; +} + +void UpdateGlobalEipSegmentResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool UpdateGlobalEipSegmentResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void UpdateGlobalEipSegmentResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateInternetBandwidth.cpp b/geip/src/v3/model/UpdateInternetBandwidth.cpp new file mode 100644 index 000000000..6025a76e1 --- /dev/null +++ b/geip/src/v3/model/UpdateInternetBandwidth.cpp @@ -0,0 +1,707 @@ + + +#include "huaweicloud/geip/v3/model/UpdateInternetBandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateInternetBandwidth::UpdateInternetBandwidth() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + isp_ = ""; + ispIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; + accessSite_ = ""; + accessSiteIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + ratio95peak_ = 0; + ratio95peakIsSet_ = false; + freezenInfo_ = ""; + freezenInfoIsSet_ = false; + billingInfo_ = ""; + billingInfoIsSet_ = false; + domainId_ = ""; + domainIdIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = utility::datetime(); + createdAtIsSet_ = false; + updatedAt_ = utility::datetime(); + updatedAtIsSet_ = false; + isPrePaid_ = false; + isPrePaidIsSet_ = false; + tagsIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + lockInfosIsSet_ = false; +} + +UpdateInternetBandwidth::~UpdateInternetBandwidth() = default; + +void UpdateInternetBandwidth::validate() +{ +} + +web::json::value UpdateInternetBandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(ispIsSet_) { + val[utility::conversions::to_string_t("isp")] = ModelBase::toJson(isp_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + if(accessSiteIsSet_) { + val[utility::conversions::to_string_t("access_site")] = ModelBase::toJson(accessSite_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(ratio95peakIsSet_) { + val[utility::conversions::to_string_t("ratio_95peak")] = ModelBase::toJson(ratio95peak_); + } + if(freezenInfoIsSet_) { + val[utility::conversions::to_string_t("freezen_info")] = ModelBase::toJson(freezenInfo_); + } + if(billingInfoIsSet_) { + val[utility::conversions::to_string_t("billing_info")] = ModelBase::toJson(billingInfo_); + } + if(domainIdIsSet_) { + val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + if(isPrePaidIsSet_) { + val[utility::conversions::to_string_t("is_pre_paid")] = ModelBase::toJson(isPrePaid_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(lockInfosIsSet_) { + val[utility::conversions::to_string_t("lock_infos")] = ModelBase::toJson(lockInfos_); + } + + return val; +} +bool UpdateInternetBandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("isp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("isp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_site"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_site")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessSite(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ratio_95peak"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ratio_95peak")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRatio95peak(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("freezen_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("freezen_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFreezenInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("billing_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("billing_info")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBillingInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_pre_paid"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_pre_paid")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsPrePaid(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lock_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lock_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLockInfos(refVal); + } + } + return ok; +} + + +std::string UpdateInternetBandwidth::getId() const +{ + return id_; +} + +void UpdateInternetBandwidth::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool UpdateInternetBandwidth::idIsSet() const +{ + return idIsSet_; +} + +void UpdateInternetBandwidth::unsetid() +{ + idIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getName() const +{ + return name_; +} + +void UpdateInternetBandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool UpdateInternetBandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void UpdateInternetBandwidth::unsetname() +{ + nameIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getIsp() const +{ + return isp_; +} + +void UpdateInternetBandwidth::setIsp(const std::string& value) +{ + isp_ = value; + ispIsSet_ = true; +} + +bool UpdateInternetBandwidth::ispIsSet() const +{ + return ispIsSet_; +} + +void UpdateInternetBandwidth::unsetisp() +{ + ispIsSet_ = false; +} + +int32_t UpdateInternetBandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void UpdateInternetBandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool UpdateInternetBandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void UpdateInternetBandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getAccessSite() const +{ + return accessSite_; +} + +void UpdateInternetBandwidth::setAccessSite(const std::string& value) +{ + accessSite_ = value; + accessSiteIsSet_ = true; +} + +bool UpdateInternetBandwidth::accessSiteIsSet() const +{ + return accessSiteIsSet_; +} + +void UpdateInternetBandwidth::unsetaccessSite() +{ + accessSiteIsSet_ = false; +} + +int32_t UpdateInternetBandwidth::getSize() const +{ + return size_; +} + +void UpdateInternetBandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool UpdateInternetBandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void UpdateInternetBandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getDescription() const +{ + return description_; +} + +void UpdateInternetBandwidth::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool UpdateInternetBandwidth::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void UpdateInternetBandwidth::unsetdescription() +{ + descriptionIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void UpdateInternetBandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool UpdateInternetBandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void UpdateInternetBandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t UpdateInternetBandwidth::getRatio95peak() const +{ + return ratio95peak_; +} + +void UpdateInternetBandwidth::setRatio95peak(int32_t value) +{ + ratio95peak_ = value; + ratio95peakIsSet_ = true; +} + +bool UpdateInternetBandwidth::ratio95peakIsSet() const +{ + return ratio95peakIsSet_; +} + +void UpdateInternetBandwidth::unsetratio95peak() +{ + ratio95peakIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getFreezenInfo() const +{ + return freezenInfo_; +} + +void UpdateInternetBandwidth::setFreezenInfo(const std::string& value) +{ + freezenInfo_ = value; + freezenInfoIsSet_ = true; +} + +bool UpdateInternetBandwidth::freezenInfoIsSet() const +{ + return freezenInfoIsSet_; +} + +void UpdateInternetBandwidth::unsetfreezenInfo() +{ + freezenInfoIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getBillingInfo() const +{ + return billingInfo_; +} + +void UpdateInternetBandwidth::setBillingInfo(const std::string& value) +{ + billingInfo_ = value; + billingInfoIsSet_ = true; +} + +bool UpdateInternetBandwidth::billingInfoIsSet() const +{ + return billingInfoIsSet_; +} + +void UpdateInternetBandwidth::unsetbillingInfo() +{ + billingInfoIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getDomainId() const +{ + return domainId_; +} + +void UpdateInternetBandwidth::setDomainId(const std::string& value) +{ + domainId_ = value; + domainIdIsSet_ = true; +} + +bool UpdateInternetBandwidth::domainIdIsSet() const +{ + return domainIdIsSet_; +} + +void UpdateInternetBandwidth::unsetdomainId() +{ + domainIdIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getStatus() const +{ + return status_; +} + +void UpdateInternetBandwidth::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool UpdateInternetBandwidth::statusIsSet() const +{ + return statusIsSet_; +} + +void UpdateInternetBandwidth::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime UpdateInternetBandwidth::getCreatedAt() const +{ + return createdAt_; +} + +void UpdateInternetBandwidth::setCreatedAt(const utility::datetime& value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool UpdateInternetBandwidth::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void UpdateInternetBandwidth::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +utility::datetime UpdateInternetBandwidth::getUpdatedAt() const +{ + return updatedAt_; +} + +void UpdateInternetBandwidth::setUpdatedAt(const utility::datetime& value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool UpdateInternetBandwidth::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void UpdateInternetBandwidth::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +bool UpdateInternetBandwidth::isIsPrePaid() const +{ + return isPrePaid_; +} + +void UpdateInternetBandwidth::setIsPrePaid(bool value) +{ + isPrePaid_ = value; + isPrePaidIsSet_ = true; +} + +bool UpdateInternetBandwidth::isPrePaidIsSet() const +{ + return isPrePaidIsSet_; +} + +void UpdateInternetBandwidth::unsetisPrePaid() +{ + isPrePaidIsSet_ = false; +} + +std::vector& UpdateInternetBandwidth::getTags() +{ + return tags_; +} + +void UpdateInternetBandwidth::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool UpdateInternetBandwidth::tagsIsSet() const +{ + return tagsIsSet_; +} + +void UpdateInternetBandwidth::unsettags() +{ + tagsIsSet_ = false; +} + +std::string UpdateInternetBandwidth::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void UpdateInternetBandwidth::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool UpdateInternetBandwidth::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void UpdateInternetBandwidth::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::vector& UpdateInternetBandwidth::getLockInfos() +{ + return lockInfos_; +} + +void UpdateInternetBandwidth::setLockInfos(const std::vector& value) +{ + lockInfos_ = value; + lockInfosIsSet_ = true; +} + +bool UpdateInternetBandwidth::lockInfosIsSet() const +{ + return lockInfosIsSet_; +} + +void UpdateInternetBandwidth::unsetlockInfos() +{ + lockInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateInternetBandwidthRequest.cpp b/geip/src/v3/model/UpdateInternetBandwidthRequest.cpp new file mode 100644 index 000000000..6162a2a8d --- /dev/null +++ b/geip/src/v3/model/UpdateInternetBandwidthRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/geip/v3/model/UpdateInternetBandwidthRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateInternetBandwidthRequest::UpdateInternetBandwidthRequest() +{ + internetBandwidthId_ = ""; + internetBandwidthIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateInternetBandwidthRequest::~UpdateInternetBandwidthRequest() = default; + +void UpdateInternetBandwidthRequest::validate() +{ +} + +web::json::value UpdateInternetBandwidthRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(internetBandwidthIdIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth_id")] = ModelBase::toJson(internetBandwidthId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdateInternetBandwidthRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidthId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdateInternetBandwidthRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateInternetBandwidthRequest::getInternetBandwidthId() const +{ + return internetBandwidthId_; +} + +void UpdateInternetBandwidthRequest::setInternetBandwidthId(const std::string& value) +{ + internetBandwidthId_ = value; + internetBandwidthIdIsSet_ = true; +} + +bool UpdateInternetBandwidthRequest::internetBandwidthIdIsSet() const +{ + return internetBandwidthIdIsSet_; +} + +void UpdateInternetBandwidthRequest::unsetinternetBandwidthId() +{ + internetBandwidthIdIsSet_ = false; +} + +UpdateInternetBandwidthRequestBody UpdateInternetBandwidthRequest::getBody() const +{ + return body_; +} + +void UpdateInternetBandwidthRequest::setBody(const UpdateInternetBandwidthRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateInternetBandwidthRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateInternetBandwidthRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateInternetBandwidthRequestBody.cpp b/geip/src/v3/model/UpdateInternetBandwidthRequestBody.cpp new file mode 100644 index 000000000..487c35a23 --- /dev/null +++ b/geip/src/v3/model/UpdateInternetBandwidthRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateInternetBandwidthRequestBody::UpdateInternetBandwidthRequestBody() +{ + internetBandwidthIsSet_ = false; +} + +UpdateInternetBandwidthRequestBody::~UpdateInternetBandwidthRequestBody() = default; + +void UpdateInternetBandwidthRequestBody::validate() +{ +} + +web::json::value UpdateInternetBandwidthRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + + return val; +} +bool UpdateInternetBandwidthRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + UpdateInternetBandwidthRequestBody_internet_bandwidth refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + return ok; +} + + +UpdateInternetBandwidthRequestBody_internet_bandwidth UpdateInternetBandwidthRequestBody::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void UpdateInternetBandwidthRequestBody::setInternetBandwidth(const UpdateInternetBandwidthRequestBody_internet_bandwidth& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool UpdateInternetBandwidthRequestBody::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void UpdateInternetBandwidthRequestBody::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateInternetBandwidthRequestBody_internet_bandwidth.cpp b/geip/src/v3/model/UpdateInternetBandwidthRequestBody_internet_bandwidth.cpp new file mode 100644 index 000000000..3a927a24c --- /dev/null +++ b/geip/src/v3/model/UpdateInternetBandwidthRequestBody_internet_bandwidth.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/geip/v3/model/UpdateInternetBandwidthRequestBody_internet_bandwidth.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateInternetBandwidthRequestBody_internet_bandwidth::UpdateInternetBandwidthRequestBody_internet_bandwidth() +{ + name_ = ""; + nameIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; + size_ = 0; + sizeIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; + ingressSize_ = 0; + ingressSizeIsSet_ = false; +} + +UpdateInternetBandwidthRequestBody_internet_bandwidth::~UpdateInternetBandwidthRequestBody_internet_bandwidth() = default; + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::validate() +{ +} + +web::json::value UpdateInternetBandwidthRequestBody_internet_bandwidth::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + if(ingressSizeIsSet_) { + val[utility::conversions::to_string_t("ingress_size")] = ModelBase::toJson(ingressSize_); + } + + return val; +} +bool UpdateInternetBandwidthRequestBody_internet_bandwidth::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ingress_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ingress_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIngressSize(refVal); + } + } + return ok; +} + + +std::string UpdateInternetBandwidthRequestBody_internet_bandwidth::getName() const +{ + return name_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool UpdateInternetBandwidthRequestBody_internet_bandwidth::nameIsSet() const +{ + return nameIsSet_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::unsetname() +{ + nameIsSet_ = false; +} + +std::string UpdateInternetBandwidthRequestBody_internet_bandwidth::getDescription() const +{ + return description_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool UpdateInternetBandwidthRequestBody_internet_bandwidth::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::unsetdescription() +{ + descriptionIsSet_ = false; +} + +int32_t UpdateInternetBandwidthRequestBody_internet_bandwidth::getSize() const +{ + return size_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::setSize(int32_t value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool UpdateInternetBandwidthRequestBody_internet_bandwidth::sizeIsSet() const +{ + return sizeIsSet_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string UpdateInternetBandwidthRequestBody_internet_bandwidth::getChargeMode() const +{ + return chargeMode_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool UpdateInternetBandwidthRequestBody_internet_bandwidth::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +int32_t UpdateInternetBandwidthRequestBody_internet_bandwidth::getIngressSize() const +{ + return ingressSize_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::setIngressSize(int32_t value) +{ + ingressSize_ = value; + ingressSizeIsSet_ = true; +} + +bool UpdateInternetBandwidthRequestBody_internet_bandwidth::ingressSizeIsSet() const +{ + return ingressSizeIsSet_; +} + +void UpdateInternetBandwidthRequestBody_internet_bandwidth::unsetingressSize() +{ + ingressSizeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/geip/src/v3/model/UpdateInternetBandwidthResponse.cpp b/geip/src/v3/model/UpdateInternetBandwidthResponse.cpp new file mode 100644 index 000000000..7101a99cd --- /dev/null +++ b/geip/src/v3/model/UpdateInternetBandwidthResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/geip/v3/model/UpdateInternetBandwidthResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Geip { +namespace V3 { +namespace Model { + + + + +UpdateInternetBandwidthResponse::UpdateInternetBandwidthResponse() +{ + requestId_ = ""; + requestIdIsSet_ = false; + internetBandwidthIsSet_ = false; + xRequestId_ = ""; + xRequestIdIsSet_ = false; +} + +UpdateInternetBandwidthResponse::~UpdateInternetBandwidthResponse() = default; + +void UpdateInternetBandwidthResponse::validate() +{ +} + +web::json::value UpdateInternetBandwidthResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(requestIdIsSet_) { + val[utility::conversions::to_string_t("request_id")] = ModelBase::toJson(requestId_); + } + if(internetBandwidthIsSet_) { + val[utility::conversions::to_string_t("internet_bandwidth")] = ModelBase::toJson(internetBandwidth_); + } + if(xRequestIdIsSet_) { + val[utility::conversions::to_string_t("X-Request-Id")] = ModelBase::toJson(xRequestId_); + } + + return val; +} +bool UpdateInternetBandwidthResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("request_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("internet_bandwidth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("internet_bandwidth")); + if(!fieldValue.is_null()) + { + UpdateInternetBandwidth refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInternetBandwidth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Request-Id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Request-Id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXRequestId(refVal); + } + } + return ok; +} + + +std::string UpdateInternetBandwidthResponse::getRequestId() const +{ + return requestId_; +} + +void UpdateInternetBandwidthResponse::setRequestId(const std::string& value) +{ + requestId_ = value; + requestIdIsSet_ = true; +} + +bool UpdateInternetBandwidthResponse::requestIdIsSet() const +{ + return requestIdIsSet_; +} + +void UpdateInternetBandwidthResponse::unsetrequestId() +{ + requestIdIsSet_ = false; +} + +UpdateInternetBandwidth UpdateInternetBandwidthResponse::getInternetBandwidth() const +{ + return internetBandwidth_; +} + +void UpdateInternetBandwidthResponse::setInternetBandwidth(const UpdateInternetBandwidth& value) +{ + internetBandwidth_ = value; + internetBandwidthIsSet_ = true; +} + +bool UpdateInternetBandwidthResponse::internetBandwidthIsSet() const +{ + return internetBandwidthIsSet_; +} + +void UpdateInternetBandwidthResponse::unsetinternetBandwidth() +{ + internetBandwidthIsSet_ = false; +} + +std::string UpdateInternetBandwidthResponse::getXRequestId() const +{ + return xRequestId_; +} + +void UpdateInternetBandwidthResponse::setXRequestId(const std::string& value) +{ + xRequestId_ = value; + xRequestIdIsSet_ = true; +} + +bool UpdateInternetBandwidthResponse::xRequestIdIsSet() const +{ + return xRequestIdIsSet_; +} + +void UpdateInternetBandwidthResponse::unsetxRequestId() +{ + xRequestIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/include/huaweicloud/rds/v3/RdsClient.h b/rds/include/huaweicloud/rds/v3/RdsClient.h index f39254c3d..f7d43edfd 100644 --- a/rds/include/huaweicloud/rds/v3/RdsClient.h +++ b/rds/include/huaweicloud/rds/v3/RdsClient.h @@ -205,8 +205,6 @@ #include #include #include -#include -#include #include #include #include @@ -231,6 +229,8 @@ #include #include #include +#include +#include #include #include #include @@ -416,6 +416,7 @@ #include #include #include +#include #include #include #include @@ -425,7 +426,13 @@ #include #include #include +#include +#include +#include +#include #include +#include +#include #include #include #include @@ -462,6 +469,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -470,6 +480,8 @@ #include #include #include +#include +#include #include #include #include @@ -1154,14 +1166,6 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsClient : public Client std::shared_ptr modifyRdSforMySqlProxyRouteMode( ModifyRdSforMySqlProxyRouteModeRequest &request ); - // 重启数据库代理 - // - // 重启数据库代理。 - // - // Please refer to HUAWEI cloud API Explorer for details. - std::shared_ptr restartRdSforMysqlProxy( - RestartRdSforMysqlProxyRequest &request - ); // 恢复到已有实例 // // 恢复到已有实例。 @@ -1228,6 +1232,14 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsClient : public Client std::shared_ptr setBinlogClearPolicy( SetBinlogClearPolicyRequest &request ); + // 重启数据库代理 + // + // 重启数据库代理。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr setInstancesProxyRestart( + SetInstancesProxyRestartRequest &request + ); // // // 关联LTS配置信息 @@ -1867,6 +1879,30 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsClient : public Client std::shared_ptr deletePostgresqlExtension( DeletePostgresqlExtensionRequest &request ); + // 授予用户角色 + // + // 授予用户角色 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr executePrivilegeDatabaseUserRole( + ExecutePrivilegeDatabaseUserRoleRequest &request + ); + // 撤回用户角色 + // + // 撤回用户角色 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr executeRevokeDatabaseUserRole( + ExecuteRevokeDatabaseUserRoleRequest &request + ); + // 查询数据库角色信息 + // + // 查询数据库角色信息 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listDatabaseUserRole( + ListDatabaseUserRoleRequest &request + ); // 查询数据库SCHEMA列表 // // 查询指定实例的数据库SCHEMA列表。 @@ -1975,6 +2011,14 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsClient : public Client std::shared_ptr stopDatabaseProxy( StopDatabaseProxyRequest &request ); + // 修改数据库owner + // + // 修改数据库owner + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateDatabaseOwner( + UpdateDatabaseOwnerRequest &request + ); // // // 数据库帐号授权。 @@ -1999,6 +2043,14 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsClient : public Client std::shared_ptr updatePostgresqlDbUserComment( UpdatePostgresqlDbUserCommentRequest &request ); + // 更新插件 + // + // 在指定数据库上更新插件。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updatePostgresqlExtension( + UpdatePostgresqlExtensionRequest &request + ); // 修改实例指定参数的值 // // 修改实例指定参数的值。 diff --git a/rds/include/huaweicloud/rds/v3/RdsMeta.h b/rds/include/huaweicloud/rds/v3/RdsMeta.h index f93979d82..ed81f57bc 100644 --- a/rds/include/huaweicloud/rds/v3/RdsMeta.h +++ b/rds/include/huaweicloud/rds/v3/RdsMeta.h @@ -89,7 +89,6 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsMeta { static HttpRequestDef genRequestDefForMigrateFollower(); static HttpRequestDef genRequestDefForModifyPostgresqlHbaConf(); static HttpRequestDef genRequestDefForModifyRdSforMySqlProxyRouteMode(); - static HttpRequestDef genRequestDefForRestartRdSforMysqlProxy(); static HttpRequestDef genRequestDefForRestoreExistInstance(); static HttpRequestDef genRequestDefForRestoreTables(); static HttpRequestDef genRequestDefForRestoreTablesNew(); @@ -98,6 +97,7 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsMeta { static HttpRequestDef genRequestDefForSetAutoEnlargePolicy(); static HttpRequestDef genRequestDefForSetBackupPolicy(); static HttpRequestDef genRequestDefForSetBinlogClearPolicy(); + static HttpRequestDef genRequestDefForSetInstancesProxyRestart(); static HttpRequestDef genRequestDefForSetLogLtsConfigs(); static HttpRequestDef genRequestDefForSetOffSiteBackupPolicy(); static HttpRequestDef genRequestDefForSetSecondLevelMonitor(); @@ -177,6 +177,9 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsMeta { static HttpRequestDef genRequestDefForDeletePostgresqlDatabase(); static HttpRequestDef genRequestDefForDeletePostgresqlDbUser(); static HttpRequestDef genRequestDefForDeletePostgresqlExtension(); + static HttpRequestDef genRequestDefForExecutePrivilegeDatabaseUserRole(); + static HttpRequestDef genRequestDefForExecuteRevokeDatabaseUserRole(); + static HttpRequestDef genRequestDefForListDatabaseUserRole(); static HttpRequestDef genRequestDefForListPostgresqlDatabaseSchemas(); static HttpRequestDef genRequestDefForListPostgresqlDatabases(); static HttpRequestDef genRequestDefForListPostgresqlDbUserPaginated(); @@ -190,9 +193,11 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsMeta { static HttpRequestDef genRequestDefForShowPostgresqlParamValue(); static HttpRequestDef genRequestDefForStartDatabaseProxy(); static HttpRequestDef genRequestDefForStopDatabaseProxy(); + static HttpRequestDef genRequestDefForUpdateDatabaseOwner(); static HttpRequestDef genRequestDefForUpdateDbUserPrivilege(); static HttpRequestDef genRequestDefForUpdatePostgresqlDatabase(); static HttpRequestDef genRequestDefForUpdatePostgresqlDbUserComment(); + static HttpRequestDef genRequestDefForUpdatePostgresqlExtension(); static HttpRequestDef genRequestDefForUpdatePostgresqlParameterValue(); static HttpRequestDef genRequestDefForUpdateReadWeight(); static HttpRequestDef genRequestDefForAllowSqlserverDbUserPrivilege(); diff --git a/rds/include/huaweicloud/rds/v3/model/DatabaseUserRoleRequest.h b/rds/include/huaweicloud/rds/v3/model/DatabaseUserRoleRequest.h new file mode 100644 index 000000000..32189494f --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/DatabaseUserRoleRequest.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_DatabaseUserRoleRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_DatabaseUserRoleRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_RDS_V3_EXPORT DatabaseUserRoleRequest + : public ModelBase +{ +public: + DatabaseUserRoleRequest(); + virtual ~DatabaseUserRoleRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DatabaseUserRoleRequest members + + /// + /// 用户名称 + /// + + std::string getUser() const; + bool userIsSet() const; + void unsetuser(); + void setUser(const std::string& value); + + /// + /// 角色名称 + /// + + std::vector& getRoles(); + bool rolesIsSet() const; + void unsetroles(); + void setRoles(const std::vector& value); + + +protected: + std::string user_; + bool userIsSet_; + std::vector roles_; + bool rolesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_DatabaseUserRoleRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleRequest.h b/rds/include/huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleRequest.h new file mode 100644 index 000000000..abbd585e5 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecutePrivilegeDatabaseUserRoleRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecutePrivilegeDatabaseUserRoleRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ExecutePrivilegeDatabaseUserRoleRequest + : public ModelBase +{ +public: + ExecutePrivilegeDatabaseUserRoleRequest(); + virtual ~ExecutePrivilegeDatabaseUserRoleRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ExecutePrivilegeDatabaseUserRoleRequest members + + /// + /// 实例ID + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + DatabaseUserRoleRequest getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const DatabaseUserRoleRequest& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + DatabaseUserRoleRequest body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ExecutePrivilegeDatabaseUserRoleRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecutePrivilegeDatabaseUserRoleRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleResponse.h b/rds/include/huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleResponse.h new file mode 100644 index 000000000..eb1c2056e --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecutePrivilegeDatabaseUserRoleResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecutePrivilegeDatabaseUserRoleResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ExecutePrivilegeDatabaseUserRoleResponse + : public ModelBase, public HttpResponse +{ +public: + ExecutePrivilegeDatabaseUserRoleResponse(); + virtual ~ExecutePrivilegeDatabaseUserRoleResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ExecutePrivilegeDatabaseUserRoleResponse members + + /// + /// 调用正常时,返回“successful”。 + /// + + std::string getResp() const; + bool respIsSet() const; + void unsetresp(); + void setResp(const std::string& value); + + +protected: + std::string resp_; + bool respIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecutePrivilegeDatabaseUserRoleResponse_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleRequest.h b/rds/include/huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleRequest.h new file mode 100644 index 000000000..3d91b0b22 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecuteRevokeDatabaseUserRoleRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecuteRevokeDatabaseUserRoleRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ExecuteRevokeDatabaseUserRoleRequest + : public ModelBase +{ +public: + ExecuteRevokeDatabaseUserRoleRequest(); + virtual ~ExecuteRevokeDatabaseUserRoleRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ExecuteRevokeDatabaseUserRoleRequest members + + /// + /// 实例ID + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + DatabaseUserRoleRequest getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const DatabaseUserRoleRequest& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + DatabaseUserRoleRequest body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ExecuteRevokeDatabaseUserRoleRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecuteRevokeDatabaseUserRoleRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleResponse.h b/rds/include/huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleResponse.h new file mode 100644 index 000000000..b4b034bc5 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecuteRevokeDatabaseUserRoleResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecuteRevokeDatabaseUserRoleResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ExecuteRevokeDatabaseUserRoleResponse + : public ModelBase, public HttpResponse +{ +public: + ExecuteRevokeDatabaseUserRoleResponse(); + virtual ~ExecuteRevokeDatabaseUserRoleResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ExecuteRevokeDatabaseUserRoleResponse members + + /// + /// 调用正常时,返回“successful”。 + /// + + std::string getResp() const; + bool respIsSet() const; + void unsetresp(); + void setResp(const std::string& value); + + +protected: + std::string resp_; + bool respIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ExecuteRevokeDatabaseUserRoleResponse_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/ExtensionsResponse.h b/rds/include/huaweicloud/rds/v3/model/ExtensionsResponse.h index d203418b2..ff43fed18 100644 --- a/rds/include/huaweicloud/rds/v3/model/ExtensionsResponse.h +++ b/rds/include/huaweicloud/rds/v3/model/ExtensionsResponse.h @@ -65,6 +65,15 @@ class HUAWEICLOUD_RDS_V3_EXPORT ExtensionsResponse void unsetversion(); void setVersion(const std::string& value); + /// + /// 可更新插件版本 + /// + + std::string getVersionUpdate() const; + bool versionUpdateIsSet() const; + void unsetversionUpdate(); + void setVersionUpdate(const std::string& value); + /// /// 依赖预加载库。 /// @@ -100,6 +109,8 @@ class HUAWEICLOUD_RDS_V3_EXPORT ExtensionsResponse bool databaseNameIsSet_; std::string version_; bool versionIsSet_; + std::string versionUpdate_; + bool versionUpdateIsSet_; std::string sharedPreloadLibraries_; bool sharedPreloadLibrariesIsSet_; bool created_; diff --git a/rds/include/huaweicloud/rds/v3/model/ListDatabaseUserRoleRequest.h b/rds/include/huaweicloud/rds/v3/model/ListDatabaseUserRoleRequest.h new file mode 100644 index 000000000..4fa92caee --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ListDatabaseUserRoleRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ListDatabaseUserRoleRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ListDatabaseUserRoleRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ListDatabaseUserRoleRequest + : public ModelBase +{ +public: + ListDatabaseUserRoleRequest(); + virtual ~ListDatabaseUserRoleRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListDatabaseUserRoleRequest members + + /// + /// 实例ID + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 用户名,有值时返回该账号可以授权的角色集合 + /// + + std::string getUserName() const; + bool userNameIsSet() const; + void unsetuserName(); + void setUserName(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string userName_; + bool userNameIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListDatabaseUserRoleRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ListDatabaseUserRoleRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/ListDatabaseUserRoleResponse.h b/rds/include/huaweicloud/rds/v3/model/ListDatabaseUserRoleResponse.h new file mode 100644 index 000000000..f2addc05e --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ListDatabaseUserRoleResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ListDatabaseUserRoleResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ListDatabaseUserRoleResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ListDatabaseUserRoleResponse + : public ModelBase, public HttpResponse +{ +public: + ListDatabaseUserRoleResponse(); + virtual ~ListDatabaseUserRoleResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListDatabaseUserRoleResponse members + + /// + /// 角色信息 + /// + + std::vector& getRoles(); + bool rolesIsSet() const; + void unsetroles(); + void setRoles(const std::vector& value); + + +protected: + std::vector roles_; + bool rolesIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ListDatabaseUserRoleResponse_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/RestartRdSforMysqlProxyRequest.h b/rds/include/huaweicloud/rds/v3/model/SetInstancesProxyRestartRequest.h similarity index 75% rename from rds/include/huaweicloud/rds/v3/model/RestartRdSforMysqlProxyRequest.h rename to rds/include/huaweicloud/rds/v3/model/SetInstancesProxyRestartRequest.h index fdd3810eb..4a123d03e 100644 --- a/rds/include/huaweicloud/rds/v3/model/RestartRdSforMysqlProxyRequest.h +++ b/rds/include/huaweicloud/rds/v3/model/SetInstancesProxyRestartRequest.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_RestartRdSforMysqlProxyRequest_H_ -#define HUAWEICLOUD_SDK_RDS_V3_MODEL_RestartRdSforMysqlProxyRequest_H_ +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_SetInstancesProxyRestartRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_SetInstancesProxyRestartRequest_H_ #include @@ -22,12 +22,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// Request Object /// -class HUAWEICLOUD_RDS_V3_EXPORT RestartRdSforMysqlProxyRequest +class HUAWEICLOUD_RDS_V3_EXPORT SetInstancesProxyRestartRequest : public ModelBase { public: - RestartRdSforMysqlProxyRequest(); - virtual ~RestartRdSforMysqlProxyRequest(); + SetInstancesProxyRestartRequest(); + virtual ~SetInstancesProxyRestartRequest(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,7 +36,7 @@ class HUAWEICLOUD_RDS_V3_EXPORT RestartRdSforMysqlProxyRequest web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// RestartRdSforMysqlProxyRequest members + /// SetInstancesProxyRestartRequest members /// /// 实例ID,严格匹配UUID规则。 @@ -77,7 +77,7 @@ class HUAWEICLOUD_RDS_V3_EXPORT RestartRdSforMysqlProxyRequest #ifdef RTTR_FLAG RTTR_ENABLE() public: - RestartRdSforMysqlProxyRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + SetInstancesProxyRestartRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { return *ptr; } #endif @@ -90,4 +90,4 @@ class HUAWEICLOUD_RDS_V3_EXPORT RestartRdSforMysqlProxyRequest } } -#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_RestartRdSforMysqlProxyRequest_H_ +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_SetInstancesProxyRestartRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/RestartRdSforMysqlProxyResponse.h b/rds/include/huaweicloud/rds/v3/model/SetInstancesProxyRestartResponse.h similarity index 71% rename from rds/include/huaweicloud/rds/v3/model/RestartRdSforMysqlProxyResponse.h rename to rds/include/huaweicloud/rds/v3/model/SetInstancesProxyRestartResponse.h index 361da14e1..b547df8bf 100644 --- a/rds/include/huaweicloud/rds/v3/model/RestartRdSforMysqlProxyResponse.h +++ b/rds/include/huaweicloud/rds/v3/model/SetInstancesProxyRestartResponse.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_RestartRdSforMysqlProxyResponse_H_ -#define HUAWEICLOUD_SDK_RDS_V3_MODEL_RestartRdSforMysqlProxyResponse_H_ +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_SetInstancesProxyRestartResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_SetInstancesProxyRestartResponse_H_ #include @@ -22,12 +22,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// Response Object /// -class HUAWEICLOUD_RDS_V3_EXPORT RestartRdSforMysqlProxyResponse +class HUAWEICLOUD_RDS_V3_EXPORT SetInstancesProxyRestartResponse : public ModelBase, public HttpResponse { public: - RestartRdSforMysqlProxyResponse(); - virtual ~RestartRdSforMysqlProxyResponse(); + SetInstancesProxyRestartResponse(); + virtual ~SetInstancesProxyRestartResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,7 +36,7 @@ class HUAWEICLOUD_RDS_V3_EXPORT RestartRdSforMysqlProxyResponse web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// RestartRdSforMysqlProxyResponse members + /// SetInstancesProxyRestartResponse members /// /// 任务ID。 @@ -64,4 +64,4 @@ class HUAWEICLOUD_RDS_V3_EXPORT RestartRdSforMysqlProxyResponse } } -#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_RestartRdSforMysqlProxyResponse_H_ +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_SetInstancesProxyRestartResponse_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequest.h b/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequest.h new file mode 100644 index 000000000..ee9ff3c8c --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT UpdateDatabaseOwnerRequest + : public ModelBase +{ +public: + UpdateDatabaseOwnerRequest(); + virtual ~UpdateDatabaseOwnerRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDatabaseOwnerRequest members + + /// + /// 实例ID + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + UpdateDatabaseOwnerRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateDatabaseOwnerRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + UpdateDatabaseOwnerRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateDatabaseOwnerRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequestBody.h b/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequestBody.h new file mode 100644 index 000000000..21921879a --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequestBody.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerRequestBody_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_RDS_V3_EXPORT UpdateDatabaseOwnerRequestBody + : public ModelBase +{ +public: + UpdateDatabaseOwnerRequestBody(); + virtual ~UpdateDatabaseOwnerRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDatabaseOwnerRequestBody members + + /// + /// 修改后数据库owner + /// + + std::string getOwner() const; + bool ownerIsSet() const; + void unsetowner(); + void setOwner(const std::string& value); + + /// + /// 数据库名称 + /// + + std::string getDatabase() const; + bool databaseIsSet() const; + void unsetdatabase(); + void setDatabase(const std::string& value); + + +protected: + std::string owner_; + bool ownerIsSet_; + std::string database_; + bool databaseIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerRequestBody_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerResponse.h b/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerResponse.h new file mode 100644 index 000000000..49c7394bb --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/UpdateDatabaseOwnerResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT UpdateDatabaseOwnerResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateDatabaseOwnerResponse(); + virtual ~UpdateDatabaseOwnerResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateDatabaseOwnerResponse members + + /// + /// 调用正常时,返回“successful”。 + /// + + std::string getResp() const; + bool respIsSet() const; + void unsetresp(); + void setResp(const std::string& value); + + +protected: + std::string resp_; + bool respIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdateDatabaseOwnerResponse_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/UpdatePostgresqlExtensionRequest.h b/rds/include/huaweicloud/rds/v3/model/UpdatePostgresqlExtensionRequest.h new file mode 100644 index 000000000..a55a5ae93 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/UpdatePostgresqlExtensionRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdatePostgresqlExtensionRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdatePostgresqlExtensionRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT UpdatePostgresqlExtensionRequest + : public ModelBase +{ +public: + UpdatePostgresqlExtensionRequest(); + virtual ~UpdatePostgresqlExtensionRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdatePostgresqlExtensionRequest members + + /// + /// 语言 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + ExtensionRequest getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ExtensionRequest& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + ExtensionRequest body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdatePostgresqlExtensionRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdatePostgresqlExtensionRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/UpdatePostgresqlExtensionResponse.h b/rds/include/huaweicloud/rds/v3/model/UpdatePostgresqlExtensionResponse.h new file mode 100644 index 000000000..22ee1407b --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/UpdatePostgresqlExtensionResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdatePostgresqlExtensionResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdatePostgresqlExtensionResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT UpdatePostgresqlExtensionResponse + : public ModelBase, public HttpResponse +{ +public: + UpdatePostgresqlExtensionResponse(); + virtual ~UpdatePostgresqlExtensionResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdatePostgresqlExtensionResponse members + + /// + /// + /// + + std::string getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const std::string& value); + + +protected: + std::string body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_UpdatePostgresqlExtensionResponse_H_ diff --git a/rds/src/v3/RdsClient.cpp b/rds/src/v3/RdsClient.cpp index 02a5db298..946d97290 100644 --- a/rds/src/v3/RdsClient.cpp +++ b/rds/src/v3/RdsClient.cpp @@ -3212,40 +3212,6 @@ std::shared_ptr RdsClient::modifyRdSfor return localVarResult; } -std::shared_ptr RdsClient::restartRdSforMysqlProxy(RestartRdSforMysqlProxyRequest &request) -{ - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/restart"; - - std::map localVarQueryParams; - std::map localVarHeaderParams; - std::map localVarFormParams; - std::map localVarPathParams; - - localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); - localVarPathParams["proxy_id"] = parameterToString(request.getProxyId()); - - bool isJson = false; - bool isMultiPart = false; - bool isBson = false; - std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); - localVarHeaderParams["Content-Type"] = contentType; - - if (request.xLanguageIsSet()) { - localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); - } - - std::string localVarHttpBody; - - std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForRestartRdSforMysqlProxy()); - - std::shared_ptr localVarResult = std::make_shared(); - localVarResult->setStatusCode(res->getStatusCode()); - localVarResult->setHeaderParams(res->getHeaderParams()); - localVarResult->setHttpBody(res->getHttpBody()); - - return localVarResult; -} std::shared_ptr RdsClient::restoreExistInstance(RestoreExistInstanceRequest &request) { std::string localVarPath = "/v3.1/{project_id}/instances/recovery"; @@ -3604,6 +3570,40 @@ std::shared_ptr RdsClient::setBinlogClearPolicy(Se return localVarResult; } +std::shared_ptr RdsClient::setInstancesProxyRestart(SetInstancesProxyRestartRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/restart"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["proxy_id"] = parameterToString(request.getProxyId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForSetInstancesProxyRestart()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr RdsClient::setLogLtsConfigs(SetLogLtsConfigsRequest &request) { std::string localVarPath = "/v3/{project_id}/{engine}/instances/logs/lts-configs"; @@ -6763,6 +6763,123 @@ std::shared_ptr RdsClient::deletePostgresqlEx return localVarResult; } +std::shared_ptr RdsClient::executePrivilegeDatabaseUserRole(ExecutePrivilegeDatabaseUserRoleRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/db-user-role"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForExecutePrivilegeDatabaseUserRole()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr RdsClient::executeRevokeDatabaseUserRole(ExecuteRevokeDatabaseUserRoleRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/db-user-role"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForExecuteRevokeDatabaseUserRole()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} +std::shared_ptr RdsClient::listDatabaseUserRole(ListDatabaseUserRoleRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/roles"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.userNameIsSet()) { + localVarQueryParams["user_name"] = parameterToString(request.getUserName()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForListDatabaseUserRole()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr RdsClient::listPostgresqlDatabaseSchemas(ListPostgresqlDatabaseSchemasRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/schema/detail"; @@ -7274,6 +7391,48 @@ std::shared_ptr RdsClient::stopDatabaseProxy(StopData return localVarResult; } +std::shared_ptr RdsClient::updateDatabaseOwner(UpdateDatabaseOwnerRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/database/owner"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForUpdateDatabaseOwner()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} std::shared_ptr RdsClient::updateDbUserPrivilege(UpdateDbUserPrivilegeRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/db-user-privilege"; @@ -7404,6 +7563,51 @@ std::shared_ptr RdsClient::updatePostgres return localVarResult; } +std::shared_ptr RdsClient::updatePostgresqlExtension(UpdatePostgresqlExtensionRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/extensions"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForUpdatePostgresqlExtension()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} std::shared_ptr RdsClient::updatePostgresqlParameterValue(UpdatePostgresqlParameterValueRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/parameter/{name}"; diff --git a/rds/src/v3/RdsMeta.cpp b/rds/src/v3/RdsMeta.cpp index 64db74ec6..b208d29db 100644 --- a/rds/src/v3/RdsMeta.cpp +++ b/rds/src/v3/RdsMeta.cpp @@ -1179,16 +1179,6 @@ HttpRequestDef RdsMeta::genRequestDefForModifyRdSforMySqlProxyRouteMode() { return reqDefBuilder; } -HttpRequestDef RdsMeta::genRequestDefForRestartRdSforMysqlProxy() { - HttpRequestDef reqDefBuilder; - FieldDef headerParamXLanguage; - reqDefBuilder.withRequestField(headerParamXLanguage - .withName("XLanguage") - .withJsonTag("X-Language") - .withLocationType(Header_)); - return reqDefBuilder; -} - HttpRequestDef RdsMeta::genRequestDefForRestoreExistInstance() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -1301,6 +1291,16 @@ HttpRequestDef RdsMeta::genRequestDefForSetBinlogClearPolicy() { return reqDefBuilder; } +HttpRequestDef RdsMeta::genRequestDefForSetInstancesProxyRestart() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + HttpRequestDef RdsMeta::genRequestDefForSetLogLtsConfigs() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -2263,6 +2263,32 @@ HttpRequestDef RdsMeta::genRequestDefForDeletePostgresqlExtension() { return reqDefBuilder; } +HttpRequestDef RdsMeta::genRequestDefForExecutePrivilegeDatabaseUserRole() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef RdsMeta::genRequestDefForExecuteRevokeDatabaseUserRole() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef RdsMeta::genRequestDefForListDatabaseUserRole() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("UserName") + .withJsonTag("user_name") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef RdsMeta::genRequestDefForListPostgresqlDatabaseSchemas() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("DbName") @@ -2440,6 +2466,15 @@ HttpRequestDef RdsMeta::genRequestDefForStopDatabaseProxy() { return reqDefBuilder; } +HttpRequestDef RdsMeta::genRequestDefForUpdateDatabaseOwner() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef RdsMeta::genRequestDefForUpdateDbUserPrivilege() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; @@ -2472,6 +2507,20 @@ HttpRequestDef RdsMeta::genRequestDefForUpdatePostgresqlDbUserComment() { return reqDefBuilder; } +HttpRequestDef RdsMeta::genRequestDefForUpdatePostgresqlExtension() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef RdsMeta::genRequestDefForUpdatePostgresqlParameterValue() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; diff --git a/rds/src/v3/model/DatabaseUserRoleRequest.cpp b/rds/src/v3/model/DatabaseUserRoleRequest.cpp new file mode 100644 index 000000000..1b0236b45 --- /dev/null +++ b/rds/src/v3/model/DatabaseUserRoleRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/rds/v3/model/DatabaseUserRoleRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +DatabaseUserRoleRequest::DatabaseUserRoleRequest() +{ + user_ = ""; + userIsSet_ = false; + rolesIsSet_ = false; +} + +DatabaseUserRoleRequest::~DatabaseUserRoleRequest() = default; + +void DatabaseUserRoleRequest::validate() +{ +} + +web::json::value DatabaseUserRoleRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(userIsSet_) { + val[utility::conversions::to_string_t("user")] = ModelBase::toJson(user_); + } + if(rolesIsSet_) { + val[utility::conversions::to_string_t("roles")] = ModelBase::toJson(roles_); + } + + return val; +} +bool DatabaseUserRoleRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("user"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUser(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("roles"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("roles")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRoles(refVal); + } + } + return ok; +} + + +std::string DatabaseUserRoleRequest::getUser() const +{ + return user_; +} + +void DatabaseUserRoleRequest::setUser(const std::string& value) +{ + user_ = value; + userIsSet_ = true; +} + +bool DatabaseUserRoleRequest::userIsSet() const +{ + return userIsSet_; +} + +void DatabaseUserRoleRequest::unsetuser() +{ + userIsSet_ = false; +} + +std::vector& DatabaseUserRoleRequest::getRoles() +{ + return roles_; +} + +void DatabaseUserRoleRequest::setRoles(const std::vector& value) +{ + roles_ = value; + rolesIsSet_ = true; +} + +bool DatabaseUserRoleRequest::rolesIsSet() const +{ + return rolesIsSet_; +} + +void DatabaseUserRoleRequest::unsetroles() +{ + rolesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/ExecutePrivilegeDatabaseUserRoleRequest.cpp b/rds/src/v3/model/ExecutePrivilegeDatabaseUserRoleRequest.cpp new file mode 100644 index 000000000..c928e3a59 --- /dev/null +++ b/rds/src/v3/model/ExecutePrivilegeDatabaseUserRoleRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ExecutePrivilegeDatabaseUserRoleRequest::ExecutePrivilegeDatabaseUserRoleRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +ExecutePrivilegeDatabaseUserRoleRequest::~ExecutePrivilegeDatabaseUserRoleRequest() = default; + +void ExecutePrivilegeDatabaseUserRoleRequest::validate() +{ +} + +web::json::value ExecutePrivilegeDatabaseUserRoleRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ExecutePrivilegeDatabaseUserRoleRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + DatabaseUserRoleRequest refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string ExecutePrivilegeDatabaseUserRoleRequest::getInstanceId() const +{ + return instanceId_; +} + +void ExecutePrivilegeDatabaseUserRoleRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ExecutePrivilegeDatabaseUserRoleRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ExecutePrivilegeDatabaseUserRoleRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +DatabaseUserRoleRequest ExecutePrivilegeDatabaseUserRoleRequest::getBody() const +{ + return body_; +} + +void ExecutePrivilegeDatabaseUserRoleRequest::setBody(const DatabaseUserRoleRequest& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ExecutePrivilegeDatabaseUserRoleRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ExecutePrivilegeDatabaseUserRoleRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/ExecutePrivilegeDatabaseUserRoleResponse.cpp b/rds/src/v3/model/ExecutePrivilegeDatabaseUserRoleResponse.cpp new file mode 100644 index 000000000..0c8856fd1 --- /dev/null +++ b/rds/src/v3/model/ExecutePrivilegeDatabaseUserRoleResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/rds/v3/model/ExecutePrivilegeDatabaseUserRoleResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ExecutePrivilegeDatabaseUserRoleResponse::ExecutePrivilegeDatabaseUserRoleResponse() +{ + resp_ = ""; + respIsSet_ = false; +} + +ExecutePrivilegeDatabaseUserRoleResponse::~ExecutePrivilegeDatabaseUserRoleResponse() = default; + +void ExecutePrivilegeDatabaseUserRoleResponse::validate() +{ +} + +web::json::value ExecutePrivilegeDatabaseUserRoleResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(respIsSet_) { + val[utility::conversions::to_string_t("resp")] = ModelBase::toJson(resp_); + } + + return val; +} +bool ExecutePrivilegeDatabaseUserRoleResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResp(refVal); + } + } + return ok; +} + + +std::string ExecutePrivilegeDatabaseUserRoleResponse::getResp() const +{ + return resp_; +} + +void ExecutePrivilegeDatabaseUserRoleResponse::setResp(const std::string& value) +{ + resp_ = value; + respIsSet_ = true; +} + +bool ExecutePrivilegeDatabaseUserRoleResponse::respIsSet() const +{ + return respIsSet_; +} + +void ExecutePrivilegeDatabaseUserRoleResponse::unsetresp() +{ + respIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/ExecuteRevokeDatabaseUserRoleRequest.cpp b/rds/src/v3/model/ExecuteRevokeDatabaseUserRoleRequest.cpp new file mode 100644 index 000000000..1a4a98726 --- /dev/null +++ b/rds/src/v3/model/ExecuteRevokeDatabaseUserRoleRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ExecuteRevokeDatabaseUserRoleRequest::ExecuteRevokeDatabaseUserRoleRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +ExecuteRevokeDatabaseUserRoleRequest::~ExecuteRevokeDatabaseUserRoleRequest() = default; + +void ExecuteRevokeDatabaseUserRoleRequest::validate() +{ +} + +web::json::value ExecuteRevokeDatabaseUserRoleRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool ExecuteRevokeDatabaseUserRoleRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + DatabaseUserRoleRequest refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string ExecuteRevokeDatabaseUserRoleRequest::getInstanceId() const +{ + return instanceId_; +} + +void ExecuteRevokeDatabaseUserRoleRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ExecuteRevokeDatabaseUserRoleRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ExecuteRevokeDatabaseUserRoleRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +DatabaseUserRoleRequest ExecuteRevokeDatabaseUserRoleRequest::getBody() const +{ + return body_; +} + +void ExecuteRevokeDatabaseUserRoleRequest::setBody(const DatabaseUserRoleRequest& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ExecuteRevokeDatabaseUserRoleRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ExecuteRevokeDatabaseUserRoleRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/ExecuteRevokeDatabaseUserRoleResponse.cpp b/rds/src/v3/model/ExecuteRevokeDatabaseUserRoleResponse.cpp new file mode 100644 index 000000000..912124c95 --- /dev/null +++ b/rds/src/v3/model/ExecuteRevokeDatabaseUserRoleResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/rds/v3/model/ExecuteRevokeDatabaseUserRoleResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ExecuteRevokeDatabaseUserRoleResponse::ExecuteRevokeDatabaseUserRoleResponse() +{ + resp_ = ""; + respIsSet_ = false; +} + +ExecuteRevokeDatabaseUserRoleResponse::~ExecuteRevokeDatabaseUserRoleResponse() = default; + +void ExecuteRevokeDatabaseUserRoleResponse::validate() +{ +} + +web::json::value ExecuteRevokeDatabaseUserRoleResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(respIsSet_) { + val[utility::conversions::to_string_t("resp")] = ModelBase::toJson(resp_); + } + + return val; +} +bool ExecuteRevokeDatabaseUserRoleResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResp(refVal); + } + } + return ok; +} + + +std::string ExecuteRevokeDatabaseUserRoleResponse::getResp() const +{ + return resp_; +} + +void ExecuteRevokeDatabaseUserRoleResponse::setResp(const std::string& value) +{ + resp_ = value; + respIsSet_ = true; +} + +bool ExecuteRevokeDatabaseUserRoleResponse::respIsSet() const +{ + return respIsSet_; +} + +void ExecuteRevokeDatabaseUserRoleResponse::unsetresp() +{ + respIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/ExtensionsResponse.cpp b/rds/src/v3/model/ExtensionsResponse.cpp index f3ce41d21..ea65ed2f5 100644 --- a/rds/src/v3/model/ExtensionsResponse.cpp +++ b/rds/src/v3/model/ExtensionsResponse.cpp @@ -18,6 +18,8 @@ ExtensionsResponse::ExtensionsResponse() databaseNameIsSet_ = false; version_ = ""; versionIsSet_ = false; + versionUpdate_ = ""; + versionUpdateIsSet_ = false; sharedPreloadLibraries_ = ""; sharedPreloadLibrariesIsSet_ = false; created_ = false; @@ -45,6 +47,9 @@ web::json::value ExtensionsResponse::toJson() const if(versionIsSet_) { val[utility::conversions::to_string_t("version")] = ModelBase::toJson(version_); } + if(versionUpdateIsSet_) { + val[utility::conversions::to_string_t("version_update")] = ModelBase::toJson(versionUpdate_); + } if(sharedPreloadLibrariesIsSet_) { val[utility::conversions::to_string_t("shared_preload_libraries")] = ModelBase::toJson(sharedPreloadLibraries_); } @@ -88,6 +93,15 @@ bool ExtensionsResponse::fromJson(const web::json::value& val) setVersion(refVal); } } + if(val.has_field(utility::conversions::to_string_t("version_update"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("version_update")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVersionUpdate(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("shared_preload_libraries"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("shared_preload_libraries")); if(!fieldValue.is_null()) @@ -182,6 +196,27 @@ void ExtensionsResponse::unsetversion() versionIsSet_ = false; } +std::string ExtensionsResponse::getVersionUpdate() const +{ + return versionUpdate_; +} + +void ExtensionsResponse::setVersionUpdate(const std::string& value) +{ + versionUpdate_ = value; + versionUpdateIsSet_ = true; +} + +bool ExtensionsResponse::versionUpdateIsSet() const +{ + return versionUpdateIsSet_; +} + +void ExtensionsResponse::unsetversionUpdate() +{ + versionUpdateIsSet_ = false; +} + std::string ExtensionsResponse::getSharedPreloadLibraries() const { return sharedPreloadLibraries_; diff --git a/rds/src/v3/model/ListDatabaseUserRoleRequest.cpp b/rds/src/v3/model/ListDatabaseUserRoleRequest.cpp new file mode 100644 index 000000000..ef31f7e2f --- /dev/null +++ b/rds/src/v3/model/ListDatabaseUserRoleRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/rds/v3/model/ListDatabaseUserRoleRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ListDatabaseUserRoleRequest::ListDatabaseUserRoleRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + userName_ = ""; + userNameIsSet_ = false; +} + +ListDatabaseUserRoleRequest::~ListDatabaseUserRoleRequest() = default; + +void ListDatabaseUserRoleRequest::validate() +{ +} + +web::json::value ListDatabaseUserRoleRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(userNameIsSet_) { + val[utility::conversions::to_string_t("user_name")] = ModelBase::toJson(userName_); + } + + return val; +} +bool ListDatabaseUserRoleRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserName(refVal); + } + } + return ok; +} + + +std::string ListDatabaseUserRoleRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListDatabaseUserRoleRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListDatabaseUserRoleRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListDatabaseUserRoleRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListDatabaseUserRoleRequest::getUserName() const +{ + return userName_; +} + +void ListDatabaseUserRoleRequest::setUserName(const std::string& value) +{ + userName_ = value; + userNameIsSet_ = true; +} + +bool ListDatabaseUserRoleRequest::userNameIsSet() const +{ + return userNameIsSet_; +} + +void ListDatabaseUserRoleRequest::unsetuserName() +{ + userNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/ListDatabaseUserRoleResponse.cpp b/rds/src/v3/model/ListDatabaseUserRoleResponse.cpp new file mode 100644 index 000000000..ea212cc03 --- /dev/null +++ b/rds/src/v3/model/ListDatabaseUserRoleResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/rds/v3/model/ListDatabaseUserRoleResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ListDatabaseUserRoleResponse::ListDatabaseUserRoleResponse() +{ + rolesIsSet_ = false; +} + +ListDatabaseUserRoleResponse::~ListDatabaseUserRoleResponse() = default; + +void ListDatabaseUserRoleResponse::validate() +{ +} + +web::json::value ListDatabaseUserRoleResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(rolesIsSet_) { + val[utility::conversions::to_string_t("roles")] = ModelBase::toJson(roles_); + } + + return val; +} +bool ListDatabaseUserRoleResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("roles"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("roles")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRoles(refVal); + } + } + return ok; +} + + +std::vector& ListDatabaseUserRoleResponse::getRoles() +{ + return roles_; +} + +void ListDatabaseUserRoleResponse::setRoles(const std::vector& value) +{ + roles_ = value; + rolesIsSet_ = true; +} + +bool ListDatabaseUserRoleResponse::rolesIsSet() const +{ + return rolesIsSet_; +} + +void ListDatabaseUserRoleResponse::unsetroles() +{ + rolesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/RestartRdSforMysqlProxyRequest.cpp b/rds/src/v3/model/SetInstancesProxyRestartRequest.cpp similarity index 66% rename from rds/src/v3/model/RestartRdSforMysqlProxyRequest.cpp rename to rds/src/v3/model/SetInstancesProxyRestartRequest.cpp index 3fbc7161e..60d0e1396 100644 --- a/rds/src/v3/model/RestartRdSforMysqlProxyRequest.cpp +++ b/rds/src/v3/model/SetInstancesProxyRestartRequest.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/rds/v3/model/RestartRdSforMysqlProxyRequest.h" +#include "huaweicloud/rds/v3/model/SetInstancesProxyRestartRequest.h" namespace HuaweiCloud { namespace Sdk { namespace Rds { @@ -10,7 +10,7 @@ namespace Model { -RestartRdSforMysqlProxyRequest::RestartRdSforMysqlProxyRequest() +SetInstancesProxyRestartRequest::SetInstancesProxyRestartRequest() { instanceId_ = ""; instanceIdIsSet_ = false; @@ -20,13 +20,13 @@ RestartRdSforMysqlProxyRequest::RestartRdSforMysqlProxyRequest() xLanguageIsSet_ = false; } -RestartRdSforMysqlProxyRequest::~RestartRdSforMysqlProxyRequest() = default; +SetInstancesProxyRestartRequest::~SetInstancesProxyRestartRequest() = default; -void RestartRdSforMysqlProxyRequest::validate() +void SetInstancesProxyRestartRequest::validate() { } -web::json::value RestartRdSforMysqlProxyRequest::toJson() const +web::json::value SetInstancesProxyRestartRequest::toJson() const { web::json::value val = web::json::value::object(); @@ -42,7 +42,7 @@ web::json::value RestartRdSforMysqlProxyRequest::toJson() const return val; } -bool RestartRdSforMysqlProxyRequest::fromJson(const web::json::value& val) +bool SetInstancesProxyRestartRequest::fromJson(const web::json::value& val) { bool ok = true; @@ -77,65 +77,65 @@ bool RestartRdSforMysqlProxyRequest::fromJson(const web::json::value& val) } -std::string RestartRdSforMysqlProxyRequest::getInstanceId() const +std::string SetInstancesProxyRestartRequest::getInstanceId() const { return instanceId_; } -void RestartRdSforMysqlProxyRequest::setInstanceId(const std::string& value) +void SetInstancesProxyRestartRequest::setInstanceId(const std::string& value) { instanceId_ = value; instanceIdIsSet_ = true; } -bool RestartRdSforMysqlProxyRequest::instanceIdIsSet() const +bool SetInstancesProxyRestartRequest::instanceIdIsSet() const { return instanceIdIsSet_; } -void RestartRdSforMysqlProxyRequest::unsetinstanceId() +void SetInstancesProxyRestartRequest::unsetinstanceId() { instanceIdIsSet_ = false; } -std::string RestartRdSforMysqlProxyRequest::getProxyId() const +std::string SetInstancesProxyRestartRequest::getProxyId() const { return proxyId_; } -void RestartRdSforMysqlProxyRequest::setProxyId(const std::string& value) +void SetInstancesProxyRestartRequest::setProxyId(const std::string& value) { proxyId_ = value; proxyIdIsSet_ = true; } -bool RestartRdSforMysqlProxyRequest::proxyIdIsSet() const +bool SetInstancesProxyRestartRequest::proxyIdIsSet() const { return proxyIdIsSet_; } -void RestartRdSforMysqlProxyRequest::unsetproxyId() +void SetInstancesProxyRestartRequest::unsetproxyId() { proxyIdIsSet_ = false; } -std::string RestartRdSforMysqlProxyRequest::getXLanguage() const +std::string SetInstancesProxyRestartRequest::getXLanguage() const { return xLanguage_; } -void RestartRdSforMysqlProxyRequest::setXLanguage(const std::string& value) +void SetInstancesProxyRestartRequest::setXLanguage(const std::string& value) { xLanguage_ = value; xLanguageIsSet_ = true; } -bool RestartRdSforMysqlProxyRequest::xLanguageIsSet() const +bool SetInstancesProxyRestartRequest::xLanguageIsSet() const { return xLanguageIsSet_; } -void RestartRdSforMysqlProxyRequest::unsetxLanguage() +void SetInstancesProxyRestartRequest::unsetxLanguage() { xLanguageIsSet_ = false; } diff --git a/rds/src/v3/model/RestartRdSforMysqlProxyResponse.cpp b/rds/src/v3/model/SetInstancesProxyRestartResponse.cpp similarity index 57% rename from rds/src/v3/model/RestartRdSforMysqlProxyResponse.cpp rename to rds/src/v3/model/SetInstancesProxyRestartResponse.cpp index 6500bb778..f7493cdd5 100644 --- a/rds/src/v3/model/RestartRdSforMysqlProxyResponse.cpp +++ b/rds/src/v3/model/SetInstancesProxyRestartResponse.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/rds/v3/model/RestartRdSforMysqlProxyResponse.h" +#include "huaweicloud/rds/v3/model/SetInstancesProxyRestartResponse.h" namespace HuaweiCloud { namespace Sdk { namespace Rds { @@ -10,19 +10,19 @@ namespace Model { -RestartRdSforMysqlProxyResponse::RestartRdSforMysqlProxyResponse() +SetInstancesProxyRestartResponse::SetInstancesProxyRestartResponse() { jobId_ = ""; jobIdIsSet_ = false; } -RestartRdSforMysqlProxyResponse::~RestartRdSforMysqlProxyResponse() = default; +SetInstancesProxyRestartResponse::~SetInstancesProxyRestartResponse() = default; -void RestartRdSforMysqlProxyResponse::validate() +void SetInstancesProxyRestartResponse::validate() { } -web::json::value RestartRdSforMysqlProxyResponse::toJson() const +web::json::value SetInstancesProxyRestartResponse::toJson() const { web::json::value val = web::json::value::object(); @@ -32,7 +32,7 @@ web::json::value RestartRdSforMysqlProxyResponse::toJson() const return val; } -bool RestartRdSforMysqlProxyResponse::fromJson(const web::json::value& val) +bool SetInstancesProxyRestartResponse::fromJson(const web::json::value& val) { bool ok = true; @@ -49,23 +49,23 @@ bool RestartRdSforMysqlProxyResponse::fromJson(const web::json::value& val) } -std::string RestartRdSforMysqlProxyResponse::getJobId() const +std::string SetInstancesProxyRestartResponse::getJobId() const { return jobId_; } -void RestartRdSforMysqlProxyResponse::setJobId(const std::string& value) +void SetInstancesProxyRestartResponse::setJobId(const std::string& value) { jobId_ = value; jobIdIsSet_ = true; } -bool RestartRdSforMysqlProxyResponse::jobIdIsSet() const +bool SetInstancesProxyRestartResponse::jobIdIsSet() const { return jobIdIsSet_; } -void RestartRdSforMysqlProxyResponse::unsetjobId() +void SetInstancesProxyRestartResponse::unsetjobId() { jobIdIsSet_ = false; } diff --git a/rds/src/v3/model/UpdateDatabaseOwnerRequest.cpp b/rds/src/v3/model/UpdateDatabaseOwnerRequest.cpp new file mode 100644 index 000000000..d86efaaaa --- /dev/null +++ b/rds/src/v3/model/UpdateDatabaseOwnerRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +UpdateDatabaseOwnerRequest::UpdateDatabaseOwnerRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateDatabaseOwnerRequest::~UpdateDatabaseOwnerRequest() = default; + +void UpdateDatabaseOwnerRequest::validate() +{ +} + +web::json::value UpdateDatabaseOwnerRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdateDatabaseOwnerRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + UpdateDatabaseOwnerRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateDatabaseOwnerRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateDatabaseOwnerRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateDatabaseOwnerRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateDatabaseOwnerRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +UpdateDatabaseOwnerRequestBody UpdateDatabaseOwnerRequest::getBody() const +{ + return body_; +} + +void UpdateDatabaseOwnerRequest::setBody(const UpdateDatabaseOwnerRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateDatabaseOwnerRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateDatabaseOwnerRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/UpdateDatabaseOwnerRequestBody.cpp b/rds/src/v3/model/UpdateDatabaseOwnerRequestBody.cpp new file mode 100644 index 000000000..5d461ac5e --- /dev/null +++ b/rds/src/v3/model/UpdateDatabaseOwnerRequestBody.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/rds/v3/model/UpdateDatabaseOwnerRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +UpdateDatabaseOwnerRequestBody::UpdateDatabaseOwnerRequestBody() +{ + owner_ = ""; + ownerIsSet_ = false; + database_ = ""; + databaseIsSet_ = false; +} + +UpdateDatabaseOwnerRequestBody::~UpdateDatabaseOwnerRequestBody() = default; + +void UpdateDatabaseOwnerRequestBody::validate() +{ +} + +web::json::value UpdateDatabaseOwnerRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(ownerIsSet_) { + val[utility::conversions::to_string_t("owner")] = ModelBase::toJson(owner_); + } + if(databaseIsSet_) { + val[utility::conversions::to_string_t("database")] = ModelBase::toJson(database_); + } + + return val; +} +bool UpdateDatabaseOwnerRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("owner"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("owner")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOwner(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabase(refVal); + } + } + return ok; +} + + +std::string UpdateDatabaseOwnerRequestBody::getOwner() const +{ + return owner_; +} + +void UpdateDatabaseOwnerRequestBody::setOwner(const std::string& value) +{ + owner_ = value; + ownerIsSet_ = true; +} + +bool UpdateDatabaseOwnerRequestBody::ownerIsSet() const +{ + return ownerIsSet_; +} + +void UpdateDatabaseOwnerRequestBody::unsetowner() +{ + ownerIsSet_ = false; +} + +std::string UpdateDatabaseOwnerRequestBody::getDatabase() const +{ + return database_; +} + +void UpdateDatabaseOwnerRequestBody::setDatabase(const std::string& value) +{ + database_ = value; + databaseIsSet_ = true; +} + +bool UpdateDatabaseOwnerRequestBody::databaseIsSet() const +{ + return databaseIsSet_; +} + +void UpdateDatabaseOwnerRequestBody::unsetdatabase() +{ + databaseIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/UpdateDatabaseOwnerResponse.cpp b/rds/src/v3/model/UpdateDatabaseOwnerResponse.cpp new file mode 100644 index 000000000..23af97b9b --- /dev/null +++ b/rds/src/v3/model/UpdateDatabaseOwnerResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/rds/v3/model/UpdateDatabaseOwnerResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +UpdateDatabaseOwnerResponse::UpdateDatabaseOwnerResponse() +{ + resp_ = ""; + respIsSet_ = false; +} + +UpdateDatabaseOwnerResponse::~UpdateDatabaseOwnerResponse() = default; + +void UpdateDatabaseOwnerResponse::validate() +{ +} + +web::json::value UpdateDatabaseOwnerResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(respIsSet_) { + val[utility::conversions::to_string_t("resp")] = ModelBase::toJson(resp_); + } + + return val; +} +bool UpdateDatabaseOwnerResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("resp"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("resp")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResp(refVal); + } + } + return ok; +} + + +std::string UpdateDatabaseOwnerResponse::getResp() const +{ + return resp_; +} + +void UpdateDatabaseOwnerResponse::setResp(const std::string& value) +{ + resp_ = value; + respIsSet_ = true; +} + +bool UpdateDatabaseOwnerResponse::respIsSet() const +{ + return respIsSet_; +} + +void UpdateDatabaseOwnerResponse::unsetresp() +{ + respIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/UpdatePostgresqlExtensionRequest.cpp b/rds/src/v3/model/UpdatePostgresqlExtensionRequest.cpp new file mode 100644 index 000000000..f8bc6ba79 --- /dev/null +++ b/rds/src/v3/model/UpdatePostgresqlExtensionRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/rds/v3/model/UpdatePostgresqlExtensionRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +UpdatePostgresqlExtensionRequest::UpdatePostgresqlExtensionRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdatePostgresqlExtensionRequest::~UpdatePostgresqlExtensionRequest() = default; + +void UpdatePostgresqlExtensionRequest::validate() +{ +} + +web::json::value UpdatePostgresqlExtensionRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdatePostgresqlExtensionRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("X-Language"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Language")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXLanguage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + ExtensionRequest refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdatePostgresqlExtensionRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdatePostgresqlExtensionRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdatePostgresqlExtensionRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdatePostgresqlExtensionRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string UpdatePostgresqlExtensionRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdatePostgresqlExtensionRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdatePostgresqlExtensionRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdatePostgresqlExtensionRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +ExtensionRequest UpdatePostgresqlExtensionRequest::getBody() const +{ + return body_; +} + +void UpdatePostgresqlExtensionRequest::setBody(const ExtensionRequest& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdatePostgresqlExtensionRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdatePostgresqlExtensionRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/UpdatePostgresqlExtensionResponse.cpp b/rds/src/v3/model/UpdatePostgresqlExtensionResponse.cpp new file mode 100644 index 000000000..c11ee18ca --- /dev/null +++ b/rds/src/v3/model/UpdatePostgresqlExtensionResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/rds/v3/model/UpdatePostgresqlExtensionResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +UpdatePostgresqlExtensionResponse::UpdatePostgresqlExtensionResponse() +{ + body_ = ""; + bodyIsSet_ = false; +} + +UpdatePostgresqlExtensionResponse::~UpdatePostgresqlExtensionResponse() = default; + +void UpdatePostgresqlExtensionResponse::validate() +{ +} + +web::json::value UpdatePostgresqlExtensionResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool UpdatePostgresqlExtensionResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdatePostgresqlExtensionResponse::getBody() const +{ + return body_; +} + +void UpdatePostgresqlExtensionResponse::setBody(const std::string& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdatePostgresqlExtensionResponse::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdatePostgresqlExtensionResponse::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + +