Support query dbfs specification.

This commit is contained in:
sdk-team
2021-08-12 11:40:09 +00:00
parent 109a880552
commit 835983db86
9 changed files with 280 additions and 1 deletions

View File

@@ -44,6 +44,8 @@
#include "model/DeleteSnapshotResult.h"
#include "model/DeleteTagsBatchRequest.h"
#include "model/DeleteTagsBatchResult.h"
#include "model/DescribeDbfsSpecificationsRequest.h"
#include "model/DescribeDbfsSpecificationsResult.h"
#include "model/DetachDbfsRequest.h"
#include "model/DetachDbfsResult.h"
#include "model/GenerateUpgradeRecordRequest.h"
@@ -128,6 +130,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteTagsBatchResult> DeleteTagsBatchOutcome;
typedef std::future<DeleteTagsBatchOutcome> DeleteTagsBatchOutcomeCallable;
typedef std::function<void(const DBFSClient*, const Model::DeleteTagsBatchRequest&, const DeleteTagsBatchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTagsBatchAsyncHandler;
typedef Outcome<Error, Model::DescribeDbfsSpecificationsResult> DescribeDbfsSpecificationsOutcome;
typedef std::future<DescribeDbfsSpecificationsOutcome> DescribeDbfsSpecificationsOutcomeCallable;
typedef std::function<void(const DBFSClient*, const Model::DescribeDbfsSpecificationsRequest&, const DescribeDbfsSpecificationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDbfsSpecificationsAsyncHandler;
typedef Outcome<Error, Model::DetachDbfsResult> DetachDbfsOutcome;
typedef std::future<DetachDbfsOutcome> DetachDbfsOutcomeCallable;
typedef std::function<void(const DBFSClient*, const Model::DetachDbfsRequest&, const DetachDbfsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachDbfsAsyncHandler;
@@ -229,6 +234,9 @@ namespace AlibabaCloud
DeleteTagsBatchOutcome deleteTagsBatch(const Model::DeleteTagsBatchRequest &request)const;
void deleteTagsBatchAsync(const Model::DeleteTagsBatchRequest& request, const DeleteTagsBatchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteTagsBatchOutcomeCallable deleteTagsBatchCallable(const Model::DeleteTagsBatchRequest& request) const;
DescribeDbfsSpecificationsOutcome describeDbfsSpecifications(const Model::DescribeDbfsSpecificationsRequest &request)const;
void describeDbfsSpecificationsAsync(const Model::DescribeDbfsSpecificationsRequest& request, const DescribeDbfsSpecificationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDbfsSpecificationsOutcomeCallable describeDbfsSpecificationsCallable(const Model::DescribeDbfsSpecificationsRequest& request) const;
DetachDbfsOutcome detachDbfs(const Model::DetachDbfsRequest &request)const;
void detachDbfsAsync(const Model::DetachDbfsRequest& request, const DetachDbfsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachDbfsOutcomeCallable detachDbfsCallable(const Model::DetachDbfsRequest& request) const;

View File

@@ -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_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_
#define ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbfs/DBFSExport.h>
namespace AlibabaCloud
{
namespace DBFS
{
namespace Model
{
class ALIBABACLOUD_DBFS_EXPORT DescribeDbfsSpecificationsRequest : public RpcServiceRequest
{
public:
DescribeDbfsSpecificationsRequest();
~DescribeDbfsSpecificationsRequest();
std::string getEcsInstanceType()const;
void setEcsInstanceType(const std::string& ecsInstanceType);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getCategory()const;
void setCategory(const std::string& category);
private:
std::string ecsInstanceType_;
std::string regionId_;
std::string category_;
};
}
}
}
#endif // !ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_DESCRIBEDBFSSPECIFICATIONSRESULT_H_
#define ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSRESULT_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 DescribeDbfsSpecificationsResult : public ServiceResult
{
public:
DescribeDbfsSpecificationsResult();
explicit DescribeDbfsSpecificationsResult(const std::string &payload);
~DescribeDbfsSpecificationsResult();
std::string getMaxDbfsNumberPerEcs()const;
std::vector<std::string> getSupportedEcsInstanceTypeFamily()const;
protected:
void parse(const std::string &payload);
private:
std::string maxDbfsNumberPerEcs_;
std::vector<std::string> supportedEcsInstanceTypeFamily_;
};
}
}
}
#endif // !ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSRESULT_H_