QuerySavingsPlansInstance api add status query param.

This commit is contained in:
sdk-team
2023-03-07 14:30:58 +00:00
parent 68ba54083f
commit d47b0c609a
8 changed files with 296 additions and 1 deletions

View File

@@ -166,6 +166,8 @@
#include "model/QueryRelationListResult.h"
#include "model/QueryResellerAvailableQuotaRequest.h"
#include "model/QueryResellerAvailableQuotaResult.h"
#include "model/QueryResellerUserAlarmThresholdRequest.h"
#include "model/QueryResellerUserAlarmThresholdResult.h"
#include "model/QueryResourcePackageInstancesRequest.h"
#include "model/QueryResourcePackageInstancesResult.h"
#include "model/QuerySavingsPlansDeductLogRequest.h"
@@ -441,6 +443,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryResellerAvailableQuotaResult> QueryResellerAvailableQuotaOutcome;
typedef std::future<QueryResellerAvailableQuotaOutcome> QueryResellerAvailableQuotaOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResellerAvailableQuotaRequest&, const QueryResellerAvailableQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResellerAvailableQuotaAsyncHandler;
typedef Outcome<Error, Model::QueryResellerUserAlarmThresholdResult> QueryResellerUserAlarmThresholdOutcome;
typedef std::future<QueryResellerUserAlarmThresholdOutcome> QueryResellerUserAlarmThresholdOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResellerUserAlarmThresholdRequest&, const QueryResellerUserAlarmThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResellerUserAlarmThresholdAsyncHandler;
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
@@ -737,6 +742,9 @@ namespace AlibabaCloud
QueryResellerAvailableQuotaOutcome queryResellerAvailableQuota(const Model::QueryResellerAvailableQuotaRequest &request)const;
void queryResellerAvailableQuotaAsync(const Model::QueryResellerAvailableQuotaRequest& request, const QueryResellerAvailableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryResellerAvailableQuotaOutcomeCallable queryResellerAvailableQuotaCallable(const Model::QueryResellerAvailableQuotaRequest& request) const;
QueryResellerUserAlarmThresholdOutcome queryResellerUserAlarmThreshold(const Model::QueryResellerUserAlarmThresholdRequest &request)const;
void queryResellerUserAlarmThresholdAsync(const Model::QueryResellerUserAlarmThresholdRequest& request, const QueryResellerUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryResellerUserAlarmThresholdOutcomeCallable queryResellerUserAlarmThresholdCallable(const Model::QueryResellerUserAlarmThresholdRequest& request) const;
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;

View File

@@ -0,0 +1,45 @@
/*
* 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_BSSOPENAPI_MODEL_QUERYRESELLERUSERALARMTHRESHOLDREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERUSERALARMTHRESHOLDREQUEST_H_
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace BssOpenApi {
namespace Model {
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerUserAlarmThresholdRequest : public RpcServiceRequest {
public:
QueryResellerUserAlarmThresholdRequest();
~QueryResellerUserAlarmThresholdRequest();
std::string getAlarmType() const;
void setAlarmType(const std::string &alarmType);
long getOwnerId() const;
void setOwnerId(long ownerId);
private:
std::string alarmType_;
long ownerId_;
};
} // namespace Model
} // namespace BssOpenApi
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERUSERALARMTHRESHOLDREQUEST_H_

View File

@@ -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_BSSOPENAPI_MODEL_QUERYRESELLERUSERALARMTHRESHOLDRESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERUSERALARMTHRESHOLDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerUserAlarmThresholdResult : public ServiceResult
{
public:
struct DataItem
{
std::string thresholdAmount;
int numerator;
int denominator;
int thresholdType;
};
QueryResellerUserAlarmThresholdResult();
explicit QueryResellerUserAlarmThresholdResult(const std::string &payload);
~QueryResellerUserAlarmThresholdResult();
std::string getMessage()const;
std::vector<DataItem> getData()const;
int getCount()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<DataItem> data_;
int count_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERUSERALARMTHRESHOLDRESULT_H_