Skip to content

Commit 6efcba8

Browse files
committed
release 0.0.6-beta source code for cpp
1 parent 8f5f6fb commit 6efcba8

17 files changed

+1395
-0
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# 0.0.6-beta 2023-05-12
2+
3+
### G42Cloud SDK ECS
4+
5+
- _Features_
6+
- Support the interface `NovaAttachInterface`
7+
- _Bug Fix_
8+
- None
9+
- _Change_
10+
- None
11+
12+
### G42Cloud SDK IMS
13+
14+
- _Features_
15+
- None
16+
- _Bug Fix_
17+
- None
18+
- _Change_
19+
- **ListImages**
20+
- changes of request param
21+
- `+ __imagetype: enum value [market]`
22+
123
# 0.0.5-beta 2023-04-14
224

325
### G42Cloud SDK Core

ecs/include/g42cloud/ecs/v2/EcsClient.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
#include <g42cloud/ecs/v2/model/NovaAssociateSecurityGroupRequest.h>
9898
#include <g42cloud/ecs/v2/model/NovaAssociateSecurityGroupRequestBody.h>
9999
#include <g42cloud/ecs/v2/model/NovaAssociateSecurityGroupResponse.h>
100+
#include <g42cloud/ecs/v2/model/NovaAttachInterfaceRequest.h>
101+
#include <g42cloud/ecs/v2/model/NovaAttachInterfaceRequestBody.h>
102+
#include <g42cloud/ecs/v2/model/NovaAttachInterfaceResponse.h>
100103
#include <g42cloud/ecs/v2/model/NovaCreateKeypairRequest.h>
101104
#include <g42cloud/ecs/v2/model/NovaCreateKeypairRequestBody.h>
102105
#include <g42cloud/ecs/v2/model/NovaCreateKeypairResponse.h>
@@ -302,6 +305,9 @@ class G42CLOUD_ECS_V2_EXPORT EcsClient : public Client
302305
std::shared_ptr<NovaAssociateSecurityGroupResponse> novaAssociateSecurityGroup(
303306
NovaAssociateSecurityGroupRequest &request
304307
);
308+
std::shared_ptr<NovaAttachInterfaceResponse> novaAttachInterface(
309+
NovaAttachInterfaceRequest &request
310+
);
305311
std::shared_ptr<NovaCreateKeypairResponse> novaCreateKeypair(
306312
NovaCreateKeypairRequest &request
307313
);
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
#ifndef G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceFixedIp_H_
3+
#define G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceFixedIp_H_
4+
5+
#include <g42cloud/ecs/v2/EcsExport.h>
6+
7+
#include <g42cloud/core/utils/ModelBase.h>
8+
#include <g42cloud/core/http/HttpResponse.h>
9+
10+
#include <string>
11+
12+
namespace G42Cloud {
13+
namespace Sdk {
14+
namespace Ecs {
15+
namespace V2 {
16+
namespace Model {
17+
18+
using namespace G42Cloud::Sdk::Core::Utils;
19+
using namespace G42Cloud::Sdk::Core::Http;
20+
class G42CLOUD_ECS_V2_EXPORT NovaAttachInterfaceFixedIp
21+
: public ModelBase
22+
{
23+
public:
24+
NovaAttachInterfaceFixedIp();
25+
virtual ~NovaAttachInterfaceFixedIp();
26+
27+
/////////////////////////////////////////////
28+
/// ModelBase overrides
29+
30+
void validate() override;
31+
32+
web::json::value toJson() const override;
33+
bool fromJson(const web::json::value& json) override;
34+
35+
/////////////////////////////////////////////
36+
/// NovaAttachInterfaceFixedIp members
37+
38+
39+
std::string getIpAddress() const;
40+
bool ipAddressIsSet() const;
41+
void unsetipAddress();
42+
void setIpAddress(const std::string& value);
43+
44+
45+
protected:
46+
std::string ipAddress_;
47+
bool ipAddressIsSet_;
48+
49+
};
50+
51+
52+
}
53+
}
54+
}
55+
}
56+
}
57+
58+
#endif // G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceFixedIp_H_
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
#ifndef G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceOption_H_
3+
#define G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceOption_H_
4+
5+
#include <g42cloud/ecs/v2/EcsExport.h>
6+
7+
#include <g42cloud/core/utils/ModelBase.h>
8+
#include <g42cloud/core/http/HttpResponse.h>
9+
10+
#include <g42cloud/ecs/v2/model/NovaAttachInterfaceFixedIp.h>
11+
#include <string>
12+
#include <vector>
13+
14+
namespace G42Cloud {
15+
namespace Sdk {
16+
namespace Ecs {
17+
namespace V2 {
18+
namespace Model {
19+
20+
using namespace G42Cloud::Sdk::Core::Utils;
21+
using namespace G42Cloud::Sdk::Core::Http;
22+
class G42CLOUD_ECS_V2_EXPORT NovaAttachInterfaceOption
23+
: public ModelBase
24+
{
25+
public:
26+
NovaAttachInterfaceOption();
27+
virtual ~NovaAttachInterfaceOption();
28+
29+
/////////////////////////////////////////////
30+
/// ModelBase overrides
31+
32+
void validate() override;
33+
34+
web::json::value toJson() const override;
35+
bool fromJson(const web::json::value& json) override;
36+
37+
/////////////////////////////////////////////
38+
/// NovaAttachInterfaceOption members
39+
40+
41+
std::vector<NovaAttachInterfaceFixedIp>& getFixedIps();
42+
bool fixedIpsIsSet() const;
43+
void unsetfixedIps();
44+
void setFixedIps(const std::vector<NovaAttachInterfaceFixedIp>& value);
45+
46+
47+
std::string getNetId() const;
48+
bool netIdIsSet() const;
49+
void unsetnetId();
50+
void setNetId(const std::string& value);
51+
52+
53+
std::string getPortId() const;
54+
bool portIdIsSet() const;
55+
void unsetportId();
56+
void setPortId(const std::string& value);
57+
58+
59+
protected:
60+
std::vector<NovaAttachInterfaceFixedIp> fixedIps_;
61+
bool fixedIpsIsSet_;
62+
std::string netId_;
63+
bool netIdIsSet_;
64+
std::string portId_;
65+
bool portIdIsSet_;
66+
67+
};
68+
69+
70+
}
71+
}
72+
}
73+
}
74+
}
75+
76+
#endif // G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceOption_H_
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
#ifndef G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceRequest_H_
3+
#define G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceRequest_H_
4+
5+
#include <g42cloud/ecs/v2/EcsExport.h>
6+
7+
#include <g42cloud/core/utils/ModelBase.h>
8+
#include <g42cloud/core/http/HttpResponse.h>
9+
10+
#include <g42cloud/ecs/v2/model/NovaAttachInterfaceRequestBody.h>
11+
#include <string>
12+
13+
namespace G42Cloud {
14+
namespace Sdk {
15+
namespace Ecs {
16+
namespace V2 {
17+
namespace Model {
18+
19+
using namespace G42Cloud::Sdk::Core::Utils;
20+
using namespace G42Cloud::Sdk::Core::Http;
21+
class G42CLOUD_ECS_V2_EXPORT NovaAttachInterfaceRequest
22+
: public ModelBase
23+
{
24+
public:
25+
NovaAttachInterfaceRequest();
26+
virtual ~NovaAttachInterfaceRequest();
27+
28+
/////////////////////////////////////////////
29+
/// ModelBase overrides
30+
31+
void validate() override;
32+
33+
web::json::value toJson() const override;
34+
bool fromJson(const web::json::value& json) override;
35+
36+
/////////////////////////////////////////////
37+
/// NovaAttachInterfaceRequest members
38+
39+
40+
std::string getServerId() const;
41+
bool serverIdIsSet() const;
42+
void unsetserverId();
43+
void setServerId(const std::string& value);
44+
45+
46+
NovaAttachInterfaceRequestBody getBody() const;
47+
bool bodyIsSet() const;
48+
void unsetbody();
49+
void setBody(const NovaAttachInterfaceRequestBody& value);
50+
51+
52+
protected:
53+
std::string serverId_;
54+
bool serverIdIsSet_;
55+
NovaAttachInterfaceRequestBody body_;
56+
bool bodyIsSet_;
57+
58+
#ifdef RTTR_FLAG
59+
RTTR_ENABLE()
60+
public:
61+
NovaAttachInterfaceRequest& dereference_from_shared_ptr(std::shared_ptr<NovaAttachInterfaceRequest> ptr) {
62+
return *ptr;
63+
}
64+
#endif
65+
};
66+
67+
68+
}
69+
}
70+
}
71+
}
72+
}
73+
74+
#endif // G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceRequest_H_
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
#ifndef G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceRequestBody_H_
3+
#define G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceRequestBody_H_
4+
5+
#include <g42cloud/ecs/v2/EcsExport.h>
6+
7+
#include <g42cloud/core/utils/ModelBase.h>
8+
#include <g42cloud/core/http/HttpResponse.h>
9+
10+
#include <g42cloud/ecs/v2/model/NovaAttachInterfaceOption.h>
11+
12+
namespace G42Cloud {
13+
namespace Sdk {
14+
namespace Ecs {
15+
namespace V2 {
16+
namespace Model {
17+
18+
using namespace G42Cloud::Sdk::Core::Utils;
19+
using namespace G42Cloud::Sdk::Core::Http;
20+
class G42CLOUD_ECS_V2_EXPORT NovaAttachInterfaceRequestBody
21+
: public ModelBase
22+
{
23+
public:
24+
NovaAttachInterfaceRequestBody();
25+
virtual ~NovaAttachInterfaceRequestBody();
26+
27+
/////////////////////////////////////////////
28+
/// ModelBase overrides
29+
30+
void validate() override;
31+
32+
web::json::value toJson() const override;
33+
bool fromJson(const web::json::value& json) override;
34+
35+
/////////////////////////////////////////////
36+
/// NovaAttachInterfaceRequestBody members
37+
38+
39+
NovaAttachInterfaceOption getInterfaceAttachment() const;
40+
bool interfaceAttachmentIsSet() const;
41+
void unsetinterfaceAttachment();
42+
void setInterfaceAttachment(const NovaAttachInterfaceOption& value);
43+
44+
45+
protected:
46+
NovaAttachInterfaceOption interfaceAttachment_;
47+
bool interfaceAttachmentIsSet_;
48+
49+
};
50+
51+
52+
}
53+
}
54+
}
55+
}
56+
}
57+
58+
#endif // G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceRequestBody_H_
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
#ifndef G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceResponse_H_
3+
#define G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceResponse_H_
4+
5+
#include <g42cloud/ecs/v2/EcsExport.h>
6+
7+
#include <g42cloud/core/utils/ModelBase.h>
8+
#include <g42cloud/core/http/HttpResponse.h>
9+
10+
#include <g42cloud/ecs/v2/model/NovaServerInterfaceDetail.h>
11+
12+
namespace G42Cloud {
13+
namespace Sdk {
14+
namespace Ecs {
15+
namespace V2 {
16+
namespace Model {
17+
18+
using namespace G42Cloud::Sdk::Core::Utils;
19+
using namespace G42Cloud::Sdk::Core::Http;
20+
class G42CLOUD_ECS_V2_EXPORT NovaAttachInterfaceResponse
21+
: public ModelBase, public HttpResponse
22+
{
23+
public:
24+
NovaAttachInterfaceResponse();
25+
virtual ~NovaAttachInterfaceResponse();
26+
27+
/////////////////////////////////////////////
28+
/// ModelBase overrides
29+
30+
void validate() override;
31+
32+
web::json::value toJson() const override;
33+
bool fromJson(const web::json::value& json) override;
34+
35+
/////////////////////////////////////////////
36+
/// NovaAttachInterfaceResponse members
37+
38+
39+
NovaServerInterfaceDetail getInterfaceAttachment() const;
40+
bool interfaceAttachmentIsSet() const;
41+
void unsetinterfaceAttachment();
42+
void setInterfaceAttachment(const NovaServerInterfaceDetail& value);
43+
44+
45+
protected:
46+
NovaServerInterfaceDetail interfaceAttachment_;
47+
bool interfaceAttachmentIsSet_;
48+
49+
#ifdef RTTR_FLAG
50+
RTTR_ENABLE()
51+
#endif
52+
};
53+
54+
55+
}
56+
}
57+
}
58+
}
59+
}
60+
61+
#endif // G42CLOUD_SDK_ECS_V2_MODEL_NovaAttachInterfaceResponse_H_

0 commit comments

Comments
 (0)