Add DescribeDBClusterSSL.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2020-02-15 Version 1.36.275
|
||||
- Add DescribeDBClusterSSL.
|
||||
- Add ModifyDBClusterSSL.
|
||||
|
||||
2020-02-14 Version 1.36.274
|
||||
- Update default endpoints.
|
||||
|
||||
|
||||
@@ -73,6 +73,8 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterPerformanceResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterSSLRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterSSLResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClustersRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClustersResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBNodePerformanceRequest.h
|
||||
@@ -111,6 +113,8 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterParametersResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterSSLRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterSSLResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBDescriptionRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBDescriptionResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h
|
||||
@@ -182,6 +186,8 @@ set(polardb_src
|
||||
src/model/DescribeDBClusterParametersResult.cc
|
||||
src/model/DescribeDBClusterPerformanceRequest.cc
|
||||
src/model/DescribeDBClusterPerformanceResult.cc
|
||||
src/model/DescribeDBClusterSSLRequest.cc
|
||||
src/model/DescribeDBClusterSSLResult.cc
|
||||
src/model/DescribeDBClustersRequest.cc
|
||||
src/model/DescribeDBClustersResult.cc
|
||||
src/model/DescribeDBNodePerformanceRequest.cc
|
||||
@@ -220,6 +226,8 @@ set(polardb_src
|
||||
src/model/ModifyDBClusterMigrationResult.cc
|
||||
src/model/ModifyDBClusterParametersRequest.cc
|
||||
src/model/ModifyDBClusterParametersResult.cc
|
||||
src/model/ModifyDBClusterSSLRequest.cc
|
||||
src/model/ModifyDBClusterSSLResult.cc
|
||||
src/model/ModifyDBDescriptionRequest.cc
|
||||
src/model/ModifyDBDescriptionResult.cc
|
||||
src/model/ModifyDBEndpointAddressRequest.cc
|
||||
|
||||
@@ -74,6 +74,8 @@
|
||||
#include "model/DescribeDBClusterParametersResult.h"
|
||||
#include "model/DescribeDBClusterPerformanceRequest.h"
|
||||
#include "model/DescribeDBClusterPerformanceResult.h"
|
||||
#include "model/DescribeDBClusterSSLRequest.h"
|
||||
#include "model/DescribeDBClusterSSLResult.h"
|
||||
#include "model/DescribeDBClustersRequest.h"
|
||||
#include "model/DescribeDBClustersResult.h"
|
||||
#include "model/DescribeDBNodePerformanceRequest.h"
|
||||
@@ -112,6 +114,8 @@
|
||||
#include "model/ModifyDBClusterMigrationResult.h"
|
||||
#include "model/ModifyDBClusterParametersRequest.h"
|
||||
#include "model/ModifyDBClusterParametersResult.h"
|
||||
#include "model/ModifyDBClusterSSLRequest.h"
|
||||
#include "model/ModifyDBClusterSSLResult.h"
|
||||
#include "model/ModifyDBDescriptionRequest.h"
|
||||
#include "model/ModifyDBDescriptionResult.h"
|
||||
#include "model/ModifyDBEndpointAddressRequest.h"
|
||||
@@ -215,6 +219,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDBClusterPerformanceResult> DescribeDBClusterPerformanceOutcome;
|
||||
typedef std::future<DescribeDBClusterPerformanceOutcome> DescribeDBClusterPerformanceOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterPerformanceRequest&, const DescribeDBClusterPerformanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterPerformanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterSSLResult> DescribeDBClusterSSLOutcome;
|
||||
typedef std::future<DescribeDBClusterSSLOutcome> DescribeDBClusterSSLOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterSSLRequest&, const DescribeDBClusterSSLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterSSLAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClustersResult> DescribeDBClustersOutcome;
|
||||
typedef std::future<DescribeDBClustersOutcome> DescribeDBClustersOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClustersRequest&, const DescribeDBClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClustersAsyncHandler;
|
||||
@@ -272,6 +279,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDBClusterParametersResult> ModifyDBClusterParametersOutcome;
|
||||
typedef std::future<ModifyDBClusterParametersOutcome> ModifyDBClusterParametersOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterParametersRequest&, const ModifyDBClusterParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterParametersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterSSLResult> ModifyDBClusterSSLOutcome;
|
||||
typedef std::future<ModifyDBClusterSSLOutcome> ModifyDBClusterSSLOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterSSLRequest&, const ModifyDBClusterSSLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterSSLAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBDescriptionResult> ModifyDBDescriptionOutcome;
|
||||
typedef std::future<ModifyDBDescriptionOutcome> ModifyDBDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBDescriptionRequest&, const ModifyDBDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBDescriptionAsyncHandler;
|
||||
@@ -379,6 +389,9 @@ namespace AlibabaCloud
|
||||
DescribeDBClusterPerformanceOutcome describeDBClusterPerformance(const Model::DescribeDBClusterPerformanceRequest &request)const;
|
||||
void describeDBClusterPerformanceAsync(const Model::DescribeDBClusterPerformanceRequest& request, const DescribeDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterPerformanceOutcomeCallable describeDBClusterPerformanceCallable(const Model::DescribeDBClusterPerformanceRequest& request) const;
|
||||
DescribeDBClusterSSLOutcome describeDBClusterSSL(const Model::DescribeDBClusterSSLRequest &request)const;
|
||||
void describeDBClusterSSLAsync(const Model::DescribeDBClusterSSLRequest& request, const DescribeDBClusterSSLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterSSLOutcomeCallable describeDBClusterSSLCallable(const Model::DescribeDBClusterSSLRequest& request) const;
|
||||
DescribeDBClustersOutcome describeDBClusters(const Model::DescribeDBClustersRequest &request)const;
|
||||
void describeDBClustersAsync(const Model::DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClustersOutcomeCallable describeDBClustersCallable(const Model::DescribeDBClustersRequest& request) const;
|
||||
@@ -436,6 +449,9 @@ namespace AlibabaCloud
|
||||
ModifyDBClusterParametersOutcome modifyDBClusterParameters(const Model::ModifyDBClusterParametersRequest &request)const;
|
||||
void modifyDBClusterParametersAsync(const Model::ModifyDBClusterParametersRequest& request, const ModifyDBClusterParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterParametersOutcomeCallable modifyDBClusterParametersCallable(const Model::ModifyDBClusterParametersRequest& request) const;
|
||||
ModifyDBClusterSSLOutcome modifyDBClusterSSL(const Model::ModifyDBClusterSSLRequest &request)const;
|
||||
void modifyDBClusterSSLAsync(const Model::ModifyDBClusterSSLRequest& request, const ModifyDBClusterSSLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterSSLOutcomeCallable modifyDBClusterSSLCallable(const Model::ModifyDBClusterSSLRequest& request) const;
|
||||
ModifyDBDescriptionOutcome modifyDBDescription(const Model::ModifyDBDescriptionRequest &request)const;
|
||||
void modifyDBDescriptionAsync(const Model::ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBDescriptionOutcomeCallable modifyDBDescriptionCallable(const Model::ModifyDBDescriptionRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_POLARDB_MODEL_DESCRIBEDBCLUSTERSSLREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSSLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterSSLRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDBClusterSSLRequest();
|
||||
~DescribeDBClusterSSLRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSSLREQUEST_H_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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_POLARDB_MODEL_DESCRIBEDBCLUSTERSSLRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSSLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterSSLResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Item
|
||||
{
|
||||
std::string sSLConnectionString;
|
||||
std::string sSLExpireTime;
|
||||
std::string dBEndpointId;
|
||||
std::string sSLEnabled;
|
||||
};
|
||||
|
||||
|
||||
DescribeDBClusterSSLResult();
|
||||
explicit DescribeDBClusterSSLResult(const std::string &payload);
|
||||
~DescribeDBClusterSSLResult();
|
||||
std::vector<Item> getItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Item> items_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSSLRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_POLARDB_MODEL_MODIFYDBCLUSTERSSLREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSSLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterSSLRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDBClusterSSLRequest();
|
||||
~ModifyDBClusterSSLRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getDBEndpointId()const;
|
||||
void setDBEndpointId(const std::string& dBEndpointId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getNetType()const;
|
||||
void setNetType(const std::string& netType);
|
||||
std::string getSSLEnabled()const;
|
||||
void setSSLEnabled(const std::string& sSLEnabled);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string dBEndpointId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string netType_;
|
||||
std::string sSLEnabled_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSSLREQUEST_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_POLARDB_MODEL_MODIFYDBCLUSTERSSLRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSSLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterSSLResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDBClusterSSLResult();
|
||||
explicit ModifyDBClusterSSLResult(const std::string &payload);
|
||||
~ModifyDBClusterSSLResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSSLRESULT_H_
|
||||
@@ -987,6 +987,42 @@ PolardbClient::DescribeDBClusterPerformanceOutcomeCallable PolardbClient::descri
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterSSLOutcome PolardbClient::describeDBClusterSSL(const DescribeDBClusterSSLRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBClusterSSLOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBClusterSSLOutcome(DescribeDBClusterSSLResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBClusterSSLOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeDBClusterSSLAsync(const DescribeDBClusterSSLRequest& request, const DescribeDBClusterSSLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBClusterSSL(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterSSLOutcomeCallable PolardbClient::describeDBClusterSSLCallable(const DescribeDBClusterSSLRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBClusterSSLOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBClusterSSL(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClustersOutcome PolardbClient::describeDBClusters(const DescribeDBClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1707,42 @@ PolardbClient::ModifyDBClusterParametersOutcomeCallable PolardbClient::modifyDBC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterSSLOutcome PolardbClient::modifyDBClusterSSL(const ModifyDBClusterSSLRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBClusterSSLOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBClusterSSLOutcome(ModifyDBClusterSSLResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBClusterSSLOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::modifyDBClusterSSLAsync(const ModifyDBClusterSSLRequest& request, const ModifyDBClusterSSLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBClusterSSL(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterSSLOutcomeCallable PolardbClient::modifyDBClusterSSLCallable(const ModifyDBClusterSSLRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBClusterSSLOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBClusterSSL(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBDescriptionOutcome PolardbClient::modifyDBDescription(const ModifyDBDescriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
polardb/src/model/DescribeDBClusterSSLRequest.cc
Normal file
95
polardb/src/model/DescribeDBClusterSSLRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeDBClusterSSLRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeDBClusterSSLRequest;
|
||||
|
||||
DescribeDBClusterSSLRequest::DescribeDBClusterSSLRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterSSL")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterSSLRequest::~DescribeDBClusterSSLRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBClusterSSLRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterSSLRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterSSLRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterSSLRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterSSLRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterSSLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterSSLRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterSSLRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterSSLRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterSSLRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBClusterSSLRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterSSLRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
63
polardb/src/model/DescribeDBClusterSSLResult.cc
Normal file
63
polardb/src/model/DescribeDBClusterSSLResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeDBClusterSSLResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeDBClusterSSLResult::DescribeDBClusterSSLResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterSSLResult::DescribeDBClusterSSLResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterSSLResult::~DescribeDBClusterSSLResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterSSLResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Item"];
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["DBEndpointId"].isNull())
|
||||
itemsObject.dBEndpointId = valueItemsItem["DBEndpointId"].asString();
|
||||
if(!valueItemsItem["SSLEnabled"].isNull())
|
||||
itemsObject.sSLEnabled = valueItemsItem["SSLEnabled"].asString();
|
||||
if(!valueItemsItem["SSLConnectionString"].isNull())
|
||||
itemsObject.sSLConnectionString = valueItemsItem["SSLConnectionString"].asString();
|
||||
if(!valueItemsItem["SSLExpireTime"].isNull())
|
||||
itemsObject.sSLExpireTime = valueItemsItem["SSLExpireTime"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterSSLResult::Item> DescribeDBClusterSSLResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
128
polardb/src/model/ModifyDBClusterSSLRequest.cc
Normal file
128
polardb/src/model/ModifyDBClusterSSLRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/ModifyDBClusterSSLRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::ModifyDBClusterSSLRequest;
|
||||
|
||||
ModifyDBClusterSSLRequest::ModifyDBClusterSSLRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterSSL")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBClusterSSLRequest::~ModifyDBClusterSSLRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBClusterSSLRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getDBEndpointId()const
|
||||
{
|
||||
return dBEndpointId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setDBEndpointId(const std::string& dBEndpointId)
|
||||
{
|
||||
dBEndpointId_ = dBEndpointId;
|
||||
setParameter("DBEndpointId", dBEndpointId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBClusterSSLRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getSSLEnabled()const
|
||||
{
|
||||
return sSLEnabled_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setSSLEnabled(const std::string& sSLEnabled)
|
||||
{
|
||||
sSLEnabled_ = sSLEnabled;
|
||||
setParameter("SSLEnabled", sSLEnabled);
|
||||
}
|
||||
|
||||
44
polardb/src/model/ModifyDBClusterSSLResult.cc
Normal file
44
polardb/src/model/ModifyDBClusterSSLResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/ModifyDBClusterSSLResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
ModifyDBClusterSSLResult::ModifyDBClusterSSLResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBClusterSSLResult::ModifyDBClusterSSLResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBClusterSSLResult::~ModifyDBClusterSSLResult()
|
||||
{}
|
||||
|
||||
void ModifyDBClusterSSLResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user