|
| 1 | +/* |
| 2 | + * Copyright 2009-2017 Alibaba Cloud All rights reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +#ifndef ALIBABACLOUD_MARKETPLACEINTL_MARKETPLACEINTLCLIENT_H_ |
| 18 | +#define ALIBABACLOUD_MARKETPLACEINTL_MARKETPLACEINTLCLIENT_H_ |
| 19 | + |
| 20 | +#include <future> |
| 21 | +#include <alibabacloud/core/AsyncCallerContext.h> |
| 22 | +#include <alibabacloud/core/EndpointProvider.h> |
| 23 | +#include <alibabacloud/core/RpcServiceClient.h> |
| 24 | +#include "MarketplaceIntlExport.h" |
| 25 | +#include "model/DescribePushMeteringDataRequest.h" |
| 26 | +#include "model/DescribePushMeteringDataResult.h" |
| 27 | +#include "model/DescribeSellerInstancesRequest.h" |
| 28 | +#include "model/DescribeSellerInstancesResult.h" |
| 29 | +#include "model/NoticeInstanceUserRequest.h" |
| 30 | +#include "model/NoticeInstanceUserResult.h" |
| 31 | +#include "model/PushMeteringDataRequest.h" |
| 32 | +#include "model/PushMeteringDataResult.h" |
| 33 | + |
| 34 | + |
| 35 | +namespace AlibabaCloud |
| 36 | +{ |
| 37 | + namespace MarketplaceIntl |
| 38 | + { |
| 39 | + class ALIBABACLOUD_MARKETPLACEINTL_EXPORT MarketplaceIntlClient : public RpcServiceClient |
| 40 | + { |
| 41 | + public: |
| 42 | + typedef Outcome<Error, Model::DescribePushMeteringDataResult> DescribePushMeteringDataOutcome; |
| 43 | + typedef std::future<DescribePushMeteringDataOutcome> DescribePushMeteringDataOutcomeCallable; |
| 44 | + typedef std::function<void(const MarketplaceIntlClient*, const Model::DescribePushMeteringDataRequest&, const DescribePushMeteringDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePushMeteringDataAsyncHandler; |
| 45 | + typedef Outcome<Error, Model::DescribeSellerInstancesResult> DescribeSellerInstancesOutcome; |
| 46 | + typedef std::future<DescribeSellerInstancesOutcome> DescribeSellerInstancesOutcomeCallable; |
| 47 | + typedef std::function<void(const MarketplaceIntlClient*, const Model::DescribeSellerInstancesRequest&, const DescribeSellerInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSellerInstancesAsyncHandler; |
| 48 | + typedef Outcome<Error, Model::NoticeInstanceUserResult> NoticeInstanceUserOutcome; |
| 49 | + typedef std::future<NoticeInstanceUserOutcome> NoticeInstanceUserOutcomeCallable; |
| 50 | + typedef std::function<void(const MarketplaceIntlClient*, const Model::NoticeInstanceUserRequest&, const NoticeInstanceUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> NoticeInstanceUserAsyncHandler; |
| 51 | + typedef Outcome<Error, Model::PushMeteringDataResult> PushMeteringDataOutcome; |
| 52 | + typedef std::future<PushMeteringDataOutcome> PushMeteringDataOutcomeCallable; |
| 53 | + typedef std::function<void(const MarketplaceIntlClient*, const Model::PushMeteringDataRequest&, const PushMeteringDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushMeteringDataAsyncHandler; |
| 54 | + |
| 55 | + MarketplaceIntlClient(const Credentials &credentials, const ClientConfiguration &configuration); |
| 56 | + MarketplaceIntlClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration); |
| 57 | + MarketplaceIntlClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); |
| 58 | + ~MarketplaceIntlClient(); |
| 59 | + DescribePushMeteringDataOutcome describePushMeteringData(const Model::DescribePushMeteringDataRequest &request)const; |
| 60 | + void describePushMeteringDataAsync(const Model::DescribePushMeteringDataRequest& request, const DescribePushMeteringDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 61 | + DescribePushMeteringDataOutcomeCallable describePushMeteringDataCallable(const Model::DescribePushMeteringDataRequest& request) const; |
| 62 | + DescribeSellerInstancesOutcome describeSellerInstances(const Model::DescribeSellerInstancesRequest &request)const; |
| 63 | + void describeSellerInstancesAsync(const Model::DescribeSellerInstancesRequest& request, const DescribeSellerInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 64 | + DescribeSellerInstancesOutcomeCallable describeSellerInstancesCallable(const Model::DescribeSellerInstancesRequest& request) const; |
| 65 | + NoticeInstanceUserOutcome noticeInstanceUser(const Model::NoticeInstanceUserRequest &request)const; |
| 66 | + void noticeInstanceUserAsync(const Model::NoticeInstanceUserRequest& request, const NoticeInstanceUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 67 | + NoticeInstanceUserOutcomeCallable noticeInstanceUserCallable(const Model::NoticeInstanceUserRequest& request) const; |
| 68 | + PushMeteringDataOutcome pushMeteringData(const Model::PushMeteringDataRequest &request)const; |
| 69 | + void pushMeteringDataAsync(const Model::PushMeteringDataRequest& request, const PushMeteringDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 70 | + PushMeteringDataOutcomeCallable pushMeteringDataCallable(const Model::PushMeteringDataRequest& request) const; |
| 71 | + |
| 72 | + private: |
| 73 | + std::shared_ptr<EndpointProvider> endpointProvider_; |
| 74 | + }; |
| 75 | + } |
| 76 | +} |
| 77 | + |
| 78 | +#endif // !ALIBABACLOUD_MARKETPLACEINTL_MARKETPLACEINTLCLIENT_H_ |
0 commit comments