Add FindServiceList and GetService qps.

This commit is contained in:
sdk-team
2020-08-07 11:54:10 +08:00
parent 55baab421e
commit b257cba9c3
29 changed files with 1192 additions and 1 deletions

View File

@@ -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;

View 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_

View 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_

View File

@@ -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_;

View File

@@ -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_;
};
}

View File

@@ -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;

View File

@@ -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_;

View File

@@ -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_

View File

@@ -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_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_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_

View File

@@ -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_

View File

@@ -51,6 +51,7 @@ namespace AlibabaCloud
bool allVisiable;
std::string serviceName;
bool skipAuth;
int qps;
std::string alias;
std::string userId;
std::string routeConfJson;

View File

@@ -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;