Skip to content

Commit

Permalink
release 3.1.101 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Sep 5, 2024
1 parent 260fd4b commit ed04eb6
Show file tree
Hide file tree
Showing 27 changed files with 1,320 additions and 164 deletions.
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,67 @@
# 3.1.101 2024-09-05

### HuaweiCloud SDK ECS

- _API Version_
- V2
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ListCloudServers**
- changes of request param
- `+ marker`
- changes of response param
- `- count`
- `+ servers.launched_at`
- `- servers.launched`
- `+ servers.security_groups.id`
- `+ servers.volumes_attached.size`
- `+ servers.flavor.gpus`
- `+ servers.flavor.asic_accelerators`
- `- servers.flavor.root_gb`
- `- servers.flavor.ephemeral_gb`
- `- servers.flavor.extra_specs`

### HuaweiCloud SDK Live

- _API Version_
- V1
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ShowDomainHttpsCert**
- changes of response param
- `+ tls_certificate`
- `+ gm_certificate`
- **UpdateDomainHttpsCert**
- changes of request param
- `+ tls_certificate`
- `+ gm_certificate`

### HuaweiCloud SDK VPC

- _API Version_
- V3
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **CreateSubNetworkInterface**
- changes of request param
- `- sub_network_interface.instance_id`
- `- sub_network_interface.instance_type`
- `- sub_network_interface.tags`
- **BatchCreateSubNetworkInterface**
- changes of request param
- `- sub_network_interface.instance_id`
- `- sub_network_interface.instance_type`
- `- sub_network_interface.tags`

# 3.1.100 2024-08-29

### HuaweiCloud SDK ECS
Expand Down
64 changes: 64 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,67 @@
# 3.1.101 2024-09-05

### HuaweiCloud SDK ECS

- _接口版本_
- V2
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ListCloudServers**
- 请求参数变更
- `+ marker`
- 响应参数变更
- `- count`
- `+ servers.launched_at`
- `- servers.launched`
- `+ servers.security_groups.id`
- `+ servers.volumes_attached.size`
- `+ servers.flavor.gpus`
- `+ servers.flavor.asic_accelerators`
- `- servers.flavor.root_gb`
- `- servers.flavor.ephemeral_gb`
- `- servers.flavor.extra_specs`

### HuaweiCloud SDK Live

- _接口版本_
- V1
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ShowDomainHttpsCert**
- 响应参数变更
- `+ tls_certificate`
- `+ gm_certificate`
- **UpdateDomainHttpsCert**
- 请求参数变更
- `+ tls_certificate`
- `+ gm_certificate`

### HuaweiCloud SDK VPC

- _接口版本_
- V3
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **CreateSubNetworkInterface**
- 请求参数变更
- `- sub_network_interface.instance_id`
- `- sub_network_interface.instance_type`
- `- sub_network_interface.tags`
- **BatchCreateSubNetworkInterface**
- 请求参数变更
- `- sub_network_interface.instance_id`
- `- sub_network_interface.instance_type`
- `- sub_network_interface.tags`

# 3.1.100 2024-08-29

### HuaweiCloud SDK ECS
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.100
3.1.101
14 changes: 7 additions & 7 deletions ecs/include/huaweicloud/ecs/v2/model/CloudServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ class HUAWEICLOUD_ECS_V2_EXPORT CloudServer
void setUpdated(const std::string& value);

/// <summary>
/// 云服务器启动时间。时间格式例如:2020-05-22T07:48:53Z
/// 云服务器启动时间。时间格式例如:2020-05-22T07:48:53.000000
/// </summary>

std::string getLaunched() const;
bool launchedIsSet() const;
void unsetlaunched();
void setLaunched(const std::string& value);
std::string getLaunchedAt() const;
bool launchedAtIsSet() const;
void unsetlaunchedAt();
void setLaunchedAt(const std::string& value);

/// <summary>
/// 云服务器的描述信息。
Expand Down Expand Up @@ -357,8 +357,8 @@ class HUAWEICLOUD_ECS_V2_EXPORT CloudServer
bool spodIdIsSet_;
std::string updated_;
bool updatedIsSet_;
std::string launched_;
bool launchedIsSet_;
std::string launchedAt_;
bool launchedAtIsSet_;
std::string description_;
bool descriptionIsSet_;
std::string keyName_;
Expand Down
38 changes: 14 additions & 24 deletions ecs/include/huaweicloud/ecs/v2/model/FlavorQuasar.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
#include <huaweicloud/core/utils/Utils.h>
#include <huaweicloud/core/http/HttpResponse.h>

#include <huaweicloud/ecs/v2/model/ASICAcceleratorInfo.h>
#include <huaweicloud/ecs/v2/model/GpuInfo.h>
#include <string>
#include <map>
#include <vector>

namespace HuaweiCloud {
Expand Down Expand Up @@ -89,28 +90,19 @@ class HUAWEICLOUD_ECS_V2_EXPORT FlavorQuasar
///
/// </summary>

int32_t getRootGb() const;
bool rootGbIsSet() const;
void unsetrootGb();
void setRootGb(int32_t value);
std::vector<GpuInfo>& getGpus();
bool gpusIsSet() const;
void unsetgpus();
void setGpus(const std::vector<GpuInfo>& value);

/// <summary>
///
/// </summary>

int32_t getEphemeralGb() const;
bool ephemeralGbIsSet() const;
void unsetephemeralGb();
void setEphemeralGb(int32_t value);

/// <summary>
/// flavor扩展字段。
/// </summary>

std::map<std::string, std::string>& getExtraSpecs();
bool extraSpecsIsSet() const;
void unsetextraSpecs();
void setExtraSpecs(const std::map<std::string, std::string>& value);
std::vector<ASICAcceleratorInfo>& getAsicAccelerators();
bool asicAcceleratorsIsSet() const;
void unsetasicAccelerators();
void setAsicAccelerators(const std::vector<ASICAcceleratorInfo>& value);


protected:
Expand All @@ -124,12 +116,10 @@ class HUAWEICLOUD_ECS_V2_EXPORT FlavorQuasar
bool ramIsSet_;
int32_t disk_;
bool diskIsSet_;
int32_t rootGb_;
bool rootGbIsSet_;
int32_t ephemeralGb_;
bool ephemeralGbIsSet_;
std::map<std::string, std::string> extraSpecs_;
bool extraSpecsIsSet_;
std::vector<GpuInfo> gpus_;
bool gpusIsSet_;
std::vector<ASICAcceleratorInfo> asicAccelerators_;
bool asicAcceleratorsIsSet_;

};

Expand Down
15 changes: 13 additions & 2 deletions ecs/include/huaweicloud/ecs/v2/model/ListCloudServersRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class HUAWEICLOUD_ECS_V2_EXPORT ListCloudServersRequest
void setName(const std::string& value);

/// <summary>
/// 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)
/// 云服务器状态。 取值范围: ACTIVE, BUILD,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)
/// </summary>

std::string getStatus() const;
Expand Down Expand Up @@ -193,7 +193,7 @@ class HUAWEICLOUD_ECS_V2_EXPORT ListCloudServersRequest
void setEnterpriseProjectId(const std::string& value);

/// <summary>
/// 控制查询输出的字段。在默认字段的基础上选择是否查询,有管理员字段
/// 控制查询输出的字段。在默认字段的基础上选择是否查询。 launched_at:云服务器启动时间。 key_name:云服务器使用的密钥对名称。 locked:云服务器是否为锁定状态。 root_device_name:云服务器系统盘的设备名称。 tenancy:在专属主机或共享池中创建云服务器。 dedicated_host_id:专属主机ID。 enterprise_project_id:查询绑定某个企业项目的云服务器。 tags:云服务器的标签列表。 metadata:云服务器元数据。 addresses:云服务器对应的网络地址信息。 security_groups:云服务器的安全组信息。 volumes_attached:云服务器挂载磁盘信息。 image:云服务器镜像信息。 power_state:云服务器电源状态。 cpu_options:自定义CPU选项。 market_info:云服务器计费信息,包含计费类型、到期时间等字段
/// </summary>

std::vector<std::string>& getExpectFields();
Expand All @@ -210,6 +210,15 @@ class HUAWEICLOUD_ECS_V2_EXPORT ListCloudServersRequest
void unsetlimit();
void setLimit(int32_t value);

/// <summary>
/// 以单页最后一条server的ID作为分页标记。
/// </summary>

std::string getMarker() const;
bool markerIsSet() const;
void unsetmarker();
void setMarker(const std::string& value);


protected:
std::string id_;
Expand Down Expand Up @@ -250,6 +259,8 @@ class HUAWEICLOUD_ECS_V2_EXPORT ListCloudServersRequest
bool expectFieldsIsSet_;
int32_t limit_;
bool limitIsSet_;
std::string marker_;
bool markerIsSet_;

#ifdef RTTR_FLAG
RTTR_ENABLE()
Expand Down
11 changes: 0 additions & 11 deletions ecs/include/huaweicloud/ecs/v2/model/ListCloudServersResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ class HUAWEICLOUD_ECS_V2_EXPORT ListCloudServersResponse
/////////////////////////////////////////////
/// ListCloudServersResponse members

/// <summary>
/// 查询云服务器个数。
/// </summary>

int32_t getCount() const;
bool countIsSet() const;
void unsetcount();
void setCount(int32_t value);

/// <summary>
/// 查询云服务器信息列表。
/// </summary>
Expand Down Expand Up @@ -79,8 +70,6 @@ class HUAWEICLOUD_ECS_V2_EXPORT ListCloudServersResponse


protected:
int32_t count_;
bool countIsSet_;
std::vector<CloudServer> servers_;
bool serversIsSet_;
std::vector<PageLink> serversLinks_;
Expand Down
11 changes: 11 additions & 0 deletions ecs/include/huaweicloud/ecs/v2/model/NetworkAddresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ class HUAWEICLOUD_ECS_V2_EXPORT NetworkAddresses
void unsetoSEXTIPSType();
void setOSEXTIPSType(const std::string& value);

/// <summary>
/// 是否是主网卡。 true:主网卡。 false:辅助网卡。
/// </summary>

bool isPrimary() const;
bool primaryIsSet() const;
void unsetprimary();
void setPrimary(bool value);


protected:
std::string addr_;
Expand All @@ -95,6 +104,8 @@ class HUAWEICLOUD_ECS_V2_EXPORT NetworkAddresses
bool oSEXTIPSMACMacAddrIsSet_;
std::string oSEXTIPSType_;
bool oSEXTIPSTypeIsSet_;
bool primary_;
bool primaryIsSet_;

};

Expand Down
11 changes: 11 additions & 0 deletions ecs/include/huaweicloud/ecs/v2/model/SecurityGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,21 @@ class HUAWEICLOUD_ECS_V2_EXPORT SecurityGroup
void unsetname();
void setName(const std::string& value);

/// <summary>
/// 安全组ID。
/// </summary>

std::string getId() const;
bool idIsSet() const;
void unsetid();
void setId(const std::string& value);


protected:
std::string name_;
bool nameIsSet_;
std::string id_;
bool idIsSet_;

};

Expand Down
11 changes: 11 additions & 0 deletions ecs/include/huaweicloud/ecs/v2/model/VolumeAttach.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ class HUAWEICLOUD_ECS_V2_EXPORT VolumeAttach
void unsetbootIndex();
void setBootIndex(const std::string& value);

/// <summary>
/// 云盘大小(单位:GB)。
/// </summary>

int32_t getSize() const;
bool sizeIsSet() const;
void unsetsize();
void setSize(int32_t value);


protected:
std::string id_;
Expand All @@ -84,6 +93,8 @@ class HUAWEICLOUD_ECS_V2_EXPORT VolumeAttach
bool deviceIsSet_;
std::string bootIndex_;
bool bootIndexIsSet_;
int32_t size_;
bool sizeIsSet_;

};

Expand Down
3 changes: 3 additions & 0 deletions ecs/src/v2/EcsClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,9 @@ std::shared_ptr<ListCloudServersResponse> EcsClient::listCloudServers(ListCloudS
if (request.limitIsSet()) {
localVarQueryParams["limit"] = parameterToString(request.getLimit());
}
if (request.markerIsSet()) {
localVarQueryParams["marker"] = parameterToString(request.getMarker());
}

std::string localVarHttpBody;

Expand Down
3 changes: 3 additions & 0 deletions ecs/src/v2/EcsMeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ HttpRequestDef EcsMeta::genRequestDefForListCloudServers() {
reqDefBuilder.withRequestField(FieldDef().withName("Limit")
.withJsonTag("limit")
.withLocationType(Query_));
reqDefBuilder.withRequestField(FieldDef().withName("Marker")
.withJsonTag("marker")
.withLocationType(Query_));
return reqDefBuilder;
}

Expand Down
Loading

0 comments on commit ed04eb6

Please sign in to comment.