Skip to content

Commit

Permalink
-Supported DeleteEip
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 25, 2024
1 parent 1d10996 commit 0c2f5f4
Show file tree
Hide file tree
Showing 24 changed files with 530 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.36.2033
1.36.2034
8 changes: 8 additions & 0 deletions ens/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ set(ens_public_header_model
include/alibabacloud/ens/model/DeleteDeviceInternetPortResult.h
include/alibabacloud/ens/model/DeleteDiskRequest.h
include/alibabacloud/ens/model/DeleteDiskResult.h
include/alibabacloud/ens/model/DeleteEipRequest.h
include/alibabacloud/ens/model/DeleteEipResult.h
include/alibabacloud/ens/model/DeleteEnsRouteEntryRequest.h
include/alibabacloud/ens/model/DeleteEnsRouteEntryResult.h
include/alibabacloud/ens/model/DeleteEnsSaleConditionControlRequest.h
Expand Down Expand Up @@ -459,6 +461,8 @@ set(ens_public_header_model
include/alibabacloud/ens/model/ModifySecurityGroupAttributeResult.h
include/alibabacloud/ens/model/ModifySnapshotAttributeRequest.h
include/alibabacloud/ens/model/ModifySnapshotAttributeResult.h
include/alibabacloud/ens/model/ModifySnatEntryRequest.h
include/alibabacloud/ens/model/ModifySnatEntryResult.h
include/alibabacloud/ens/model/ModifyVSwitchAttributeRequest.h
include/alibabacloud/ens/model/ModifyVSwitchAttributeResult.h
include/alibabacloud/ens/model/MountInstanceSDGRequest.h
Expand Down Expand Up @@ -712,6 +716,8 @@ set(ens_src
src/model/DeleteDeviceInternetPortResult.cc
src/model/DeleteDiskRequest.cc
src/model/DeleteDiskResult.cc
src/model/DeleteEipRequest.cc
src/model/DeleteEipResult.cc
src/model/DeleteEnsRouteEntryRequest.cc
src/model/DeleteEnsRouteEntryResult.cc
src/model/DeleteEnsSaleConditionControlRequest.cc
Expand Down Expand Up @@ -1036,6 +1042,8 @@ set(ens_src
src/model/ModifySecurityGroupAttributeResult.cc
src/model/ModifySnapshotAttributeRequest.cc
src/model/ModifySnapshotAttributeResult.cc
src/model/ModifySnatEntryRequest.cc
src/model/ModifySnatEntryResult.cc
src/model/ModifyVSwitchAttributeRequest.cc
src/model/ModifyVSwitchAttributeResult.cc
src/model/MountInstanceSDGRequest.cc
Expand Down
16 changes: 16 additions & 0 deletions ens/include/alibabacloud/ens/EnsClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@
#include "model/DeleteDeviceInternetPortResult.h"
#include "model/DeleteDiskRequest.h"
#include "model/DeleteDiskResult.h"
#include "model/DeleteEipRequest.h"
#include "model/DeleteEipResult.h"
#include "model/DeleteEnsRouteEntryRequest.h"
#include "model/DeleteEnsRouteEntryResult.h"
#include "model/DeleteEnsSaleConditionControlRequest.h"
Expand Down Expand Up @@ -460,6 +462,8 @@
#include "model/ModifySecurityGroupAttributeResult.h"
#include "model/ModifySnapshotAttributeRequest.h"
#include "model/ModifySnapshotAttributeResult.h"
#include "model/ModifySnatEntryRequest.h"
#include "model/ModifySnatEntryResult.h"
#include "model/ModifyVSwitchAttributeRequest.h"
#include "model/ModifyVSwitchAttributeResult.h"
#include "model/MountInstanceSDGRequest.h"
Expand Down Expand Up @@ -776,6 +780,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteDiskResult> DeleteDiskOutcome;
typedef std::future<DeleteDiskOutcome> DeleteDiskOutcomeCallable;
typedef std::function<void(const EnsClient*, const Model::DeleteDiskRequest&, const DeleteDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiskAsyncHandler;
typedef Outcome<Error, Model::DeleteEipResult> DeleteEipOutcome;
typedef std::future<DeleteEipOutcome> DeleteEipOutcomeCallable;
typedef std::function<void(const EnsClient*, const Model::DeleteEipRequest&, const DeleteEipOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEipAsyncHandler;
typedef Outcome<Error, Model::DeleteEnsRouteEntryResult> DeleteEnsRouteEntryOutcome;
typedef std::future<DeleteEnsRouteEntryOutcome> DeleteEnsRouteEntryOutcomeCallable;
typedef std::function<void(const EnsClient*, const Model::DeleteEnsRouteEntryRequest&, const DeleteEnsRouteEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEnsRouteEntryAsyncHandler;
Expand Down Expand Up @@ -1262,6 +1269,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifySnapshotAttributeResult> ModifySnapshotAttributeOutcome;
typedef std::future<ModifySnapshotAttributeOutcome> ModifySnapshotAttributeOutcomeCallable;
typedef std::function<void(const EnsClient*, const Model::ModifySnapshotAttributeRequest&, const ModifySnapshotAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySnapshotAttributeAsyncHandler;
typedef Outcome<Error, Model::ModifySnatEntryResult> ModifySnatEntryOutcome;
typedef std::future<ModifySnatEntryOutcome> ModifySnatEntryOutcomeCallable;
typedef std::function<void(const EnsClient*, const Model::ModifySnatEntryRequest&, const ModifySnatEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySnatEntryAsyncHandler;
typedef Outcome<Error, Model::ModifyVSwitchAttributeResult> ModifyVSwitchAttributeOutcome;
typedef std::future<ModifyVSwitchAttributeOutcome> ModifyVSwitchAttributeOutcomeCallable;
typedef std::function<void(const EnsClient*, const Model::ModifyVSwitchAttributeRequest&, const ModifyVSwitchAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyVSwitchAttributeAsyncHandler;
Expand Down Expand Up @@ -1642,6 +1652,9 @@ namespace AlibabaCloud
DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const;
void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const;
DeleteEipOutcome deleteEip(const Model::DeleteEipRequest &request)const;
void deleteEipAsync(const Model::DeleteEipRequest& request, const DeleteEipAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteEipOutcomeCallable deleteEipCallable(const Model::DeleteEipRequest& request) const;
DeleteEnsRouteEntryOutcome deleteEnsRouteEntry(const Model::DeleteEnsRouteEntryRequest &request)const;
void deleteEnsRouteEntryAsync(const Model::DeleteEnsRouteEntryRequest& request, const DeleteEnsRouteEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteEnsRouteEntryOutcomeCallable deleteEnsRouteEntryCallable(const Model::DeleteEnsRouteEntryRequest& request) const;
Expand Down Expand Up @@ -2128,6 +2141,9 @@ namespace AlibabaCloud
ModifySnapshotAttributeOutcome modifySnapshotAttribute(const Model::ModifySnapshotAttributeRequest &request)const;
void modifySnapshotAttributeAsync(const Model::ModifySnapshotAttributeRequest& request, const ModifySnapshotAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifySnapshotAttributeOutcomeCallable modifySnapshotAttributeCallable(const Model::ModifySnapshotAttributeRequest& request) const;
ModifySnatEntryOutcome modifySnatEntry(const Model::ModifySnatEntryRequest &request)const;
void modifySnatEntryAsync(const Model::ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifySnatEntryOutcomeCallable modifySnatEntryCallable(const Model::ModifySnatEntryRequest& request) const;
ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const;
void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const;
Expand Down
3 changes: 3 additions & 0 deletions ens/include/alibabacloud/ens/model/CreateSnatEntryRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class ALIBABACLOUD_ENS_EXPORT CreateSnatEntryRequest : public RpcServiceRequest
void setIdleTimeout(int idleTimeout);
std::string getSnatEntryName() const;
void setSnatEntryName(const std::string &snatEntryName);
bool getIspAffinity() const;
void setIspAffinity(bool ispAffinity);

private:
std::string snatIp_;
Expand All @@ -62,6 +64,7 @@ class ALIBABACLOUD_ENS_EXPORT CreateSnatEntryRequest : public RpcServiceRequest
std::string natGatewayId_;
int idleTimeout_;
std::string snatEntryName_;
bool ispAffinity_;
};
} // namespace Model
} // namespace Ens
Expand Down
42 changes: 42 additions & 0 deletions ens/include/alibabacloud/ens/model/DeleteEipRequest.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ALIBABACLOUD_ENS_MODEL_DELETEEIPREQUEST_H_
#define ALIBABACLOUD_ENS_MODEL_DELETEEIPREQUEST_H_

#include <alibabacloud/ens/EnsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>

namespace AlibabaCloud {
namespace Ens {
namespace Model {
class ALIBABACLOUD_ENS_EXPORT DeleteEipRequest : public RpcServiceRequest {
public:
DeleteEipRequest();
~DeleteEipRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);

private:
std::string instanceId_;
};
} // namespace Model
} // namespace Ens
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ENS_MODEL_DELETEEIPREQUEST_H_
49 changes: 49 additions & 0 deletions ens/include/alibabacloud/ens/model/DeleteEipResult.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ALIBABACLOUD_ENS_MODEL_DELETEEIPRESULT_H_
#define ALIBABACLOUD_ENS_MODEL_DELETEEIPRESULT_H_

#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ens/EnsExport.h>

namespace AlibabaCloud
{
namespace Ens
{
namespace Model
{
class ALIBABACLOUD_ENS_EXPORT DeleteEipResult : public ServiceResult
{
public:


DeleteEipResult();
explicit DeleteEipResult(const std::string &payload);
~DeleteEipResult();

protected:
void parse(const std::string &payload);
private:

};
}
}
}
#endif // !ALIBABACLOUD_ENS_MODEL_DELETEEIPRESULT_H_
3 changes: 3 additions & 0 deletions ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class ALIBABACLOUD_ENS_EXPORT DescribeInstancesRequest : public RpcServiceReques
};
DescribeInstancesRequest();
~DescribeInstancesRequest();
std::vector<std::string> getServiceStatus() const;
void setServiceStatus(const std::vector<std::string> &serviceStatus);
std::string getOrderByParams() const;
void setOrderByParams(const std::string &orderByParams);
std::string getEnsRegionId() const;
Expand Down Expand Up @@ -74,6 +76,7 @@ class ALIBABACLOUD_ENS_EXPORT DescribeInstancesRequest : public RpcServiceReques
void setEnsRegionIds(const std::string &ensRegionIds);

private:
std::vector<std::string> serviceStatus_;
std::string orderByParams_;
std::string ensRegionId_;
std::string instanceResourceType_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ namespace AlibabaCloud
std::vector<std::string> publicIpAddress;
NetworkAttributes networkAttributes;
std::vector<std::string> innerIpAddress;
std::string serviceStatus;
std::vector<Instance::NetworkInterfacesItem> networkInterfaces;
std::string expiredTime;
std::string imageId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace AlibabaCloud
std::string getDestCIDR()const;
std::string getSnatEntryName()const;
std::string getCreationTime()const;
bool getIspAffinity()const;
std::vector<Snatip> getSnatIps()const;
std::string getSnatEntryId()const;
std::string getStandbyStatus()const;
Expand All @@ -69,6 +70,7 @@ namespace AlibabaCloud
std::string destCIDR_;
std::string snatEntryName_;
std::string creationTime_;
bool ispAffinity_;
std::vector<Snatip> snatIps_;
std::string snatEntryId_;
std::string standbyStatus_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,18 @@ namespace AlibabaCloud
bool standby;
};
std::string status;
std::string sourceCIDR;
int idleTimeout;
std::string snatIp;
std::string standbySnatIp;
std::string type;
std::string destCIDR;
std::string snatEntryName;
std::string sourceCIDR;
bool ispAffinity;
std::vector<SnatTableEntry::SnatIp> snatIps;
std::string snatEntryId;
int idleTimeout;
std::string snatIp;
std::string standbyStatus;
std::string natGatewayId;
std::string standbySnatIp;
};


Expand Down
7 changes: 7 additions & 0 deletions ens/include/alibabacloud/ens/model/ListObjectsResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ namespace AlibabaCloud
long size;
std::string key;
};
struct CommonPrefixInfo
{
std::string lastModified;
std::string prefix;
};


ListObjectsResult();
Expand All @@ -53,6 +58,7 @@ namespace AlibabaCloud
bool getIsTruncated()const;
std::string getPrefix()const;
std::string getMarker()const;
std::vector<CommonPrefixInfo> getCommonPrefixInfos()const;
std::vector<Content> getContents()const;
std::string getBucketName()const;
long getKeyCount()const;
Expand All @@ -70,6 +76,7 @@ namespace AlibabaCloud
bool isTruncated_;
std::string prefix_;
std::string marker_;
std::vector<CommonPrefixInfo> commonPrefixInfos_;
std::vector<Content> contents_;
std::string bucketName_;
long keyCount_;
Expand Down
48 changes: 48 additions & 0 deletions ens/include/alibabacloud/ens/model/ModifySnatEntryRequest.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYSNATENTRYREQUEST_H_
#define ALIBABACLOUD_ENS_MODEL_MODIFYSNATENTRYREQUEST_H_

#include <alibabacloud/ens/EnsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>

namespace AlibabaCloud {
namespace Ens {
namespace Model {
class ALIBABACLOUD_ENS_EXPORT ModifySnatEntryRequest : public RpcServiceRequest {
public:
ModifySnatEntryRequest();
~ModifySnatEntryRequest();
std::string getSnatEntryId() const;
void setSnatEntryId(const std::string &snatEntryId);
std::string getSnatEntryName() const;
void setSnatEntryName(const std::string &snatEntryName);
bool getIspAffinity() const;
void setIspAffinity(bool ispAffinity);

private:
std::string snatEntryId_;
std::string snatEntryName_;
bool ispAffinity_;
};
} // namespace Model
} // namespace Ens
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYSNATENTRYREQUEST_H_
Loading

0 comments on commit 0c2f5f4

Please sign in to comment.