Supported delete snapshots.
This commit is contained in:
@@ -26,6 +26,10 @@
|
||||
#include "model/AddTagsBatchResult.h"
|
||||
#include "model/AttachDbfsRequest.h"
|
||||
#include "model/AttachDbfsResult.h"
|
||||
#include "model/CancelAutoSnapshotPolicyRequest.h"
|
||||
#include "model/CancelAutoSnapshotPolicyResult.h"
|
||||
#include "model/CreateAutoSnapshotPolicyRequest.h"
|
||||
#include "model/CreateAutoSnapshotPolicyResult.h"
|
||||
#include "model/CreateDbfsRequest.h"
|
||||
#include "model/CreateDbfsResult.h"
|
||||
#include "model/CreateServiceLinkedRoleRequest.h"
|
||||
@@ -83,6 +87,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AttachDbfsResult> AttachDbfsOutcome;
|
||||
typedef std::future<AttachDbfsOutcome> AttachDbfsOutcomeCallable;
|
||||
typedef std::function<void(const DBFSClient*, const Model::AttachDbfsRequest&, const AttachDbfsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachDbfsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelAutoSnapshotPolicyResult> CancelAutoSnapshotPolicyOutcome;
|
||||
typedef std::future<CancelAutoSnapshotPolicyOutcome> CancelAutoSnapshotPolicyOutcomeCallable;
|
||||
typedef std::function<void(const DBFSClient*, const Model::CancelAutoSnapshotPolicyRequest&, const CancelAutoSnapshotPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelAutoSnapshotPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAutoSnapshotPolicyResult> CreateAutoSnapshotPolicyOutcome;
|
||||
typedef std::future<CreateAutoSnapshotPolicyOutcome> CreateAutoSnapshotPolicyOutcomeCallable;
|
||||
typedef std::function<void(const DBFSClient*, const Model::CreateAutoSnapshotPolicyRequest&, const CreateAutoSnapshotPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAutoSnapshotPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDbfsResult> CreateDbfsOutcome;
|
||||
typedef std::future<CreateDbfsOutcome> CreateDbfsOutcomeCallable;
|
||||
typedef std::function<void(const DBFSClient*, const Model::CreateDbfsRequest&, const CreateDbfsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDbfsAsyncHandler;
|
||||
@@ -157,6 +167,12 @@ namespace AlibabaCloud
|
||||
AttachDbfsOutcome attachDbfs(const Model::AttachDbfsRequest &request)const;
|
||||
void attachDbfsAsync(const Model::AttachDbfsRequest& request, const AttachDbfsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachDbfsOutcomeCallable attachDbfsCallable(const Model::AttachDbfsRequest& request) const;
|
||||
CancelAutoSnapshotPolicyOutcome cancelAutoSnapshotPolicy(const Model::CancelAutoSnapshotPolicyRequest &request)const;
|
||||
void cancelAutoSnapshotPolicyAsync(const Model::CancelAutoSnapshotPolicyRequest& request, const CancelAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelAutoSnapshotPolicyOutcomeCallable cancelAutoSnapshotPolicyCallable(const Model::CancelAutoSnapshotPolicyRequest& request) const;
|
||||
CreateAutoSnapshotPolicyOutcome createAutoSnapshotPolicy(const Model::CreateAutoSnapshotPolicyRequest &request)const;
|
||||
void createAutoSnapshotPolicyAsync(const Model::CreateAutoSnapshotPolicyRequest& request, const CreateAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAutoSnapshotPolicyOutcomeCallable createAutoSnapshotPolicyCallable(const Model::CreateAutoSnapshotPolicyRequest& request) const;
|
||||
CreateDbfsOutcome createDbfs(const Model::CreateDbfsRequest &request)const;
|
||||
void createDbfsAsync(const Model::CreateDbfsRequest& request, const CreateDbfsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDbfsOutcomeCallable createDbfsCallable(const Model::CreateDbfsRequest& request) const;
|
||||
|
||||
@@ -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_DBFS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_DBFS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dbfs/DBFSExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace DBFS {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DBFS_EXPORT CancelAutoSnapshotPolicyRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CancelAutoSnapshotPolicyRequest();
|
||||
~CancelAutoSnapshotPolicyRequest();
|
||||
std::vector<std::string> getDbfsIds() const;
|
||||
void setDbfsIds(const std::vector<std::string> &dbfsIds);
|
||||
std::string getPolicyId() const;
|
||||
void setPolicyId(const std::string &policyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> dbfsIds_;
|
||||
std::string policyId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace DBFS
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DBFS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
@@ -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_DBFS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_DBFS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbfs/DBFSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DBFS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBFS_EXPORT CancelAutoSnapshotPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CancelAutoSnapshotPolicyResult();
|
||||
explicit CancelAutoSnapshotPolicyResult(const std::string &payload);
|
||||
~CancelAutoSnapshotPolicyResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBFS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DBFS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_DBFS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dbfs/DBFSExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace DBFS {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DBFS_EXPORT CreateAutoSnapshotPolicyRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateAutoSnapshotPolicyRequest();
|
||||
~CreateAutoSnapshotPolicyRequest();
|
||||
std::vector<std::string> getTimePoints() const;
|
||||
void setTimePoints(const std::vector<std::string> &timePoints);
|
||||
std::vector<std::string> getRepeatWeekdays() const;
|
||||
void setRepeatWeekdays(const std::vector<std::string> &repeatWeekdays);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getPolicyName() const;
|
||||
void setPolicyName(const std::string &policyName);
|
||||
int getRetentionDays() const;
|
||||
void setRetentionDays(int retentionDays);
|
||||
|
||||
private:
|
||||
std::vector<std::string> timePoints_;
|
||||
std::vector<std::string> repeatWeekdays_;
|
||||
std::string regionId_;
|
||||
std::string policyName_;
|
||||
int retentionDays_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace DBFS
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DBFS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_DBFS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_DBFS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbfs/DBFSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DBFS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBFS_EXPORT CreateAutoSnapshotPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAutoSnapshotPolicyResult();
|
||||
explicit CreateAutoSnapshotPolicyResult(const std::string &payload);
|
||||
~CreateAutoSnapshotPolicyResult();
|
||||
std::string getPolicyId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string policyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBFS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
Reference in New Issue
Block a user