|
| 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_WEBSITEBUILD_WEBSITEBUILDCLIENT_H_ |
| 18 | +#define ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDCLIENT_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 "WebsiteBuildExport.h" |
| 25 | +#include "model/CreateLogoTaskRequest.h" |
| 26 | +#include "model/CreateLogoTaskResult.h" |
| 27 | +#include "model/GetCreateLogoTaskRequest.h" |
| 28 | +#include "model/GetCreateLogoTaskResult.h" |
| 29 | +#include "model/OperateAppInstanceForPartnerRequest.h" |
| 30 | +#include "model/OperateAppInstanceForPartnerResult.h" |
| 31 | +#include "model/OperateAppServiceForPartnerRequest.h" |
| 32 | +#include "model/OperateAppServiceForPartnerResult.h" |
| 33 | + |
| 34 | + |
| 35 | +namespace AlibabaCloud |
| 36 | +{ |
| 37 | + namespace WebsiteBuild |
| 38 | + { |
| 39 | + class ALIBABACLOUD_WEBSITEBUILD_EXPORT WebsiteBuildClient : public RpcServiceClient |
| 40 | + { |
| 41 | + public: |
| 42 | + typedef Outcome<Error, Model::CreateLogoTaskResult> CreateLogoTaskOutcome; |
| 43 | + typedef std::future<CreateLogoTaskOutcome> CreateLogoTaskOutcomeCallable; |
| 44 | + typedef std::function<void(const WebsiteBuildClient*, const Model::CreateLogoTaskRequest&, const CreateLogoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLogoTaskAsyncHandler; |
| 45 | + typedef Outcome<Error, Model::GetCreateLogoTaskResult> GetCreateLogoTaskOutcome; |
| 46 | + typedef std::future<GetCreateLogoTaskOutcome> GetCreateLogoTaskOutcomeCallable; |
| 47 | + typedef std::function<void(const WebsiteBuildClient*, const Model::GetCreateLogoTaskRequest&, const GetCreateLogoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCreateLogoTaskAsyncHandler; |
| 48 | + typedef Outcome<Error, Model::OperateAppInstanceForPartnerResult> OperateAppInstanceForPartnerOutcome; |
| 49 | + typedef std::future<OperateAppInstanceForPartnerOutcome> OperateAppInstanceForPartnerOutcomeCallable; |
| 50 | + typedef std::function<void(const WebsiteBuildClient*, const Model::OperateAppInstanceForPartnerRequest&, const OperateAppInstanceForPartnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateAppInstanceForPartnerAsyncHandler; |
| 51 | + typedef Outcome<Error, Model::OperateAppServiceForPartnerResult> OperateAppServiceForPartnerOutcome; |
| 52 | + typedef std::future<OperateAppServiceForPartnerOutcome> OperateAppServiceForPartnerOutcomeCallable; |
| 53 | + typedef std::function<void(const WebsiteBuildClient*, const Model::OperateAppServiceForPartnerRequest&, const OperateAppServiceForPartnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateAppServiceForPartnerAsyncHandler; |
| 54 | + |
| 55 | + WebsiteBuildClient(const Credentials &credentials, const ClientConfiguration &configuration); |
| 56 | + WebsiteBuildClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration); |
| 57 | + WebsiteBuildClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); |
| 58 | + ~WebsiteBuildClient(); |
| 59 | + CreateLogoTaskOutcome createLogoTask(const Model::CreateLogoTaskRequest &request)const; |
| 60 | + void createLogoTaskAsync(const Model::CreateLogoTaskRequest& request, const CreateLogoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 61 | + CreateLogoTaskOutcomeCallable createLogoTaskCallable(const Model::CreateLogoTaskRequest& request) const; |
| 62 | + GetCreateLogoTaskOutcome getCreateLogoTask(const Model::GetCreateLogoTaskRequest &request)const; |
| 63 | + void getCreateLogoTaskAsync(const Model::GetCreateLogoTaskRequest& request, const GetCreateLogoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 64 | + GetCreateLogoTaskOutcomeCallable getCreateLogoTaskCallable(const Model::GetCreateLogoTaskRequest& request) const; |
| 65 | + OperateAppInstanceForPartnerOutcome operateAppInstanceForPartner(const Model::OperateAppInstanceForPartnerRequest &request)const; |
| 66 | + void operateAppInstanceForPartnerAsync(const Model::OperateAppInstanceForPartnerRequest& request, const OperateAppInstanceForPartnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 67 | + OperateAppInstanceForPartnerOutcomeCallable operateAppInstanceForPartnerCallable(const Model::OperateAppInstanceForPartnerRequest& request) const; |
| 68 | + OperateAppServiceForPartnerOutcome operateAppServiceForPartner(const Model::OperateAppServiceForPartnerRequest &request)const; |
| 69 | + void operateAppServiceForPartnerAsync(const Model::OperateAppServiceForPartnerRequest& request, const OperateAppServiceForPartnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; |
| 70 | + OperateAppServiceForPartnerOutcomeCallable operateAppServiceForPartnerCallable(const Model::OperateAppServiceForPartnerRequest& request) const; |
| 71 | + |
| 72 | + private: |
| 73 | + std::shared_ptr<EndpointProvider> endpointProvider_; |
| 74 | + }; |
| 75 | + } |
| 76 | +} |
| 77 | + |
| 78 | +#endif // !ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDCLIENT_H_ |
0 commit comments