Skip to content

Commit 0c2f5f4

Browse files
committed
-Supported DeleteEip
1 parent 1d10996 commit 0c2f5f4

24 files changed

+530
-5
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2033
1+
1.36.2034

ens/CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ set(ens_public_header_model
135135
include/alibabacloud/ens/model/DeleteDeviceInternetPortResult.h
136136
include/alibabacloud/ens/model/DeleteDiskRequest.h
137137
include/alibabacloud/ens/model/DeleteDiskResult.h
138+
include/alibabacloud/ens/model/DeleteEipRequest.h
139+
include/alibabacloud/ens/model/DeleteEipResult.h
138140
include/alibabacloud/ens/model/DeleteEnsRouteEntryRequest.h
139141
include/alibabacloud/ens/model/DeleteEnsRouteEntryResult.h
140142
include/alibabacloud/ens/model/DeleteEnsSaleConditionControlRequest.h
@@ -459,6 +461,8 @@ set(ens_public_header_model
459461
include/alibabacloud/ens/model/ModifySecurityGroupAttributeResult.h
460462
include/alibabacloud/ens/model/ModifySnapshotAttributeRequest.h
461463
include/alibabacloud/ens/model/ModifySnapshotAttributeResult.h
464+
include/alibabacloud/ens/model/ModifySnatEntryRequest.h
465+
include/alibabacloud/ens/model/ModifySnatEntryResult.h
462466
include/alibabacloud/ens/model/ModifyVSwitchAttributeRequest.h
463467
include/alibabacloud/ens/model/ModifyVSwitchAttributeResult.h
464468
include/alibabacloud/ens/model/MountInstanceSDGRequest.h
@@ -712,6 +716,8 @@ set(ens_src
712716
src/model/DeleteDeviceInternetPortResult.cc
713717
src/model/DeleteDiskRequest.cc
714718
src/model/DeleteDiskResult.cc
719+
src/model/DeleteEipRequest.cc
720+
src/model/DeleteEipResult.cc
715721
src/model/DeleteEnsRouteEntryRequest.cc
716722
src/model/DeleteEnsRouteEntryResult.cc
717723
src/model/DeleteEnsSaleConditionControlRequest.cc
@@ -1036,6 +1042,8 @@ set(ens_src
10361042
src/model/ModifySecurityGroupAttributeResult.cc
10371043
src/model/ModifySnapshotAttributeRequest.cc
10381044
src/model/ModifySnapshotAttributeResult.cc
1045+
src/model/ModifySnatEntryRequest.cc
1046+
src/model/ModifySnatEntryResult.cc
10391047
src/model/ModifyVSwitchAttributeRequest.cc
10401048
src/model/ModifyVSwitchAttributeResult.cc
10411049
src/model/MountInstanceSDGRequest.cc

ens/include/alibabacloud/ens/EnsClient.h

+16
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
#include "model/DeleteDeviceInternetPortResult.h"
137137
#include "model/DeleteDiskRequest.h"
138138
#include "model/DeleteDiskResult.h"
139+
#include "model/DeleteEipRequest.h"
140+
#include "model/DeleteEipResult.h"
139141
#include "model/DeleteEnsRouteEntryRequest.h"
140142
#include "model/DeleteEnsRouteEntryResult.h"
141143
#include "model/DeleteEnsSaleConditionControlRequest.h"
@@ -460,6 +462,8 @@
460462
#include "model/ModifySecurityGroupAttributeResult.h"
461463
#include "model/ModifySnapshotAttributeRequest.h"
462464
#include "model/ModifySnapshotAttributeResult.h"
465+
#include "model/ModifySnatEntryRequest.h"
466+
#include "model/ModifySnatEntryResult.h"
463467
#include "model/ModifyVSwitchAttributeRequest.h"
464468
#include "model/ModifyVSwitchAttributeResult.h"
465469
#include "model/MountInstanceSDGRequest.h"
@@ -776,6 +780,9 @@ namespace AlibabaCloud
776780
typedef Outcome<Error, Model::DeleteDiskResult> DeleteDiskOutcome;
777781
typedef std::future<DeleteDiskOutcome> DeleteDiskOutcomeCallable;
778782
typedef std::function<void(const EnsClient*, const Model::DeleteDiskRequest&, const DeleteDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiskAsyncHandler;
783+
typedef Outcome<Error, Model::DeleteEipResult> DeleteEipOutcome;
784+
typedef std::future<DeleteEipOutcome> DeleteEipOutcomeCallable;
785+
typedef std::function<void(const EnsClient*, const Model::DeleteEipRequest&, const DeleteEipOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEipAsyncHandler;
779786
typedef Outcome<Error, Model::DeleteEnsRouteEntryResult> DeleteEnsRouteEntryOutcome;
780787
typedef std::future<DeleteEnsRouteEntryOutcome> DeleteEnsRouteEntryOutcomeCallable;
781788
typedef std::function<void(const EnsClient*, const Model::DeleteEnsRouteEntryRequest&, const DeleteEnsRouteEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEnsRouteEntryAsyncHandler;
@@ -1262,6 +1269,9 @@ namespace AlibabaCloud
12621269
typedef Outcome<Error, Model::ModifySnapshotAttributeResult> ModifySnapshotAttributeOutcome;
12631270
typedef std::future<ModifySnapshotAttributeOutcome> ModifySnapshotAttributeOutcomeCallable;
12641271
typedef std::function<void(const EnsClient*, const Model::ModifySnapshotAttributeRequest&, const ModifySnapshotAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySnapshotAttributeAsyncHandler;
1272+
typedef Outcome<Error, Model::ModifySnatEntryResult> ModifySnatEntryOutcome;
1273+
typedef std::future<ModifySnatEntryOutcome> ModifySnatEntryOutcomeCallable;
1274+
typedef std::function<void(const EnsClient*, const Model::ModifySnatEntryRequest&, const ModifySnatEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySnatEntryAsyncHandler;
12651275
typedef Outcome<Error, Model::ModifyVSwitchAttributeResult> ModifyVSwitchAttributeOutcome;
12661276
typedef std::future<ModifyVSwitchAttributeOutcome> ModifyVSwitchAttributeOutcomeCallable;
12671277
typedef std::function<void(const EnsClient*, const Model::ModifyVSwitchAttributeRequest&, const ModifyVSwitchAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyVSwitchAttributeAsyncHandler;
@@ -1642,6 +1652,9 @@ namespace AlibabaCloud
16421652
DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const;
16431653
void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
16441654
DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const;
1655+
DeleteEipOutcome deleteEip(const Model::DeleteEipRequest &request)const;
1656+
void deleteEipAsync(const Model::DeleteEipRequest& request, const DeleteEipAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
1657+
DeleteEipOutcomeCallable deleteEipCallable(const Model::DeleteEipRequest& request) const;
16451658
DeleteEnsRouteEntryOutcome deleteEnsRouteEntry(const Model::DeleteEnsRouteEntryRequest &request)const;
16461659
void deleteEnsRouteEntryAsync(const Model::DeleteEnsRouteEntryRequest& request, const DeleteEnsRouteEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
16471660
DeleteEnsRouteEntryOutcomeCallable deleteEnsRouteEntryCallable(const Model::DeleteEnsRouteEntryRequest& request) const;
@@ -2128,6 +2141,9 @@ namespace AlibabaCloud
21282141
ModifySnapshotAttributeOutcome modifySnapshotAttribute(const Model::ModifySnapshotAttributeRequest &request)const;
21292142
void modifySnapshotAttributeAsync(const Model::ModifySnapshotAttributeRequest& request, const ModifySnapshotAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
21302143
ModifySnapshotAttributeOutcomeCallable modifySnapshotAttributeCallable(const Model::ModifySnapshotAttributeRequest& request) const;
2144+
ModifySnatEntryOutcome modifySnatEntry(const Model::ModifySnatEntryRequest &request)const;
2145+
void modifySnatEntryAsync(const Model::ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
2146+
ModifySnatEntryOutcomeCallable modifySnatEntryCallable(const Model::ModifySnatEntryRequest& request) const;
21312147
ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const;
21322148
void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
21332149
ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const;

ens/include/alibabacloud/ens/model/CreateSnatEntryRequest.h

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ class ALIBABACLOUD_ENS_EXPORT CreateSnatEntryRequest : public RpcServiceRequest
5050
void setIdleTimeout(int idleTimeout);
5151
std::string getSnatEntryName() const;
5252
void setSnatEntryName(const std::string &snatEntryName);
53+
bool getIspAffinity() const;
54+
void setIspAffinity(bool ispAffinity);
5355

5456
private:
5557
std::string snatIp_;
@@ -62,6 +64,7 @@ class ALIBABACLOUD_ENS_EXPORT CreateSnatEntryRequest : public RpcServiceRequest
6264
std::string natGatewayId_;
6365
int idleTimeout_;
6466
std::string snatEntryName_;
67+
bool ispAffinity_;
6568
};
6669
} // namespace Model
6770
} // namespace Ens
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_ENS_MODEL_DELETEEIPREQUEST_H_
18+
#define ALIBABACLOUD_ENS_MODEL_DELETEEIPREQUEST_H_
19+
20+
#include <alibabacloud/ens/EnsExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Ens {
28+
namespace Model {
29+
class ALIBABACLOUD_ENS_EXPORT DeleteEipRequest : public RpcServiceRequest {
30+
public:
31+
DeleteEipRequest();
32+
~DeleteEipRequest();
33+
std::string getInstanceId() const;
34+
void setInstanceId(const std::string &instanceId);
35+
36+
private:
37+
std::string instanceId_;
38+
};
39+
} // namespace Model
40+
} // namespace Ens
41+
} // namespace AlibabaCloud
42+
#endif // !ALIBABACLOUD_ENS_MODEL_DELETEEIPREQUEST_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_ENS_MODEL_DELETEEIPRESULT_H_
18+
#define ALIBABACLOUD_ENS_MODEL_DELETEEIPRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/ens/EnsExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Ens
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_ENS_EXPORT DeleteEipResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
DeleteEipResult();
38+
explicit DeleteEipResult(const std::string &payload);
39+
~DeleteEipResult();
40+
41+
protected:
42+
void parse(const std::string &payload);
43+
private:
44+
45+
};
46+
}
47+
}
48+
}
49+
#endif // !ALIBABACLOUD_ENS_MODEL_DELETEEIPRESULT_H_

ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class ALIBABACLOUD_ENS_EXPORT DescribeInstancesRequest : public RpcServiceReques
3434
};
3535
DescribeInstancesRequest();
3636
~DescribeInstancesRequest();
37+
std::vector<std::string> getServiceStatus() const;
38+
void setServiceStatus(const std::vector<std::string> &serviceStatus);
3739
std::string getOrderByParams() const;
3840
void setOrderByParams(const std::string &orderByParams);
3941
std::string getEnsRegionId() const;
@@ -74,6 +76,7 @@ class ALIBABACLOUD_ENS_EXPORT DescribeInstancesRequest : public RpcServiceReques
7476
void setEnsRegionIds(const std::string &ensRegionIds);
7577

7678
private:
79+
std::vector<std::string> serviceStatus_;
7780
std::string orderByParams_;
7881
std::string ensRegionId_;
7982
std::string instanceResourceType_;

ens/include/alibabacloud/ens/model/DescribeInstancesResult.h

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ namespace AlibabaCloud
111111
std::vector<std::string> publicIpAddress;
112112
NetworkAttributes networkAttributes;
113113
std::vector<std::string> innerIpAddress;
114+
std::string serviceStatus;
114115
std::vector<Instance::NetworkInterfacesItem> networkInterfaces;
115116
std::string expiredTime;
116117
std::string imageId;

ens/include/alibabacloud/ens/model/DescribeSnatAttributeResult.h

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ namespace AlibabaCloud
5252
std::string getDestCIDR()const;
5353
std::string getSnatEntryName()const;
5454
std::string getCreationTime()const;
55+
bool getIspAffinity()const;
5556
std::vector<Snatip> getSnatIps()const;
5657
std::string getSnatEntryId()const;
5758
std::string getStandbyStatus()const;
@@ -69,6 +70,7 @@ namespace AlibabaCloud
6970
std::string destCIDR_;
7071
std::string snatEntryName_;
7172
std::string creationTime_;
73+
bool ispAffinity_;
7274
std::vector<Snatip> snatIps_;
7375
std::string snatEntryId_;
7476
std::string standbyStatus_;

ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesResult.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,18 @@ namespace AlibabaCloud
4242
bool standby;
4343
};
4444
std::string status;
45+
std::string sourceCIDR;
46+
int idleTimeout;
47+
std::string snatIp;
48+
std::string standbySnatIp;
4549
std::string type;
4650
std::string destCIDR;
4751
std::string snatEntryName;
48-
std::string sourceCIDR;
52+
bool ispAffinity;
4953
std::vector<SnatTableEntry::SnatIp> snatIps;
5054
std::string snatEntryId;
51-
int idleTimeout;
52-
std::string snatIp;
5355
std::string standbyStatus;
5456
std::string natGatewayId;
55-
std::string standbySnatIp;
5657
};
5758

5859

ens/include/alibabacloud/ens/model/ListObjectsResult.h

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ namespace AlibabaCloud
4040
long size;
4141
std::string key;
4242
};
43+
struct CommonPrefixInfo
44+
{
45+
std::string lastModified;
46+
std::string prefix;
47+
};
4348

4449

4550
ListObjectsResult();
@@ -53,6 +58,7 @@ namespace AlibabaCloud
5358
bool getIsTruncated()const;
5459
std::string getPrefix()const;
5560
std::string getMarker()const;
61+
std::vector<CommonPrefixInfo> getCommonPrefixInfos()const;
5662
std::vector<Content> getContents()const;
5763
std::string getBucketName()const;
5864
long getKeyCount()const;
@@ -70,6 +76,7 @@ namespace AlibabaCloud
7076
bool isTruncated_;
7177
std::string prefix_;
7278
std::string marker_;
79+
std::vector<CommonPrefixInfo> commonPrefixInfos_;
7380
std::vector<Content> contents_;
7481
std::string bucketName_;
7582
long keyCount_;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYSNATENTRYREQUEST_H_
18+
#define ALIBABACLOUD_ENS_MODEL_MODIFYSNATENTRYREQUEST_H_
19+
20+
#include <alibabacloud/ens/EnsExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Ens {
28+
namespace Model {
29+
class ALIBABACLOUD_ENS_EXPORT ModifySnatEntryRequest : public RpcServiceRequest {
30+
public:
31+
ModifySnatEntryRequest();
32+
~ModifySnatEntryRequest();
33+
std::string getSnatEntryId() const;
34+
void setSnatEntryId(const std::string &snatEntryId);
35+
std::string getSnatEntryName() const;
36+
void setSnatEntryName(const std::string &snatEntryName);
37+
bool getIspAffinity() const;
38+
void setIspAffinity(bool ispAffinity);
39+
40+
private:
41+
std::string snatEntryId_;
42+
std::string snatEntryName_;
43+
bool ispAffinity_;
44+
};
45+
} // namespace Model
46+
} // namespace Ens
47+
} // namespace AlibabaCloud
48+
#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYSNATENTRYREQUEST_H_

0 commit comments

Comments
 (0)