Add DescribeDBClusterAuditLogCollector.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2020-07-17 Version: 1.36.521
|
||||
- Add DescribeDBClusterAuditLogCollector.
|
||||
- Add DescribeBackupPolicy.
|
||||
- Support polardb for pgsql and oracle customize endpoints.
|
||||
|
||||
2020-07-17 Version: 1.36.520
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
@@ -65,6 +65,8 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h
|
||||
@@ -113,6 +115,8 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h
|
||||
@@ -192,6 +196,8 @@ set(polardb_src
|
||||
src/model/DescribeDBClusterAccessWhitelistResult.cc
|
||||
src/model/DescribeDBClusterAttributeRequest.cc
|
||||
src/model/DescribeDBClusterAttributeResult.cc
|
||||
src/model/DescribeDBClusterAuditLogCollectorRequest.cc
|
||||
src/model/DescribeDBClusterAuditLogCollectorResult.cc
|
||||
src/model/DescribeDBClusterAvailableResourcesRequest.cc
|
||||
src/model/DescribeDBClusterAvailableResourcesResult.cc
|
||||
src/model/DescribeDBClusterEndpointsRequest.cc
|
||||
@@ -240,6 +246,8 @@ set(polardb_src
|
||||
src/model/ModifyBackupPolicyResult.cc
|
||||
src/model/ModifyDBClusterAccessWhitelistRequest.cc
|
||||
src/model/ModifyDBClusterAccessWhitelistResult.cc
|
||||
src/model/ModifyDBClusterAuditLogCollectorRequest.cc
|
||||
src/model/ModifyDBClusterAuditLogCollectorResult.cc
|
||||
src/model/ModifyDBClusterDescriptionRequest.cc
|
||||
src/model/ModifyDBClusterDescriptionResult.cc
|
||||
src/model/ModifyDBClusterEndpointRequest.cc
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
#include "model/DescribeDBClusterAccessWhitelistResult.h"
|
||||
#include "model/DescribeDBClusterAttributeRequest.h"
|
||||
#include "model/DescribeDBClusterAttributeResult.h"
|
||||
#include "model/DescribeDBClusterAuditLogCollectorRequest.h"
|
||||
#include "model/DescribeDBClusterAuditLogCollectorResult.h"
|
||||
#include "model/DescribeDBClusterAvailableResourcesRequest.h"
|
||||
#include "model/DescribeDBClusterAvailableResourcesResult.h"
|
||||
#include "model/DescribeDBClusterEndpointsRequest.h"
|
||||
@@ -114,6 +116,8 @@
|
||||
#include "model/ModifyBackupPolicyResult.h"
|
||||
#include "model/ModifyDBClusterAccessWhitelistRequest.h"
|
||||
#include "model/ModifyDBClusterAccessWhitelistResult.h"
|
||||
#include "model/ModifyDBClusterAuditLogCollectorRequest.h"
|
||||
#include "model/ModifyDBClusterAuditLogCollectorResult.h"
|
||||
#include "model/ModifyDBClusterDescriptionRequest.h"
|
||||
#include "model/ModifyDBClusterDescriptionResult.h"
|
||||
#include "model/ModifyDBClusterEndpointRequest.h"
|
||||
@@ -221,6 +225,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAttributeResult> DescribeDBClusterAttributeOutcome;
|
||||
typedef std::future<DescribeDBClusterAttributeOutcome> DescribeDBClusterAttributeOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterAttributeRequest&, const DescribeDBClusterAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAuditLogCollectorResult> DescribeDBClusterAuditLogCollectorOutcome;
|
||||
typedef std::future<DescribeDBClusterAuditLogCollectorOutcome> DescribeDBClusterAuditLogCollectorOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterAuditLogCollectorRequest&, const DescribeDBClusterAuditLogCollectorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAuditLogCollectorAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAvailableResourcesResult> DescribeDBClusterAvailableResourcesOutcome;
|
||||
typedef std::future<DescribeDBClusterAvailableResourcesOutcome> DescribeDBClusterAvailableResourcesOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterAvailableResourcesRequest&, const DescribeDBClusterAvailableResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAvailableResourcesAsyncHandler;
|
||||
@@ -293,6 +300,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDBClusterAccessWhitelistResult> ModifyDBClusterAccessWhitelistOutcome;
|
||||
typedef std::future<ModifyDBClusterAccessWhitelistOutcome> ModifyDBClusterAccessWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterAccessWhitelistRequest&, const ModifyDBClusterAccessWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAccessWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterAuditLogCollectorResult> ModifyDBClusterAuditLogCollectorOutcome;
|
||||
typedef std::future<ModifyDBClusterAuditLogCollectorOutcome> ModifyDBClusterAuditLogCollectorOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterAuditLogCollectorRequest&, const ModifyDBClusterAuditLogCollectorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAuditLogCollectorAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterDescriptionResult> ModifyDBClusterDescriptionOutcome;
|
||||
typedef std::future<ModifyDBClusterDescriptionOutcome> ModifyDBClusterDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterDescriptionRequest&, const ModifyDBClusterDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterDescriptionAsyncHandler;
|
||||
@@ -412,6 +422,9 @@ namespace AlibabaCloud
|
||||
DescribeDBClusterAttributeOutcome describeDBClusterAttribute(const Model::DescribeDBClusterAttributeRequest &request)const;
|
||||
void describeDBClusterAttributeAsync(const Model::DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAttributeOutcomeCallable describeDBClusterAttributeCallable(const Model::DescribeDBClusterAttributeRequest& request) const;
|
||||
DescribeDBClusterAuditLogCollectorOutcome describeDBClusterAuditLogCollector(const Model::DescribeDBClusterAuditLogCollectorRequest &request)const;
|
||||
void describeDBClusterAuditLogCollectorAsync(const Model::DescribeDBClusterAuditLogCollectorRequest& request, const DescribeDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAuditLogCollectorOutcomeCallable describeDBClusterAuditLogCollectorCallable(const Model::DescribeDBClusterAuditLogCollectorRequest& request) const;
|
||||
DescribeDBClusterAvailableResourcesOutcome describeDBClusterAvailableResources(const Model::DescribeDBClusterAvailableResourcesRequest &request)const;
|
||||
void describeDBClusterAvailableResourcesAsync(const Model::DescribeDBClusterAvailableResourcesRequest& request, const DescribeDBClusterAvailableResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAvailableResourcesOutcomeCallable describeDBClusterAvailableResourcesCallable(const Model::DescribeDBClusterAvailableResourcesRequest& request) const;
|
||||
@@ -484,6 +497,9 @@ namespace AlibabaCloud
|
||||
ModifyDBClusterAccessWhitelistOutcome modifyDBClusterAccessWhitelist(const Model::ModifyDBClusterAccessWhitelistRequest &request)const;
|
||||
void modifyDBClusterAccessWhitelistAsync(const Model::ModifyDBClusterAccessWhitelistRequest& request, const ModifyDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterAccessWhitelistOutcomeCallable modifyDBClusterAccessWhitelistCallable(const Model::ModifyDBClusterAccessWhitelistRequest& request) const;
|
||||
ModifyDBClusterAuditLogCollectorOutcome modifyDBClusterAuditLogCollector(const Model::ModifyDBClusterAuditLogCollectorRequest &request)const;
|
||||
void modifyDBClusterAuditLogCollectorAsync(const Model::ModifyDBClusterAuditLogCollectorRequest& request, const ModifyDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterAuditLogCollectorOutcomeCallable modifyDBClusterAuditLogCollectorCallable(const Model::ModifyDBClusterAuditLogCollectorRequest& request) const;
|
||||
ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const;
|
||||
void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& 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_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_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 DescribeDBClusterAuditLogCollectorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDBClusterAuditLogCollectorRequest();
|
||||
~DescribeDBClusterAuditLogCollectorRequest();
|
||||
|
||||
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_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_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_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_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 DescribeDBClusterAuditLogCollectorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult();
|
||||
explicit DescribeDBClusterAuditLogCollectorResult(const std::string &payload);
|
||||
~DescribeDBClusterAuditLogCollectorResult();
|
||||
std::string getCollectorStatus()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string collectorStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string netType;
|
||||
};
|
||||
std::string dBEndpointId;
|
||||
std::string nodeWithRoles;
|
||||
std::string autoAddNewNodes;
|
||||
std::string endpointType;
|
||||
std::vector<DBEndpoint::Address> addressItems;
|
||||
|
||||
@@ -32,11 +32,42 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterMigrationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DBClusterEndpoint
|
||||
{
|
||||
struct Address
|
||||
{
|
||||
std::string vPCId;
|
||||
std::string port;
|
||||
std::string vSwitchId;
|
||||
std::string connectionString;
|
||||
std::string iPAddress;
|
||||
std::string netType;
|
||||
};
|
||||
std::string dBEndpointId;
|
||||
std::string endpointType;
|
||||
std::vector<DBClusterEndpoint::Address> addressItems;
|
||||
};
|
||||
struct RdsEndpoint
|
||||
{
|
||||
struct Address2
|
||||
{
|
||||
std::string vPCId;
|
||||
std::string port;
|
||||
std::string vSwitchId;
|
||||
std::string connectionString;
|
||||
std::string iPAddress;
|
||||
std::string netType;
|
||||
};
|
||||
std::string dBEndpointId;
|
||||
std::string endpointType;
|
||||
std::vector<RdsEndpoint::Address2> addressItems1;
|
||||
};
|
||||
|
||||
|
||||
DescribeDBClusterMigrationResult();
|
||||
explicit DescribeDBClusterMigrationResult(const std::string &payload);
|
||||
~DescribeDBClusterMigrationResult();
|
||||
std::vector<DBClusterEndpoint> getDBClusterEndpointList()const;
|
||||
std::string getComment()const;
|
||||
std::string getExpiredTime()const;
|
||||
std::string getDBClusterId()const;
|
||||
@@ -46,10 +77,12 @@ namespace AlibabaCloud
|
||||
int getDelayedSeconds()const;
|
||||
std::string getDBClusterReadWriteMode()const;
|
||||
std::string getMigrationStatus()const;
|
||||
std::vector<RdsEndpoint> getRdsEndpointList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DBClusterEndpoint> dBClusterEndpointList_;
|
||||
std::string comment_;
|
||||
std::string expiredTime_;
|
||||
std::string dBClusterId_;
|
||||
@@ -59,6 +92,7 @@ namespace AlibabaCloud
|
||||
int delayedSeconds_;
|
||||
std::string dBClusterReadWriteMode_;
|
||||
std::string migrationStatus_;
|
||||
std::vector<RdsEndpoint> rdsEndpointList_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_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 ModifyDBClusterAuditLogCollectorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDBClusterAuditLogCollectorRequest();
|
||||
~ModifyDBClusterAuditLogCollectorRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
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);
|
||||
std::string getCollectorStatus()const;
|
||||
void setCollectorStatus(const std::string& collectorStatus);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string collectorStatus_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_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_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_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 ModifyDBClusterAuditLogCollectorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult();
|
||||
explicit ModifyDBClusterAuditLogCollectorResult(const std::string &payload);
|
||||
~ModifyDBClusterAuditLogCollectorResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getSourceRDSDBInstanceId()const;
|
||||
void setSourceRDSDBInstanceId(const std::string& sourceRDSDBInstanceId);
|
||||
std::string getSwapConnectionString()const;
|
||||
void setSwapConnectionString(const std::string& swapConnectionString);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string sourceRDSDBInstanceId_;
|
||||
std::string swapConnectionString_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -47,17 +49,15 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string period_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPort()const;
|
||||
void setPort(const std::string& port);
|
||||
std::string getNetType()const;
|
||||
void setNetType(const std::string& netType);
|
||||
|
||||
@@ -69,6 +71,7 @@ namespace AlibabaCloud
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string port_;
|
||||
std::string netType_;
|
||||
|
||||
};
|
||||
|
||||
@@ -843,6 +843,42 @@ PolardbClient::DescribeDBClusterAttributeOutcomeCallable PolardbClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAuditLogCollectorOutcome PolardbClient::describeDBClusterAuditLogCollector(const DescribeDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBClusterAuditLogCollectorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBClusterAuditLogCollectorOutcome(DescribeDBClusterAuditLogCollectorResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBClusterAuditLogCollectorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeDBClusterAuditLogCollectorAsync(const DescribeDBClusterAuditLogCollectorRequest& request, const DescribeDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBClusterAuditLogCollector(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAuditLogCollectorOutcomeCallable PolardbClient::describeDBClusterAuditLogCollectorCallable(const DescribeDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBClusterAuditLogCollectorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBClusterAuditLogCollector(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAvailableResourcesOutcome PolardbClient::describeDBClusterAvailableResources(const DescribeDBClusterAvailableResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +1743,42 @@ PolardbClient::ModifyDBClusterAccessWhitelistOutcomeCallable PolardbClient::modi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterAuditLogCollectorOutcome PolardbClient::modifyDBClusterAuditLogCollector(const ModifyDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBClusterAuditLogCollectorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBClusterAuditLogCollectorOutcome(ModifyDBClusterAuditLogCollectorResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBClusterAuditLogCollectorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::modifyDBClusterAuditLogCollectorAsync(const ModifyDBClusterAuditLogCollectorRequest& request, const ModifyDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBClusterAuditLogCollector(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterAuditLogCollectorOutcomeCallable PolardbClient::modifyDBClusterAuditLogCollectorCallable(const ModifyDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBClusterAuditLogCollectorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBClusterAuditLogCollector(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterDescriptionOutcome PolardbClient::modifyDBClusterDescription(const ModifyDBClusterDescriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -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/DescribeDBClusterAuditLogCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeDBClusterAuditLogCollectorRequest;
|
||||
|
||||
DescribeDBClusterAuditLogCollectorRequest::DescribeDBClusterAuditLogCollectorRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAuditLogCollector")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterAuditLogCollectorRequest::~DescribeDBClusterAuditLogCollectorRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBClusterAuditLogCollectorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBClusterAuditLogCollectorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult::DescribeDBClusterAuditLogCollectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult::DescribeDBClusterAuditLogCollectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult::~DescribeDBClusterAuditLogCollectorResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CollectorStatus"].isNull())
|
||||
collectorStatus_ = value["CollectorStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorResult::getCollectorStatus()const
|
||||
{
|
||||
return collectorStatus_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload)
|
||||
itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString();
|
||||
if(!valueItemsDBEndpoint["EndpointConfig"].isNull())
|
||||
itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString();
|
||||
if(!valueItemsDBEndpoint["NodeWithRoles"].isNull())
|
||||
itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString();
|
||||
auto allAddressItemsNode = allItemsNode["AddressItems"]["Address"];
|
||||
for (auto allItemsNodeAddressItemsAddress : allAddressItemsNode)
|
||||
{
|
||||
|
||||
@@ -39,6 +39,62 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDBClusterEndpointListNode = value["DBClusterEndpointList"]["DBClusterEndpoint"];
|
||||
for (auto valueDBClusterEndpointListDBClusterEndpoint : allDBClusterEndpointListNode)
|
||||
{
|
||||
DBClusterEndpoint dBClusterEndpointListObject;
|
||||
if(!valueDBClusterEndpointListDBClusterEndpoint["DBEndpointId"].isNull())
|
||||
dBClusterEndpointListObject.dBEndpointId = valueDBClusterEndpointListDBClusterEndpoint["DBEndpointId"].asString();
|
||||
if(!valueDBClusterEndpointListDBClusterEndpoint["EndpointType"].isNull())
|
||||
dBClusterEndpointListObject.endpointType = valueDBClusterEndpointListDBClusterEndpoint["EndpointType"].asString();
|
||||
auto allAddressItemsNode = allDBClusterEndpointListNode["AddressItems"]["Address"];
|
||||
for (auto allDBClusterEndpointListNodeAddressItemsAddress : allAddressItemsNode)
|
||||
{
|
||||
DBClusterEndpoint::Address addressItemsObject;
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["ConnectionString"].isNull())
|
||||
addressItemsObject.connectionString = allDBClusterEndpointListNodeAddressItemsAddress["ConnectionString"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["IPAddress"].isNull())
|
||||
addressItemsObject.iPAddress = allDBClusterEndpointListNodeAddressItemsAddress["IPAddress"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["NetType"].isNull())
|
||||
addressItemsObject.netType = allDBClusterEndpointListNodeAddressItemsAddress["NetType"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["Port"].isNull())
|
||||
addressItemsObject.port = allDBClusterEndpointListNodeAddressItemsAddress["Port"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["VPCId"].isNull())
|
||||
addressItemsObject.vPCId = allDBClusterEndpointListNodeAddressItemsAddress["VPCId"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["VSwitchId"].isNull())
|
||||
addressItemsObject.vSwitchId = allDBClusterEndpointListNodeAddressItemsAddress["VSwitchId"].asString();
|
||||
dBClusterEndpointListObject.addressItems.push_back(addressItemsObject);
|
||||
}
|
||||
dBClusterEndpointList_.push_back(dBClusterEndpointListObject);
|
||||
}
|
||||
auto allRdsEndpointListNode = value["RdsEndpointList"]["RdsEndpoint"];
|
||||
for (auto valueRdsEndpointListRdsEndpoint : allRdsEndpointListNode)
|
||||
{
|
||||
RdsEndpoint rdsEndpointListObject;
|
||||
if(!valueRdsEndpointListRdsEndpoint["DBEndpointId"].isNull())
|
||||
rdsEndpointListObject.dBEndpointId = valueRdsEndpointListRdsEndpoint["DBEndpointId"].asString();
|
||||
if(!valueRdsEndpointListRdsEndpoint["EndpointType"].isNull())
|
||||
rdsEndpointListObject.endpointType = valueRdsEndpointListRdsEndpoint["EndpointType"].asString();
|
||||
auto allAddressItems1Node = allRdsEndpointListNode["AddressItems"]["Address"];
|
||||
for (auto allRdsEndpointListNodeAddressItemsAddress : allAddressItems1Node)
|
||||
{
|
||||
RdsEndpoint::Address2 addressItems1Object;
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["ConnectionString"].isNull())
|
||||
addressItems1Object.connectionString = allRdsEndpointListNodeAddressItemsAddress["ConnectionString"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["IPAddress"].isNull())
|
||||
addressItems1Object.iPAddress = allRdsEndpointListNodeAddressItemsAddress["IPAddress"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["NetType"].isNull())
|
||||
addressItems1Object.netType = allRdsEndpointListNodeAddressItemsAddress["NetType"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["Port"].isNull())
|
||||
addressItems1Object.port = allRdsEndpointListNodeAddressItemsAddress["Port"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["VPCId"].isNull())
|
||||
addressItems1Object.vPCId = allRdsEndpointListNodeAddressItemsAddress["VPCId"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["VSwitchId"].isNull())
|
||||
addressItems1Object.vSwitchId = allRdsEndpointListNodeAddressItemsAddress["VSwitchId"].asString();
|
||||
rdsEndpointListObject.addressItems1.push_back(addressItems1Object);
|
||||
}
|
||||
rdsEndpointList_.push_back(rdsEndpointListObject);
|
||||
}
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["SourceRDSDBInstanceId"].isNull())
|
||||
@@ -60,6 +116,11 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterMigrationResult::DBClusterEndpoint> DescribeDBClusterMigrationResult::getDBClusterEndpointList()const
|
||||
{
|
||||
return dBClusterEndpointList_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterMigrationResult::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
@@ -105,3 +166,8 @@ std::string DescribeDBClusterMigrationResult::getMigrationStatus()const
|
||||
return migrationStatus_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterMigrationResult::RdsEndpoint> DescribeDBClusterMigrationResult::getRdsEndpointList()const
|
||||
{
|
||||
return rdsEndpointList_;
|
||||
}
|
||||
|
||||
|
||||
106
polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.cc
Normal file
106
polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/ModifyDBClusterAuditLogCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::ModifyDBClusterAuditLogCollectorRequest;
|
||||
|
||||
ModifyDBClusterAuditLogCollectorRequest::ModifyDBClusterAuditLogCollectorRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterAuditLogCollector")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBClusterAuditLogCollectorRequest::~ModifyDBClusterAuditLogCollectorRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBClusterAuditLogCollectorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getCollectorStatus()const
|
||||
{
|
||||
return collectorStatus_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setCollectorStatus(const std::string& collectorStatus)
|
||||
{
|
||||
collectorStatus_ = collectorStatus;
|
||||
setParameter("CollectorStatus", collectorStatus);
|
||||
}
|
||||
|
||||
long ModifyDBClusterAuditLogCollectorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
44
polardb/src/model/ModifyDBClusterAuditLogCollectorResult.cc
Normal file
44
polardb/src/model/ModifyDBClusterAuditLogCollectorResult.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/ModifyDBClusterAuditLogCollectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult::ModifyDBClusterAuditLogCollectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult::ModifyDBClusterAuditLogCollectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult::~ModifyDBClusterAuditLogCollectorResult()
|
||||
{}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -115,6 +115,17 @@ void ModifyDBClusterMigrationRequest::setSourceRDSDBInstanceId(const std::string
|
||||
setParameter("SourceRDSDBInstanceId", sourceRDSDBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMigrationRequest::getSwapConnectionString()const
|
||||
{
|
||||
return swapConnectionString_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMigrationRequest::setSwapConnectionString(const std::string& swapConnectionString)
|
||||
{
|
||||
swapConnectionString_ = swapConnectionString;
|
||||
setParameter("SwapConnectionString", swapConnectionString);
|
||||
}
|
||||
|
||||
long ModifyDBClusterMigrationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void ModifyDBClusterMonitorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
@@ -93,14 +104,3 @@ void ModifyDBClusterMonitorRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,17 @@ void ModifyDBEndpointAddressRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBEndpointAddressRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void ModifyDBEndpointAddressRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string ModifyDBEndpointAddressRequest::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
|
||||
Reference in New Issue
Block a user