Add FindServiceList and GetService qps.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-08-07 Version: 1.36.558
|
||||
- Add FindServiceList and GetService qps.
|
||||
|
||||
2020-08-06 Version: 1.36.557
|
||||
- Add Smart Cloudauth API.
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ set(csb_public_header
|
||||
set(csb_public_header_model
|
||||
include/alibabacloud/csb/model/ApproveOrderListRequest.h
|
||||
include/alibabacloud/csb/model/ApproveOrderListResult.h
|
||||
include/alibabacloud/csb/model/CheckSLRDeleteRequest.h
|
||||
include/alibabacloud/csb/model/CheckSLRDeleteResult.h
|
||||
include/alibabacloud/csb/model/CheckServiceExistRequest.h
|
||||
include/alibabacloud/csb/model/CheckServiceExistResult.h
|
||||
include/alibabacloud/csb/model/CommitSuccessedServicesRequest.h
|
||||
@@ -75,6 +77,10 @@ set(csb_public_header_model
|
||||
include/alibabacloud/csb/model/FindOrderableListResult.h
|
||||
include/alibabacloud/csb/model/FindOrderedListRequest.h
|
||||
include/alibabacloud/csb/model/FindOrderedListResult.h
|
||||
include/alibabacloud/csb/model/FindOrderedServiceListRequest.h
|
||||
include/alibabacloud/csb/model/FindOrderedServiceListResult.h
|
||||
include/alibabacloud/csb/model/FindOtherInstanceListRequest.h
|
||||
include/alibabacloud/csb/model/FindOtherInstanceListResult.h
|
||||
include/alibabacloud/csb/model/FindProjectListRequest.h
|
||||
include/alibabacloud/csb/model/FindProjectListResult.h
|
||||
include/alibabacloud/csb/model/FindProjectStatisticalDataRequest.h
|
||||
@@ -128,6 +134,8 @@ set(csb_src
|
||||
src/CSBClient.cc
|
||||
src/model/ApproveOrderListRequest.cc
|
||||
src/model/ApproveOrderListResult.cc
|
||||
src/model/CheckSLRDeleteRequest.cc
|
||||
src/model/CheckSLRDeleteResult.cc
|
||||
src/model/CheckServiceExistRequest.cc
|
||||
src/model/CheckServiceExistResult.cc
|
||||
src/model/CommitSuccessedServicesRequest.cc
|
||||
@@ -180,6 +188,10 @@ set(csb_src
|
||||
src/model/FindOrderableListResult.cc
|
||||
src/model/FindOrderedListRequest.cc
|
||||
src/model/FindOrderedListResult.cc
|
||||
src/model/FindOrderedServiceListRequest.cc
|
||||
src/model/FindOrderedServiceListResult.cc
|
||||
src/model/FindOtherInstanceListRequest.cc
|
||||
src/model/FindOtherInstanceListResult.cc
|
||||
src/model/FindProjectListRequest.cc
|
||||
src/model/FindProjectListResult.cc
|
||||
src/model/FindProjectStatisticalDataRequest.cc
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "CSBExport.h"
|
||||
#include "model/ApproveOrderListRequest.h"
|
||||
#include "model/ApproveOrderListResult.h"
|
||||
#include "model/CheckSLRDeleteRequest.h"
|
||||
#include "model/CheckSLRDeleteResult.h"
|
||||
#include "model/CheckServiceExistRequest.h"
|
||||
#include "model/CheckServiceExistResult.h"
|
||||
#include "model/CommitSuccessedServicesRequest.h"
|
||||
@@ -76,6 +78,10 @@
|
||||
#include "model/FindOrderableListResult.h"
|
||||
#include "model/FindOrderedListRequest.h"
|
||||
#include "model/FindOrderedListResult.h"
|
||||
#include "model/FindOrderedServiceListRequest.h"
|
||||
#include "model/FindOrderedServiceListResult.h"
|
||||
#include "model/FindOtherInstanceListRequest.h"
|
||||
#include "model/FindOtherInstanceListResult.h"
|
||||
#include "model/FindProjectListRequest.h"
|
||||
#include "model/FindProjectListResult.h"
|
||||
#include "model/FindProjectStatisticalDataRequest.h"
|
||||
@@ -136,6 +142,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ApproveOrderListResult> ApproveOrderListOutcome;
|
||||
typedef std::future<ApproveOrderListOutcome> ApproveOrderListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::ApproveOrderListRequest&, const ApproveOrderListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderListAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckSLRDeleteResult> CheckSLRDeleteOutcome;
|
||||
typedef std::future<CheckSLRDeleteOutcome> CheckSLRDeleteOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::CheckSLRDeleteRequest&, const CheckSLRDeleteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckSLRDeleteAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckServiceExistResult> CheckServiceExistOutcome;
|
||||
typedef std::future<CheckServiceExistOutcome> CheckServiceExistOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::CheckServiceExistRequest&, const CheckServiceExistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckServiceExistAsyncHandler;
|
||||
@@ -214,6 +223,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::FindOrderedListResult> FindOrderedListOutcome;
|
||||
typedef std::future<FindOrderedListOutcome> FindOrderedListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindOrderedListRequest&, const FindOrderedListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindOrderedListAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindOrderedServiceListResult> FindOrderedServiceListOutcome;
|
||||
typedef std::future<FindOrderedServiceListOutcome> FindOrderedServiceListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindOrderedServiceListRequest&, const FindOrderedServiceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindOrderedServiceListAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindOtherInstanceListResult> FindOtherInstanceListOutcome;
|
||||
typedef std::future<FindOtherInstanceListOutcome> FindOtherInstanceListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindOtherInstanceListRequest&, const FindOtherInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindOtherInstanceListAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindProjectListResult> FindProjectListOutcome;
|
||||
typedef std::future<FindProjectListOutcome> FindProjectListOutcomeCallable;
|
||||
typedef std::function<void(const CSBClient*, const Model::FindProjectListRequest&, const FindProjectListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindProjectListAsyncHandler;
|
||||
@@ -294,6 +309,9 @@ namespace AlibabaCloud
|
||||
ApproveOrderListOutcome approveOrderList(const Model::ApproveOrderListRequest &request)const;
|
||||
void approveOrderListAsync(const Model::ApproveOrderListRequest& request, const ApproveOrderListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApproveOrderListOutcomeCallable approveOrderListCallable(const Model::ApproveOrderListRequest& request) const;
|
||||
CheckSLRDeleteOutcome checkSLRDelete(const Model::CheckSLRDeleteRequest &request)const;
|
||||
void checkSLRDeleteAsync(const Model::CheckSLRDeleteRequest& request, const CheckSLRDeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckSLRDeleteOutcomeCallable checkSLRDeleteCallable(const Model::CheckSLRDeleteRequest& request) const;
|
||||
CheckServiceExistOutcome checkServiceExist(const Model::CheckServiceExistRequest &request)const;
|
||||
void checkServiceExistAsync(const Model::CheckServiceExistRequest& request, const CheckServiceExistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckServiceExistOutcomeCallable checkServiceExistCallable(const Model::CheckServiceExistRequest& request) const;
|
||||
@@ -372,6 +390,12 @@ namespace AlibabaCloud
|
||||
FindOrderedListOutcome findOrderedList(const Model::FindOrderedListRequest &request)const;
|
||||
void findOrderedListAsync(const Model::FindOrderedListRequest& request, const FindOrderedListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindOrderedListOutcomeCallable findOrderedListCallable(const Model::FindOrderedListRequest& request) const;
|
||||
FindOrderedServiceListOutcome findOrderedServiceList(const Model::FindOrderedServiceListRequest &request)const;
|
||||
void findOrderedServiceListAsync(const Model::FindOrderedServiceListRequest& request, const FindOrderedServiceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindOrderedServiceListOutcomeCallable findOrderedServiceListCallable(const Model::FindOrderedServiceListRequest& request) const;
|
||||
FindOtherInstanceListOutcome findOtherInstanceList(const Model::FindOtherInstanceListRequest &request)const;
|
||||
void findOtherInstanceListAsync(const Model::FindOtherInstanceListRequest& request, const FindOtherInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindOtherInstanceListOutcomeCallable findOtherInstanceListCallable(const Model::FindOtherInstanceListRequest& request) const;
|
||||
FindProjectListOutcome findProjectList(const Model::FindProjectListRequest &request)const;
|
||||
void findProjectListAsync(const Model::FindProjectListRequest& request, const FindProjectListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindProjectListOutcomeCallable findProjectListCallable(const Model::FindProjectListRequest& request) const;
|
||||
|
||||
60
csb/include/alibabacloud/csb/model/CheckSLRDeleteRequest.h
Normal file
60
csb/include/alibabacloud/csb/model/CheckSLRDeleteRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_CSB_MODEL_CHECKSLRDELETEREQUEST_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT CheckSLRDeleteRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckSLRDeleteRequest();
|
||||
~CheckSLRDeleteRequest();
|
||||
|
||||
std::string getDeletionTaskId()const;
|
||||
void setDeletionTaskId(const std::string& deletionTaskId);
|
||||
std::string getAccountId()const;
|
||||
void setAccountId(const std::string& accountId);
|
||||
std::string getSPIRegionId()const;
|
||||
void setSPIRegionId(const std::string& sPIRegionId);
|
||||
std::string getRoleArn()const;
|
||||
void setRoleArn(const std::string& roleArn);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
|
||||
private:
|
||||
std::string deletionTaskId_;
|
||||
std::string accountId_;
|
||||
std::string sPIRegionId_;
|
||||
std::string roleArn_;
|
||||
std::string serviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETEREQUEST_H_
|
||||
62
csb/include/alibabacloud/csb/model/CheckSLRDeleteResult.h
Normal file
62
csb/include/alibabacloud/csb/model/CheckSLRDeleteResult.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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_CSB_MODEL_CHECKSLRDELETERESULT_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT CheckSLRDeleteResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RoleUsage
|
||||
{
|
||||
std::string region;
|
||||
std::vector<std::string> resources;
|
||||
};
|
||||
|
||||
|
||||
CheckSLRDeleteResult();
|
||||
explicit CheckSLRDeleteResult(const std::string &payload);
|
||||
~CheckSLRDeleteResult();
|
||||
std::string getMessage()const;
|
||||
bool getDeletable()const;
|
||||
std::vector<RoleUsage> getRoleUsages()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool deletable_;
|
||||
std::vector<RoleUsage> roleUsages_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_CHECKSLRDELETERESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setCsbId(long csbId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getCredentialGroupName()const;
|
||||
void setCredentialGroupName(const std::string& credentialGroupName);
|
||||
std::string getAlias()const;
|
||||
void setAlias(const std::string& alias);
|
||||
std::string getServiceName()const;
|
||||
@@ -54,6 +56,7 @@ namespace AlibabaCloud
|
||||
std::string projectName_;
|
||||
long csbId_;
|
||||
int pageNum_;
|
||||
std::string credentialGroupName_;
|
||||
std::string alias_;
|
||||
std::string serviceName_;
|
||||
long serviceId_;
|
||||
|
||||
@@ -37,9 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
long getCsbId()const;
|
||||
void setCsbId(long csbId);
|
||||
std::string getBeginDdHHmm()const;
|
||||
void setBeginDdHHmm(const std::string& beginDdHHmm);
|
||||
std::string getEndDdHHmm()const;
|
||||
void setEndDdHHmm(const std::string& endDdHHmm);
|
||||
|
||||
private:
|
||||
long csbId_;
|
||||
std::string beginDdHHmm_;
|
||||
std::string endDdHHmm_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,9 +39,13 @@ namespace AlibabaCloud
|
||||
std::string instanceName;
|
||||
std::string importedName;
|
||||
bool isImported;
|
||||
std::string ownerId;
|
||||
long csbId;
|
||||
std::string groupAddress;
|
||||
std::string edasTenantInfo;
|
||||
long id;
|
||||
int deleted;
|
||||
std::string brokerCmdAddress;
|
||||
std::string brokerAddress;
|
||||
};
|
||||
int currentPage;
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setCsbId(long csbId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getCredentialGroupName()const;
|
||||
void setCredentialGroupName(const std::string& credentialGroupName);
|
||||
std::string getAlias()const;
|
||||
void setAlias(const std::string& alias);
|
||||
std::string getServiceName()const;
|
||||
@@ -57,6 +59,7 @@ namespace AlibabaCloud
|
||||
bool showDelOrder_;
|
||||
long csbId_;
|
||||
int pageNum_;
|
||||
std::string credentialGroupName_;
|
||||
std::string alias_;
|
||||
std::string serviceName_;
|
||||
long serviceId_;
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_CSB_MODEL_FINDORDEREDSERVICELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOrderedServiceListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FindOrderedServiceListRequest();
|
||||
~FindOrderedServiceListRequest();
|
||||
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
bool getShowDelOrder()const;
|
||||
void setShowDelOrder(bool showDelOrder);
|
||||
long getCsbId()const;
|
||||
void setCsbId(long csbId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getCredentialGroupName()const;
|
||||
void setCredentialGroupName(const std::string& credentialGroupName);
|
||||
std::string getAccessKey()const;
|
||||
void setAccessKey(const std::string& accessKey);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getServiceId()const;
|
||||
void setServiceId(long serviceId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string projectName_;
|
||||
bool showDelOrder_;
|
||||
long csbId_;
|
||||
int pageNum_;
|
||||
std::string credentialGroupName_;
|
||||
std::string accessKey_;
|
||||
int pageSize_;
|
||||
std::string serviceName_;
|
||||
long serviceId_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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_CSB_MODEL_FINDORDEREDSERVICELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOrderedServiceListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Order
|
||||
{
|
||||
struct SlaInfo
|
||||
{
|
||||
long qps;
|
||||
long qph;
|
||||
};
|
||||
int orderStatus;
|
||||
long gmtCreate;
|
||||
long credentialGroupId;
|
||||
std::string serviceName;
|
||||
std::string projectName;
|
||||
int serviceStatus;
|
||||
std::string credentialGroupName;
|
||||
long gmtModified;
|
||||
std::string serviceVersion;
|
||||
long id;
|
||||
SlaInfo slaInfo;
|
||||
std::string serviceId;
|
||||
};
|
||||
int currentPage;
|
||||
int pageNumber;
|
||||
long total;
|
||||
std::vector<Order> orderList;
|
||||
};
|
||||
|
||||
|
||||
FindOrderedServiceListResult();
|
||||
explicit FindOrderedServiceListResult(const std::string &payload);
|
||||
~FindOrderedServiceListResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDEREDSERVICELISTRESULT_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_CSB_MODEL_FINDOTHERINSTANCELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOtherInstanceListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FindOtherInstanceListRequest();
|
||||
~FindOtherInstanceListRequest();
|
||||
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getSearchTxt()const;
|
||||
void setSearchTxt(const std::string& searchTxt);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNum_;
|
||||
std::string searchTxt_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_CSB_MODEL_FINDOTHERINSTANCELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/csb/CSBExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CSB
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CSB_EXPORT FindOtherInstanceListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
long gmtCreate;
|
||||
std::string statusStr;
|
||||
std::string description;
|
||||
long ownerId;
|
||||
std::string runStatus;
|
||||
long gmtModified;
|
||||
std::string vpcName;
|
||||
long id;
|
||||
int instanceCategory;
|
||||
std::string name;
|
||||
};
|
||||
int currentPage;
|
||||
int pageNumber;
|
||||
std::vector<Item> itemList;
|
||||
};
|
||||
|
||||
|
||||
FindOtherInstanceListResult();
|
||||
explicit FindOtherInstanceListResult(const std::string &payload);
|
||||
~FindOtherInstanceListResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CSB_MODEL_FINDOTHERINSTANCELISTRESULT_H_
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
bool allVisiable;
|
||||
std::string serviceName;
|
||||
bool skipAuth;
|
||||
int qps;
|
||||
std::string alias;
|
||||
std::string userId;
|
||||
std::string routeConfJson;
|
||||
|
||||
@@ -70,6 +70,7 @@ namespace AlibabaCloud
|
||||
std::string ownerId;
|
||||
std::string consumeTypesJSON;
|
||||
bool skipAuth;
|
||||
int qps;
|
||||
std::vector<ServiceVersion> serviceVersionsList;
|
||||
bool ottFlag;
|
||||
std::string interfaceName;
|
||||
|
||||
@@ -87,6 +87,42 @@ CSBClient::ApproveOrderListOutcomeCallable CSBClient::approveOrderListCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::CheckSLRDeleteOutcome CSBClient::checkSLRDelete(const CheckSLRDeleteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckSLRDeleteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckSLRDeleteOutcome(CheckSLRDeleteResult(outcome.result()));
|
||||
else
|
||||
return CheckSLRDeleteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSBClient::checkSLRDeleteAsync(const CheckSLRDeleteRequest& request, const CheckSLRDeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkSLRDelete(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSBClient::CheckSLRDeleteOutcomeCallable CSBClient::checkSLRDeleteCallable(const CheckSLRDeleteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckSLRDeleteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkSLRDelete(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::CheckServiceExistOutcome CSBClient::checkServiceExist(const CheckServiceExistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1059,78 @@ CSBClient::FindOrderedListOutcomeCallable CSBClient::findOrderedListCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::FindOrderedServiceListOutcome CSBClient::findOrderedServiceList(const FindOrderedServiceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FindOrderedServiceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FindOrderedServiceListOutcome(FindOrderedServiceListResult(outcome.result()));
|
||||
else
|
||||
return FindOrderedServiceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSBClient::findOrderedServiceListAsync(const FindOrderedServiceListRequest& request, const FindOrderedServiceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, findOrderedServiceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSBClient::FindOrderedServiceListOutcomeCallable CSBClient::findOrderedServiceListCallable(const FindOrderedServiceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FindOrderedServiceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->findOrderedServiceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::FindOtherInstanceListOutcome CSBClient::findOtherInstanceList(const FindOtherInstanceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FindOtherInstanceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FindOtherInstanceListOutcome(FindOtherInstanceListResult(outcome.result()));
|
||||
else
|
||||
return FindOtherInstanceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSBClient::findOtherInstanceListAsync(const FindOtherInstanceListRequest& request, const FindOtherInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, findOtherInstanceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSBClient::FindOtherInstanceListOutcomeCallable CSBClient::findOtherInstanceListCallable(const FindOtherInstanceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FindOtherInstanceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->findOtherInstanceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::FindProjectListOutcome CSBClient::findProjectList(const FindProjectListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
csb/src/model/CheckSLRDeleteRequest.cc
Normal file
84
csb/src/model/CheckSLRDeleteRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/csb/model/CheckSLRDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CheckSLRDeleteRequest;
|
||||
|
||||
CheckSLRDeleteRequest::CheckSLRDeleteRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CheckSLRDelete")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CheckSLRDeleteRequest::~CheckSLRDeleteRequest()
|
||||
{}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setDeletionTaskId(const std::string& deletionTaskId)
|
||||
{
|
||||
deletionTaskId_ = deletionTaskId;
|
||||
setParameter("DeletionTaskId", deletionTaskId);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getSPIRegionId()const
|
||||
{
|
||||
return sPIRegionId_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setSPIRegionId(const std::string& sPIRegionId)
|
||||
{
|
||||
sPIRegionId_ = sPIRegionId;
|
||||
setParameter("SPIRegionId", sPIRegionId);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CheckSLRDeleteRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
81
csb/src/model/CheckSLRDeleteResult.cc
Normal file
81
csb/src/model/CheckSLRDeleteResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/csb/model/CheckSLRDeleteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
CheckSLRDeleteResult::CheckSLRDeleteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckSLRDeleteResult::CheckSLRDeleteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckSLRDeleteResult::~CheckSLRDeleteResult()
|
||||
{}
|
||||
|
||||
void CheckSLRDeleteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRoleUsagesNode = value["RoleUsages"]["RoleUsage"];
|
||||
for (auto valueRoleUsagesRoleUsage : allRoleUsagesNode)
|
||||
{
|
||||
RoleUsage roleUsagesObject;
|
||||
if(!valueRoleUsagesRoleUsage["Region"].isNull())
|
||||
roleUsagesObject.region = valueRoleUsagesRoleUsage["Region"].asString();
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
roleUsagesObject.resources.push_back(value.asString());
|
||||
roleUsages_.push_back(roleUsagesObject);
|
||||
}
|
||||
if(!value["Deletable"].isNull())
|
||||
deletable_ = value["Deletable"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckSLRDeleteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool CheckSLRDeleteResult::getDeletable()const
|
||||
{
|
||||
return deletable_;
|
||||
}
|
||||
|
||||
std::vector<CheckSLRDeleteResult::RoleUsage> CheckSLRDeleteResult::getRoleUsages()const
|
||||
{
|
||||
return roleUsages_;
|
||||
}
|
||||
|
||||
int CheckSLRDeleteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void FindApprovalOrderListRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getCredentialGroupName()const
|
||||
{
|
||||
return credentialGroupName_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setCredentialGroupName(const std::string& credentialGroupName)
|
||||
{
|
||||
credentialGroupName_ = credentialGroupName;
|
||||
setParameter("CredentialGroupName", credentialGroupName);
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
|
||||
@@ -38,3 +38,25 @@ void FindBrokerSLOHisListRequest::setCsbId(long csbId)
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindBrokerSLOHisListRequest::getBeginDdHHmm()const
|
||||
{
|
||||
return beginDdHHmm_;
|
||||
}
|
||||
|
||||
void FindBrokerSLOHisListRequest::setBeginDdHHmm(const std::string& beginDdHHmm)
|
||||
{
|
||||
beginDdHHmm_ = beginDdHHmm;
|
||||
setParameter("BeginDdHHmm", beginDdHHmm);
|
||||
}
|
||||
|
||||
std::string FindBrokerSLOHisListRequest::getEndDdHHmm()const
|
||||
{
|
||||
return endDdHHmm_;
|
||||
}
|
||||
|
||||
void FindBrokerSLOHisListRequest::setEndDdHHmm(const std::string& endDdHHmm)
|
||||
{
|
||||
endDdHHmm_ = endDdHHmm;
|
||||
setParameter("EndDdHHmm", endDdHHmm);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,14 @@ void FindInstanceNodeListResult::parse(const std::string &payload)
|
||||
instanceNodeObject.edasTenantInfo = dataNodeInstanceNodeListInstanceNode["EdasTenantInfo"].asString();
|
||||
if(!dataNodeInstanceNodeListInstanceNode["ImportedName"].isNull())
|
||||
instanceNodeObject.importedName = dataNodeInstanceNodeListInstanceNode["ImportedName"].asString();
|
||||
if(!dataNodeInstanceNodeListInstanceNode["CsbId"].isNull())
|
||||
instanceNodeObject.csbId = std::stol(dataNodeInstanceNodeListInstanceNode["CsbId"].asString());
|
||||
if(!dataNodeInstanceNodeListInstanceNode["Deleted"].isNull())
|
||||
instanceNodeObject.deleted = std::stoi(dataNodeInstanceNodeListInstanceNode["Deleted"].asString());
|
||||
if(!dataNodeInstanceNodeListInstanceNode["OwnerId"].isNull())
|
||||
instanceNodeObject.ownerId = dataNodeInstanceNodeListInstanceNode["OwnerId"].asString();
|
||||
if(!dataNodeInstanceNodeListInstanceNode["BrokerCmdAddress"].isNull())
|
||||
instanceNodeObject.brokerCmdAddress = dataNodeInstanceNodeListInstanceNode["BrokerCmdAddress"].asString();
|
||||
data_.instanceNodeList.push_back(instanceNodeObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -71,6 +71,17 @@ void FindOrderedListRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getCredentialGroupName()const
|
||||
{
|
||||
return credentialGroupName_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setCredentialGroupName(const std::string& credentialGroupName)
|
||||
{
|
||||
credentialGroupName_ = credentialGroupName;
|
||||
setParameter("CredentialGroupName", credentialGroupName);
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
|
||||
139
csb/src/model/FindOrderedServiceListRequest.cc
Normal file
139
csb/src/model/FindOrderedServiceListRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/csb/model/FindOrderedServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindOrderedServiceListRequest;
|
||||
|
||||
FindOrderedServiceListRequest::FindOrderedServiceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindOrderedServiceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
FindOrderedServiceListRequest::~FindOrderedServiceListRequest()
|
||||
{}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
bool FindOrderedServiceListRequest::getShowDelOrder()const
|
||||
{
|
||||
return showDelOrder_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setShowDelOrder(bool showDelOrder)
|
||||
{
|
||||
showDelOrder_ = showDelOrder;
|
||||
setParameter("ShowDelOrder", showDelOrder ? "true" : "false");
|
||||
}
|
||||
|
||||
long FindOrderedServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
int FindOrderedServiceListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getCredentialGroupName()const
|
||||
{
|
||||
return credentialGroupName_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setCredentialGroupName(const std::string& credentialGroupName)
|
||||
{
|
||||
credentialGroupName_ = credentialGroupName;
|
||||
setParameter("CredentialGroupName", credentialGroupName);
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getAccessKey()const
|
||||
{
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setAccessKey(const std::string& accessKey)
|
||||
{
|
||||
accessKey_ = accessKey;
|
||||
setParameter("AccessKey", accessKey);
|
||||
}
|
||||
|
||||
int FindOrderedServiceListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long FindOrderedServiceListRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
long FindOrderedServiceListRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void FindOrderedServiceListRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
103
csb/src/model/FindOrderedServiceListResult.cc
Normal file
103
csb/src/model/FindOrderedServiceListResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/csb/model/FindOrderedServiceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindOrderedServiceListResult::FindOrderedServiceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindOrderedServiceListResult::FindOrderedServiceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindOrderedServiceListResult::~FindOrderedServiceListResult()
|
||||
{}
|
||||
|
||||
void FindOrderedServiceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allOrderListNode = dataNode["OrderList"]["Order"];
|
||||
for (auto dataNodeOrderListOrder : allOrderListNode)
|
||||
{
|
||||
Data::Order orderObject;
|
||||
if(!dataNodeOrderListOrder["ServiceName"].isNull())
|
||||
orderObject.serviceName = dataNodeOrderListOrder["ServiceName"].asString();
|
||||
if(!dataNodeOrderListOrder["ServiceVersion"].isNull())
|
||||
orderObject.serviceVersion = dataNodeOrderListOrder["ServiceVersion"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderStatus"].isNull())
|
||||
orderObject.orderStatus = std::stoi(dataNodeOrderListOrder["OrderStatus"].asString());
|
||||
if(!dataNodeOrderListOrder["GmtCreate"].isNull())
|
||||
orderObject.gmtCreate = std::stol(dataNodeOrderListOrder["GmtCreate"].asString());
|
||||
if(!dataNodeOrderListOrder["ServiceId"].isNull())
|
||||
orderObject.serviceId = dataNodeOrderListOrder["ServiceId"].asString();
|
||||
if(!dataNodeOrderListOrder["ServiceStatus"].isNull())
|
||||
orderObject.serviceStatus = std::stoi(dataNodeOrderListOrder["ServiceStatus"].asString());
|
||||
if(!dataNodeOrderListOrder["CredentialGroupId"].isNull())
|
||||
orderObject.credentialGroupId = std::stol(dataNodeOrderListOrder["CredentialGroupId"].asString());
|
||||
if(!dataNodeOrderListOrder["GmtModified"].isNull())
|
||||
orderObject.gmtModified = std::stol(dataNodeOrderListOrder["GmtModified"].asString());
|
||||
if(!dataNodeOrderListOrder["ProjectName"].isNull())
|
||||
orderObject.projectName = dataNodeOrderListOrder["ProjectName"].asString();
|
||||
if(!dataNodeOrderListOrder["Id"].isNull())
|
||||
orderObject.id = std::stol(dataNodeOrderListOrder["Id"].asString());
|
||||
if(!dataNodeOrderListOrder["CredentialGroupName"].isNull())
|
||||
orderObject.credentialGroupName = dataNodeOrderListOrder["CredentialGroupName"].asString();
|
||||
auto slaInfoNode = value["SlaInfo"];
|
||||
if(!slaInfoNode["Qps"].isNull())
|
||||
orderObject.slaInfo.qps = std::stol(slaInfoNode["Qps"].asString());
|
||||
if(!slaInfoNode["Qph"].isNull())
|
||||
orderObject.slaInfo.qph = std::stol(slaInfoNode["Qph"].asString());
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindOrderedServiceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindOrderedServiceListResult::Data FindOrderedServiceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindOrderedServiceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
csb/src/model/FindOtherInstanceListRequest.cc
Normal file
62
csb/src/model/FindOtherInstanceListRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/csb/model/FindOtherInstanceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindOtherInstanceListRequest;
|
||||
|
||||
FindOtherInstanceListRequest::FindOtherInstanceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindOtherInstanceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
FindOtherInstanceListRequest::~FindOtherInstanceListRequest()
|
||||
{}
|
||||
|
||||
int FindOtherInstanceListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindOtherInstanceListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindOtherInstanceListRequest::getSearchTxt()const
|
||||
{
|
||||
return searchTxt_;
|
||||
}
|
||||
|
||||
void FindOtherInstanceListRequest::setSearchTxt(const std::string& searchTxt)
|
||||
{
|
||||
searchTxt_ = searchTxt;
|
||||
setParameter("SearchTxt", searchTxt);
|
||||
}
|
||||
|
||||
int FindOtherInstanceListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void FindOtherInstanceListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
94
csb/src/model/FindOtherInstanceListResult.cc
Normal file
94
csb/src/model/FindOtherInstanceListResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/csb/model/FindOtherInstanceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindOtherInstanceListResult::FindOtherInstanceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindOtherInstanceListResult::FindOtherInstanceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindOtherInstanceListResult::~FindOtherInstanceListResult()
|
||||
{}
|
||||
|
||||
void FindOtherInstanceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allItemListNode = dataNode["ItemList"]["Item"];
|
||||
for (auto dataNodeItemListItem : allItemListNode)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!dataNodeItemListItem["Description"].isNull())
|
||||
itemObject.description = dataNodeItemListItem["Description"].asString();
|
||||
if(!dataNodeItemListItem["RunStatus"].isNull())
|
||||
itemObject.runStatus = dataNodeItemListItem["RunStatus"].asString();
|
||||
if(!dataNodeItemListItem["GmtCreate"].isNull())
|
||||
itemObject.gmtCreate = std::stol(dataNodeItemListItem["GmtCreate"].asString());
|
||||
if(!dataNodeItemListItem["GmtModified"].isNull())
|
||||
itemObject.gmtModified = std::stol(dataNodeItemListItem["GmtModified"].asString());
|
||||
if(!dataNodeItemListItem["Id"].isNull())
|
||||
itemObject.id = std::stol(dataNodeItemListItem["Id"].asString());
|
||||
if(!dataNodeItemListItem["InstanceCategory"].isNull())
|
||||
itemObject.instanceCategory = std::stoi(dataNodeItemListItem["InstanceCategory"].asString());
|
||||
if(!dataNodeItemListItem["Name"].isNull())
|
||||
itemObject.name = dataNodeItemListItem["Name"].asString();
|
||||
if(!dataNodeItemListItem["StatusStr"].isNull())
|
||||
itemObject.statusStr = dataNodeItemListItem["StatusStr"].asString();
|
||||
if(!dataNodeItemListItem["OwnerId"].isNull())
|
||||
itemObject.ownerId = std::stol(dataNodeItemListItem["OwnerId"].asString());
|
||||
if(!dataNodeItemListItem["VpcName"].isNull())
|
||||
itemObject.vpcName = dataNodeItemListItem["VpcName"].asString();
|
||||
data_.itemList.push_back(itemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindOtherInstanceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindOtherInstanceListResult::Data FindOtherInstanceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindOtherInstanceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,8 @@ void FindServiceListResult::parse(const std::string &payload)
|
||||
serviceObject.casTargets = dataNodeServiceListService["CasTargets"].asString();
|
||||
if(!dataNodeServiceListService["RouteConfJson"].isNull())
|
||||
serviceObject.routeConfJson = dataNodeServiceListService["RouteConfJson"].asString();
|
||||
if(!dataNodeServiceListService["Qps"].isNull())
|
||||
serviceObject.qps = std::stoi(dataNodeServiceListService["Qps"].asString());
|
||||
data_.serviceList.push_back(serviceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -117,6 +117,8 @@ void GetServiceResult::parse(const std::string &payload)
|
||||
data_.service.validConsumeTypes = serviceNode["ValidConsumeTypes"].asString() == "true";
|
||||
if(!serviceNode["ValidProvideType"].isNull())
|
||||
data_.service.validProvideType = serviceNode["ValidProvideType"].asString() == "true";
|
||||
if(!serviceNode["Qps"].isNull())
|
||||
data_.service.qps = std::stoi(serviceNode["Qps"].asString());
|
||||
auto allServiceVersionsListNode = serviceNode["ServiceVersionsList"]["ServiceVersion"];
|
||||
for (auto serviceNodeServiceVersionsListServiceVersion : allServiceVersionsListNode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user