Skip to content

Commit 578642f

Browse files
committed
Generated cpp 2020-12-03 for pai-dlc.
1 parent 43b1059 commit 578642f

File tree

4 files changed

+77
-2
lines changed

4 files changed

+77
-2
lines changed

pai-dlc-20201203/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-11-17 Version: 1.7.5
2+
- Generated cpp 2020-12-03 for pai-dlc.
3+
14
2025-11-10 Version: 1.7.4
25
- Update API UpdateJob: add request parameters body.JobSpecs.
36

pai-dlc-20201203/include/alibabacloud/PaiDlc20201203Model.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <alibabacloud/models/SpotSpec.hpp>
4141
#include <alibabacloud/models/SystemDisk.hpp>
4242
#include <alibabacloud/models/JobSpec.hpp>
43+
#include <alibabacloud/models/PodNetworkInterface.hpp>
4344
#include <alibabacloud/models/PodItem.hpp>
4445
#include <alibabacloud/models/ModelConfig.hpp>
4546
#include <alibabacloud/models/JobSettings.hpp>

pai-dlc-20201203/include/alibabacloud/models/PodItem.hpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <darabonba/Core.hpp>
55
#include <vector>
66
#include <alibabacloud/models/PodItem.hpp>
7+
#include <alibabacloud/models/PodNetworkInterface.hpp>
78
using namespace std;
89
using json = nlohmann::json;
910
namespace AlibabaCloud
@@ -23,6 +24,7 @@ namespace Models
2324
DARABONBA_PTR_TO_JSON(NodeName, nodeName_);
2425
DARABONBA_PTR_TO_JSON(PodId, podId_);
2526
DARABONBA_PTR_TO_JSON(PodIp, podIp_);
27+
DARABONBA_PTR_TO_JSON(PodIps, podIps_);
2628
DARABONBA_PTR_TO_JSON(PodUid, podUid_);
2729
DARABONBA_PTR_TO_JSON(Status, status_);
2830
DARABONBA_PTR_TO_JSON(SubStatus, subStatus_);
@@ -37,6 +39,7 @@ namespace Models
3739
DARABONBA_PTR_FROM_JSON(NodeName, nodeName_);
3840
DARABONBA_PTR_FROM_JSON(PodId, podId_);
3941
DARABONBA_PTR_FROM_JSON(PodIp, podIp_);
42+
DARABONBA_PTR_FROM_JSON(PodIps, podIps_);
4043
DARABONBA_PTR_FROM_JSON(PodUid, podUid_);
4144
DARABONBA_PTR_FROM_JSON(Status, status_);
4245
DARABONBA_PTR_FROM_JSON(SubStatus, subStatus_);
@@ -55,8 +58,8 @@ namespace Models
5558
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
5659
virtual bool empty() const override { return this->gmtCreateTime_ == nullptr
5760
&& return this->gmtFinishTime_ == nullptr && return this->gmtStartTime_ == nullptr && return this->historyPods_ == nullptr && return this->ip_ == nullptr && return this->nodeName_ == nullptr
58-
&& return this->podId_ == nullptr && return this->podIp_ == nullptr && return this->podUid_ == nullptr && return this->status_ == nullptr && return this->subStatus_ == nullptr
59-
&& return this->type_ == nullptr; };
61+
&& return this->podId_ == nullptr && return this->podIp_ == nullptr && return this->podIps_ == nullptr && return this->podUid_ == nullptr && return this->status_ == nullptr
62+
&& return this->subStatus_ == nullptr && return this->type_ == nullptr; };
6063
// gmtCreateTime Field Functions
6164
bool hasGmtCreateTime() const { return this->gmtCreateTime_ != nullptr;};
6265
void deleteGmtCreateTime() { this->gmtCreateTime_ = nullptr;};
@@ -115,6 +118,15 @@ namespace Models
115118
inline PodItem& setPodIp(string podIp) { DARABONBA_PTR_SET_VALUE(podIp_, podIp) };
116119

117120

121+
// podIps Field Functions
122+
bool hasPodIps() const { return this->podIps_ != nullptr;};
123+
void deletePodIps() { this->podIps_ = nullptr;};
124+
inline const vector<PodNetworkInterface> & podIps() const { DARABONBA_PTR_GET_CONST(podIps_, vector<PodNetworkInterface>) };
125+
inline vector<PodNetworkInterface> podIps() { DARABONBA_PTR_GET(podIps_, vector<PodNetworkInterface>) };
126+
inline PodItem& setPodIps(const vector<PodNetworkInterface> & podIps) { DARABONBA_PTR_SET_VALUE(podIps_, podIps) };
127+
inline PodItem& setPodIps(vector<PodNetworkInterface> && podIps) { DARABONBA_PTR_SET_RVALUE(podIps_, podIps) };
128+
129+
118130
// podUid Field Functions
119131
bool hasPodUid() const { return this->podUid_ != nullptr;};
120132
void deletePodUid() { this->podUid_ = nullptr;};
@@ -152,6 +164,7 @@ namespace Models
152164
std::shared_ptr<string> nodeName_ = nullptr;
153165
std::shared_ptr<string> podId_ = nullptr;
154166
std::shared_ptr<string> podIp_ = nullptr;
167+
std::shared_ptr<vector<PodNetworkInterface>> podIps_ = nullptr;
155168
std::shared_ptr<string> podUid_ = nullptr;
156169
std::shared_ptr<string> status_ = nullptr;
157170
std::shared_ptr<string> subStatus_ = nullptr;
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
#ifndef ALIBABACLOUD_MODELS_PODNETWORKINTERFACE_HPP_
3+
#define ALIBABACLOUD_MODELS_PODNETWORKINTERFACE_HPP_
4+
#include <darabonba/Core.hpp>
5+
using namespace std;
6+
using json = nlohmann::json;
7+
namespace AlibabaCloud
8+
{
9+
namespace PaiDlc20201203
10+
{
11+
namespace Models
12+
{
13+
class PodNetworkInterface : public Darabonba::Model {
14+
public:
15+
friend void to_json(Darabonba::Json& j, const PodNetworkInterface& obj) {
16+
DARABONBA_PTR_TO_JSON(InterfaceName, interfaceName_);
17+
DARABONBA_PTR_TO_JSON(Ip, ip_);
18+
};
19+
friend void from_json(const Darabonba::Json& j, PodNetworkInterface& obj) {
20+
DARABONBA_PTR_FROM_JSON(InterfaceName, interfaceName_);
21+
DARABONBA_PTR_FROM_JSON(Ip, ip_);
22+
};
23+
PodNetworkInterface() = default ;
24+
PodNetworkInterface(const PodNetworkInterface &) = default ;
25+
PodNetworkInterface(PodNetworkInterface &&) = default ;
26+
PodNetworkInterface(const Darabonba::Json & obj) { from_json(obj, *this); };
27+
virtual ~PodNetworkInterface() = default ;
28+
PodNetworkInterface& operator=(const PodNetworkInterface &) = default ;
29+
PodNetworkInterface& operator=(PodNetworkInterface &&) = default ;
30+
virtual void validate() const override {
31+
};
32+
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
33+
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
34+
virtual bool empty() const override { return this->interfaceName_ == nullptr
35+
&& return this->ip_ == nullptr; };
36+
// interfaceName Field Functions
37+
bool hasInterfaceName() const { return this->interfaceName_ != nullptr;};
38+
void deleteInterfaceName() { this->interfaceName_ = nullptr;};
39+
inline string interfaceName() const { DARABONBA_PTR_GET_DEFAULT(interfaceName_, "") };
40+
inline PodNetworkInterface& setInterfaceName(string interfaceName) { DARABONBA_PTR_SET_VALUE(interfaceName_, interfaceName) };
41+
42+
43+
// ip Field Functions
44+
bool hasIp() const { return this->ip_ != nullptr;};
45+
void deleteIp() { this->ip_ = nullptr;};
46+
inline string ip() const { DARABONBA_PTR_GET_DEFAULT(ip_, "") };
47+
inline PodNetworkInterface& setIp(string ip) { DARABONBA_PTR_SET_VALUE(ip_, ip) };
48+
49+
50+
protected:
51+
std::shared_ptr<string> interfaceName_ = nullptr;
52+
std::shared_ptr<string> ip_ = nullptr;
53+
};
54+
55+
} // namespace Models
56+
} // namespace AlibabaCloud
57+
} // namespace PaiDlc20201203
58+
#endif

0 commit comments

Comments
 (0)