From 8f4a119a7e10b87851eb13e3c2fa9d7ed567041d Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 13 Aug 2024 09:20:58 +0000 Subject: [PATCH] =?UTF-8?q?-DescribeVodCertificateDetail,=20DescribeVodCer?= =?UTF-8?q?tificateList=E5=A2=9E=E5=8A=A0=E8=BF=94=E5=9B=9E=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- vod/CMakeLists.txt | 8 ++ vod/include/alibabacloud/vod/VodClient.h | 16 ++++ .../vod/model/CreateAppInfoRequest.h | 3 + .../model/DescribeVodCertificateListResult.h | 9 ++- .../vod/model/DescribeVodDomainDetailResult.h | 1 + .../DescribeVodTieringStorageDataRequest.h | 57 +++++++++++++ .../DescribeVodTieringStorageDataResult.h | 59 ++++++++++++++ ...ibeVodTieringStorageRetrievalDataRequest.h | 57 +++++++++++++ ...ribeVodTieringStorageRetrievalDataResult.h | 61 ++++++++++++++ .../vod/model/GetAppInfosResult.h | 1 + .../vod/model/ListAppInfoRequest.h | 3 + .../vod/model/ListAppInfoResult.h | 1 + .../vod/model/PreloadVodObjectCachesRequest.h | 15 +++- vod/src/VodClient.cc | 72 +++++++++++++++++ vod/src/model/CreateAppInfoRequest.cc | 9 +++ .../model/DescribeVodCertificateListResult.cc | 14 ++++ .../model/DescribeVodDomainDetailResult.cc | 2 + .../DescribeVodTieringStorageDataRequest.cc | 81 +++++++++++++++++++ .../DescribeVodTieringStorageDataResult.cc | 65 +++++++++++++++ ...beVodTieringStorageRetrievalDataRequest.cc | 81 +++++++++++++++++++ ...ibeVodTieringStorageRetrievalDataResult.cc | 69 ++++++++++++++++ vod/src/model/GetAppInfosResult.cc | 2 + vod/src/model/ListAppInfoRequest.cc | 9 +++ vod/src/model/ListAppInfoResult.cc | 2 + .../model/PreloadVodObjectCachesRequest.cc | 45 ++++++++--- 26 files changed, 730 insertions(+), 14 deletions(-) create mode 100644 vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataRequest.h create mode 100644 vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataResult.h create mode 100644 vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataRequest.h create mode 100644 vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataResult.h create mode 100644 vod/src/model/DescribeVodTieringStorageDataRequest.cc create mode 100644 vod/src/model/DescribeVodTieringStorageDataResult.cc create mode 100644 vod/src/model/DescribeVodTieringStorageRetrievalDataRequest.cc create mode 100644 vod/src/model/DescribeVodTieringStorageRetrievalDataResult.cc diff --git a/VERSION b/VERSION index 3ab21a97e..67e0800c5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1969 \ No newline at end of file +1.36.1970 \ No newline at end of file diff --git a/vod/CMakeLists.txt b/vod/CMakeLists.txt index 85349e972..256268400 100644 --- a/vod/CMakeLists.txt +++ b/vod/CMakeLists.txt @@ -161,6 +161,10 @@ set(vod_public_header_model include/alibabacloud/vod/model/DescribeVodRefreshTasksResult.h include/alibabacloud/vod/model/DescribeVodStorageDataRequest.h include/alibabacloud/vod/model/DescribeVodStorageDataResult.h + include/alibabacloud/vod/model/DescribeVodTieringStorageDataRequest.h + include/alibabacloud/vod/model/DescribeVodTieringStorageDataResult.h + include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataRequest.h + include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataResult.h include/alibabacloud/vod/model/DescribeVodTranscodeDataRequest.h include/alibabacloud/vod/model/DescribeVodTranscodeDataResult.h include/alibabacloud/vod/model/DescribeVodUserDomainsRequest.h @@ -500,6 +504,10 @@ set(vod_src src/model/DescribeVodRefreshTasksResult.cc src/model/DescribeVodStorageDataRequest.cc src/model/DescribeVodStorageDataResult.cc + src/model/DescribeVodTieringStorageDataRequest.cc + src/model/DescribeVodTieringStorageDataResult.cc + src/model/DescribeVodTieringStorageRetrievalDataRequest.cc + src/model/DescribeVodTieringStorageRetrievalDataResult.cc src/model/DescribeVodTranscodeDataRequest.cc src/model/DescribeVodTranscodeDataResult.cc src/model/DescribeVodUserDomainsRequest.cc diff --git a/vod/include/alibabacloud/vod/VodClient.h b/vod/include/alibabacloud/vod/VodClient.h index 999b068f5..dee00d918 100644 --- a/vod/include/alibabacloud/vod/VodClient.h +++ b/vod/include/alibabacloud/vod/VodClient.h @@ -162,6 +162,10 @@ #include "model/DescribeVodRefreshTasksResult.h" #include "model/DescribeVodStorageDataRequest.h" #include "model/DescribeVodStorageDataResult.h" +#include "model/DescribeVodTieringStorageDataRequest.h" +#include "model/DescribeVodTieringStorageDataResult.h" +#include "model/DescribeVodTieringStorageRetrievalDataRequest.h" +#include "model/DescribeVodTieringStorageRetrievalDataResult.h" #include "model/DescribeVodTranscodeDataRequest.h" #include "model/DescribeVodTranscodeDataResult.h" #include "model/DescribeVodUserDomainsRequest.h" @@ -577,6 +581,12 @@ namespace AlibabaCloud typedef Outcome DescribeVodStorageDataOutcome; typedef std::future DescribeVodStorageDataOutcomeCallable; typedef std::function&)> DescribeVodStorageDataAsyncHandler; + typedef Outcome DescribeVodTieringStorageDataOutcome; + typedef std::future DescribeVodTieringStorageDataOutcomeCallable; + typedef std::function&)> DescribeVodTieringStorageDataAsyncHandler; + typedef Outcome DescribeVodTieringStorageRetrievalDataOutcome; + typedef std::future DescribeVodTieringStorageRetrievalDataOutcomeCallable; + typedef std::function&)> DescribeVodTieringStorageRetrievalDataAsyncHandler; typedef Outcome DescribeVodTranscodeDataOutcome; typedef std::future DescribeVodTranscodeDataOutcomeCallable; typedef std::function&)> DescribeVodTranscodeDataAsyncHandler; @@ -1086,6 +1096,12 @@ namespace AlibabaCloud DescribeVodStorageDataOutcome describeVodStorageData(const Model::DescribeVodStorageDataRequest &request)const; void describeVodStorageDataAsync(const Model::DescribeVodStorageDataRequest& request, const DescribeVodStorageDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVodStorageDataOutcomeCallable describeVodStorageDataCallable(const Model::DescribeVodStorageDataRequest& request) const; + DescribeVodTieringStorageDataOutcome describeVodTieringStorageData(const Model::DescribeVodTieringStorageDataRequest &request)const; + void describeVodTieringStorageDataAsync(const Model::DescribeVodTieringStorageDataRequest& request, const DescribeVodTieringStorageDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVodTieringStorageDataOutcomeCallable describeVodTieringStorageDataCallable(const Model::DescribeVodTieringStorageDataRequest& request) const; + DescribeVodTieringStorageRetrievalDataOutcome describeVodTieringStorageRetrievalData(const Model::DescribeVodTieringStorageRetrievalDataRequest &request)const; + void describeVodTieringStorageRetrievalDataAsync(const Model::DescribeVodTieringStorageRetrievalDataRequest& request, const DescribeVodTieringStorageRetrievalDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVodTieringStorageRetrievalDataOutcomeCallable describeVodTieringStorageRetrievalDataCallable(const Model::DescribeVodTieringStorageRetrievalDataRequest& request) const; DescribeVodTranscodeDataOutcome describeVodTranscodeData(const Model::DescribeVodTranscodeDataRequest &request)const; void describeVodTranscodeDataAsync(const Model::DescribeVodTranscodeDataRequest& request, const DescribeVodTranscodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVodTranscodeDataOutcomeCallable describeVodTranscodeDataCallable(const Model::DescribeVodTranscodeDataRequest& request) const; diff --git a/vod/include/alibabacloud/vod/model/CreateAppInfoRequest.h b/vod/include/alibabacloud/vod/model/CreateAppInfoRequest.h index 3c4bcf589..b69948b82 100644 --- a/vod/include/alibabacloud/vod/model/CreateAppInfoRequest.h +++ b/vod/include/alibabacloud/vod/model/CreateAppInfoRequest.h @@ -36,6 +36,8 @@ public: void setResourceRealOwnerId(long resourceRealOwnerId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getAppName() const; void setAppName(const std::string &appName); @@ -43,6 +45,7 @@ private: std::string description_; long resourceRealOwnerId_; std::string accessKeyId_; + std::string resourceGroupId_; std::string appName_; }; } // namespace Model diff --git a/vod/include/alibabacloud/vod/model/DescribeVodCertificateListResult.h b/vod/include/alibabacloud/vod/model/DescribeVodCertificateListResult.h index d57b5f5c9..0d50fb3f2 100644 --- a/vod/include/alibabacloud/vod/model/DescribeVodCertificateListResult.h +++ b/vod/include/alibabacloud/vod/model/DescribeVodCertificateListResult.h @@ -37,11 +37,18 @@ namespace AlibabaCloud struct Cert { std::string fingerprint; + long endTime; std::string issuer; + std::string instanceId; long certId; + long createTime; + std::string algorithm; + bool domainMatchCert; + std::string common; + std::string certIdentifier; std::string certName; long lastTime; - std::string common; + std::string signAlgorithm; }; std::vector certList; int count; diff --git a/vod/include/alibabacloud/vod/model/DescribeVodDomainDetailResult.h b/vod/include/alibabacloud/vod/model/DescribeVodDomainDetailResult.h index 575fa3152..9b4322b22 100644 --- a/vod/include/alibabacloud/vod/model/DescribeVodDomainDetailResult.h +++ b/vod/include/alibabacloud/vod/model/DescribeVodDomainDetailResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::string content; int port; std::string enabled; + std::string weight; }; std::string description; std::string scope; diff --git a/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataRequest.h b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataRequest.h new file mode 100644 index 000000000..44e153946 --- /dev/null +++ b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataRequest.h @@ -0,0 +1,57 @@ +/* + * 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_VOD_MODEL_DESCRIBEVODTIERINGSTORAGEDATAREQUEST_H_ +#define ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGEDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vod { +namespace Model { +class ALIBABACLOUD_VOD_EXPORT DescribeVodTieringStorageDataRequest : public RpcServiceRequest { +public: + DescribeVodTieringStorageDataRequest(); + ~DescribeVodTieringStorageDataRequest(); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSplitBy() const; + void setSplitBy(const std::string &splitBy); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getStorageClass() const; + void setStorageClass(const std::string &storageClass); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string startTime_; + std::string splitBy_; + std::string endTime_; + long ownerId_; + std::string storageClass_; + std::string region_; +}; +} // namespace Model +} // namespace Vod +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGEDATAREQUEST_H_ diff --git a/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataResult.h b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataResult.h new file mode 100644 index 000000000..d67651269 --- /dev/null +++ b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageDataResult.h @@ -0,0 +1,59 @@ +/* + * 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_VOD_MODEL_DESCRIBEVODTIERINGSTORAGEDATARESULT_H_ +#define ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT DescribeVodTieringStorageDataResult : public ServiceResult + { + public: + struct DataModule + { + long lessthanMonthDatasize; + long storageUtilization; + std::string storageClass; + std::string region; + std::string timeStamp; + }; + + + DescribeVodTieringStorageDataResult(); + explicit DescribeVodTieringStorageDataResult(const std::string &payload); + ~DescribeVodTieringStorageDataResult(); + std::vector getStorageData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector storageData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGEDATARESULT_H_ \ No newline at end of file diff --git a/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataRequest.h b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataRequest.h new file mode 100644 index 000000000..2bf66e1de --- /dev/null +++ b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataRequest.h @@ -0,0 +1,57 @@ +/* + * 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_VOD_MODEL_DESCRIBEVODTIERINGSTORAGERETRIEVALDATAREQUEST_H_ +#define ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGERETRIEVALDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vod { +namespace Model { +class ALIBABACLOUD_VOD_EXPORT DescribeVodTieringStorageRetrievalDataRequest : public RpcServiceRequest { +public: + DescribeVodTieringStorageRetrievalDataRequest(); + ~DescribeVodTieringStorageRetrievalDataRequest(); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSplitBy() const; + void setSplitBy(const std::string &splitBy); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getStorageClass() const; + void setStorageClass(const std::string &storageClass); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string startTime_; + std::string splitBy_; + std::string endTime_; + long ownerId_; + std::string storageClass_; + std::string region_; +}; +} // namespace Model +} // namespace Vod +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGERETRIEVALDATAREQUEST_H_ diff --git a/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataResult.h b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataResult.h new file mode 100644 index 000000000..ce3be723d --- /dev/null +++ b/vod/include/alibabacloud/vod/model/DescribeVodTieringStorageRetrievalDataResult.h @@ -0,0 +1,61 @@ +/* + * 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_VOD_MODEL_DESCRIBEVODTIERINGSTORAGERETRIEVALDATARESULT_H_ +#define ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGERETRIEVALDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT DescribeVodTieringStorageRetrievalDataResult : public ServiceResult + { + public: + struct RetrievalDataItem + { + long cABulkRetrievalData; + long cAStdRetrievalData; + std::string storageClass; + std::string region; + long cAHighPriorRetrievalData; + long retrievalData; + std::string timeStamp; + }; + + + DescribeVodTieringStorageRetrievalDataResult(); + explicit DescribeVodTieringStorageRetrievalDataResult(const std::string &payload); + ~DescribeVodTieringStorageRetrievalDataResult(); + std::vector getRetrievalData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector retrievalData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_DESCRIBEVODTIERINGSTORAGERETRIEVALDATARESULT_H_ \ No newline at end of file diff --git a/vod/include/alibabacloud/vod/model/GetAppInfosResult.h b/vod/include/alibabacloud/vod/model/GetAppInfosResult.h index 6d8fdb1aa..5e4b02d31 100644 --- a/vod/include/alibabacloud/vod/model/GetAppInfosResult.h +++ b/vod/include/alibabacloud/vod/model/GetAppInfosResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string type; std::string description; std::string appId; + std::string resourceGroupId; std::string creationTime; std::string modificationTime; std::string appName; diff --git a/vod/include/alibabacloud/vod/model/ListAppInfoRequest.h b/vod/include/alibabacloud/vod/model/ListAppInfoRequest.h index d75516d34..52b3a3a0f 100644 --- a/vod/include/alibabacloud/vod/model/ListAppInfoRequest.h +++ b/vod/include/alibabacloud/vod/model/ListAppInfoRequest.h @@ -38,6 +38,8 @@ public: void setResourceRealOwnerId(long resourceRealOwnerId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); int getPageSize() const; void setPageSize(int pageSize); Tag getTag() const; @@ -50,6 +52,7 @@ public: private: long resourceRealOwnerId_; std::string accessKeyId_; + std::string resourceGroupId_; int pageSize_; Tag tag_; int pageNo_; diff --git a/vod/include/alibabacloud/vod/model/ListAppInfoResult.h b/vod/include/alibabacloud/vod/model/ListAppInfoResult.h index 17386c45f..7ad84a13d 100644 --- a/vod/include/alibabacloud/vod/model/ListAppInfoResult.h +++ b/vod/include/alibabacloud/vod/model/ListAppInfoResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud std::string type; std::string description; std::string appId; + std::string resourceGroupId; std::string creationTime; std::string modificationTime; std::string regionId; diff --git a/vod/include/alibabacloud/vod/model/PreloadVodObjectCachesRequest.h b/vod/include/alibabacloud/vod/model/PreloadVodObjectCachesRequest.h index 5fbd7070c..ce4dc21e4 100644 --- a/vod/include/alibabacloud/vod/model/PreloadVodObjectCachesRequest.h +++ b/vod/include/alibabacloud/vod/model/PreloadVodObjectCachesRequest.h @@ -32,15 +32,24 @@ public: ~PreloadVodObjectCachesRequest(); std::string getObjectPath() const; void setObjectPath(const std::string &objectPath); - long getOwnerId() const; - void setOwnerId(long ownerId); std::string getSecurityToken() const; void setSecurityToken(const std::string &securityToken); + bool getL2Preload() const; + void setL2Preload(bool l2Preload); + std::string getArea() const; + void setArea(const std::string &area); + std::string getWithHeader() const; + void setWithHeader(const std::string &withHeader); + long getOwnerId() const; + void setOwnerId(long ownerId); private: std::string objectPath_; - long ownerId_; std::string securityToken_; + bool l2Preload_; + std::string area_; + std::string withHeader_; + long ownerId_; }; } // namespace Model } // namespace Vod diff --git a/vod/src/VodClient.cc b/vod/src/VodClient.cc index 5894bf651..32f775f9d 100644 --- a/vod/src/VodClient.cc +++ b/vod/src/VodClient.cc @@ -2571,6 +2571,78 @@ VodClient::DescribeVodStorageDataOutcomeCallable VodClient::describeVodStorageDa return task->get_future(); } +VodClient::DescribeVodTieringStorageDataOutcome VodClient::describeVodTieringStorageData(const DescribeVodTieringStorageDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVodTieringStorageDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVodTieringStorageDataOutcome(DescribeVodTieringStorageDataResult(outcome.result())); + else + return DescribeVodTieringStorageDataOutcome(outcome.error()); +} + +void VodClient::describeVodTieringStorageDataAsync(const DescribeVodTieringStorageDataRequest& request, const DescribeVodTieringStorageDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVodTieringStorageData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DescribeVodTieringStorageDataOutcomeCallable VodClient::describeVodTieringStorageDataCallable(const DescribeVodTieringStorageDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVodTieringStorageData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VodClient::DescribeVodTieringStorageRetrievalDataOutcome VodClient::describeVodTieringStorageRetrievalData(const DescribeVodTieringStorageRetrievalDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVodTieringStorageRetrievalDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVodTieringStorageRetrievalDataOutcome(DescribeVodTieringStorageRetrievalDataResult(outcome.result())); + else + return DescribeVodTieringStorageRetrievalDataOutcome(outcome.error()); +} + +void VodClient::describeVodTieringStorageRetrievalDataAsync(const DescribeVodTieringStorageRetrievalDataRequest& request, const DescribeVodTieringStorageRetrievalDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVodTieringStorageRetrievalData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DescribeVodTieringStorageRetrievalDataOutcomeCallable VodClient::describeVodTieringStorageRetrievalDataCallable(const DescribeVodTieringStorageRetrievalDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVodTieringStorageRetrievalData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::DescribeVodTranscodeDataOutcome VodClient::describeVodTranscodeData(const DescribeVodTranscodeDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/vod/src/model/CreateAppInfoRequest.cc b/vod/src/model/CreateAppInfoRequest.cc index aa8e23c72..59c39bf8c 100644 --- a/vod/src/model/CreateAppInfoRequest.cc +++ b/vod/src/model/CreateAppInfoRequest.cc @@ -52,6 +52,15 @@ void CreateAppInfoRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string CreateAppInfoRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateAppInfoRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateAppInfoRequest::getAppName() const { return appName_; } diff --git a/vod/src/model/DescribeVodCertificateListResult.cc b/vod/src/model/DescribeVodCertificateListResult.cc index 9ffc5a603..154cf1e9d 100644 --- a/vod/src/model/DescribeVodCertificateListResult.cc +++ b/vod/src/model/DescribeVodCertificateListResult.cc @@ -58,6 +58,20 @@ void DescribeVodCertificateListResult::parse(const std::string &payload) certObject.certId = std::stol(certificateListModelNodeCertListCert["CertId"].asString()); if(!certificateListModelNodeCertListCert["Common"].isNull()) certObject.common = certificateListModelNodeCertListCert["Common"].asString(); + if(!certificateListModelNodeCertListCert["CreateTime"].isNull()) + certObject.createTime = std::stol(certificateListModelNodeCertListCert["CreateTime"].asString()); + if(!certificateListModelNodeCertListCert["EndTime"].isNull()) + certObject.endTime = std::stol(certificateListModelNodeCertListCert["EndTime"].asString()); + if(!certificateListModelNodeCertListCert["Algorithm"].isNull()) + certObject.algorithm = certificateListModelNodeCertListCert["Algorithm"].asString(); + if(!certificateListModelNodeCertListCert["CertIdentifier"].isNull()) + certObject.certIdentifier = certificateListModelNodeCertListCert["CertIdentifier"].asString(); + if(!certificateListModelNodeCertListCert["DomainMatchCert"].isNull()) + certObject.domainMatchCert = certificateListModelNodeCertListCert["DomainMatchCert"].asString() == "true"; + if(!certificateListModelNodeCertListCert["InstanceId"].isNull()) + certObject.instanceId = certificateListModelNodeCertListCert["InstanceId"].asString(); + if(!certificateListModelNodeCertListCert["SignAlgorithm"].isNull()) + certObject.signAlgorithm = certificateListModelNodeCertListCert["SignAlgorithm"].asString(); certificateListModel_.certList.push_back(certObject); } diff --git a/vod/src/model/DescribeVodDomainDetailResult.cc b/vod/src/model/DescribeVodDomainDetailResult.cc index b905723ca..4f57d2352 100644 --- a/vod/src/model/DescribeVodDomainDetailResult.cc +++ b/vod/src/model/DescribeVodDomainDetailResult.cc @@ -76,6 +76,8 @@ void DescribeVodDomainDetailResult::parse(const std::string &payload) sourceObject.content = domainDetailNodeSourcesSource["Content"].asString(); if(!domainDetailNodeSourcesSource["Enabled"].isNull()) sourceObject.enabled = domainDetailNodeSourcesSource["Enabled"].asString(); + if(!domainDetailNodeSourcesSource["Weight"].isNull()) + sourceObject.weight = domainDetailNodeSourcesSource["Weight"].asString(); domainDetail_.sources.push_back(sourceObject); } diff --git a/vod/src/model/DescribeVodTieringStorageDataRequest.cc b/vod/src/model/DescribeVodTieringStorageDataRequest.cc new file mode 100644 index 000000000..2e4a68d21 --- /dev/null +++ b/vod/src/model/DescribeVodTieringStorageDataRequest.cc @@ -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 + +using AlibabaCloud::Vod::Model::DescribeVodTieringStorageDataRequest; + +DescribeVodTieringStorageDataRequest::DescribeVodTieringStorageDataRequest() + : RpcServiceRequest("vod", "2017-03-21", "DescribeVodTieringStorageData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVodTieringStorageDataRequest::~DescribeVodTieringStorageDataRequest() {} + +std::string DescribeVodTieringStorageDataRequest::getStartTime() const { + return startTime_; +} + +void DescribeVodTieringStorageDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeVodTieringStorageDataRequest::getSplitBy() const { + return splitBy_; +} + +void DescribeVodTieringStorageDataRequest::setSplitBy(const std::string &splitBy) { + splitBy_ = splitBy; + setParameter(std::string("SplitBy"), splitBy); +} + +std::string DescribeVodTieringStorageDataRequest::getEndTime() const { + return endTime_; +} + +void DescribeVodTieringStorageDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeVodTieringStorageDataRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVodTieringStorageDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVodTieringStorageDataRequest::getStorageClass() const { + return storageClass_; +} + +void DescribeVodTieringStorageDataRequest::setStorageClass(const std::string &storageClass) { + storageClass_ = storageClass; + setParameter(std::string("StorageClass"), storageClass); +} + +std::string DescribeVodTieringStorageDataRequest::getRegion() const { + return region_; +} + +void DescribeVodTieringStorageDataRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/vod/src/model/DescribeVodTieringStorageDataResult.cc b/vod/src/model/DescribeVodTieringStorageDataResult.cc new file mode 100644 index 000000000..0b4b24371 --- /dev/null +++ b/vod/src/model/DescribeVodTieringStorageDataResult.cc @@ -0,0 +1,65 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vod; +using namespace AlibabaCloud::Vod::Model; + +DescribeVodTieringStorageDataResult::DescribeVodTieringStorageDataResult() : + ServiceResult() +{} + +DescribeVodTieringStorageDataResult::DescribeVodTieringStorageDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVodTieringStorageDataResult::~DescribeVodTieringStorageDataResult() +{} + +void DescribeVodTieringStorageDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStorageDataNode = value["StorageData"]["DataModule"]; + for (auto valueStorageDataDataModule : allStorageDataNode) + { + DataModule storageDataObject; + if(!valueStorageDataDataModule["TimeStamp"].isNull()) + storageDataObject.timeStamp = valueStorageDataDataModule["TimeStamp"].asString(); + if(!valueStorageDataDataModule["Region"].isNull()) + storageDataObject.region = valueStorageDataDataModule["Region"].asString(); + if(!valueStorageDataDataModule["StorageClass"].isNull()) + storageDataObject.storageClass = valueStorageDataDataModule["StorageClass"].asString(); + if(!valueStorageDataDataModule["StorageUtilization"].isNull()) + storageDataObject.storageUtilization = std::stol(valueStorageDataDataModule["StorageUtilization"].asString()); + if(!valueStorageDataDataModule["LessthanMonthDatasize"].isNull()) + storageDataObject.lessthanMonthDatasize = std::stol(valueStorageDataDataModule["LessthanMonthDatasize"].asString()); + storageData_.push_back(storageDataObject); + } + +} + +std::vector DescribeVodTieringStorageDataResult::getStorageData()const +{ + return storageData_; +} + diff --git a/vod/src/model/DescribeVodTieringStorageRetrievalDataRequest.cc b/vod/src/model/DescribeVodTieringStorageRetrievalDataRequest.cc new file mode 100644 index 000000000..4c9955d06 --- /dev/null +++ b/vod/src/model/DescribeVodTieringStorageRetrievalDataRequest.cc @@ -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 + +using AlibabaCloud::Vod::Model::DescribeVodTieringStorageRetrievalDataRequest; + +DescribeVodTieringStorageRetrievalDataRequest::DescribeVodTieringStorageRetrievalDataRequest() + : RpcServiceRequest("vod", "2017-03-21", "DescribeVodTieringStorageRetrievalData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVodTieringStorageRetrievalDataRequest::~DescribeVodTieringStorageRetrievalDataRequest() {} + +std::string DescribeVodTieringStorageRetrievalDataRequest::getStartTime() const { + return startTime_; +} + +void DescribeVodTieringStorageRetrievalDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeVodTieringStorageRetrievalDataRequest::getSplitBy() const { + return splitBy_; +} + +void DescribeVodTieringStorageRetrievalDataRequest::setSplitBy(const std::string &splitBy) { + splitBy_ = splitBy; + setParameter(std::string("SplitBy"), splitBy); +} + +std::string DescribeVodTieringStorageRetrievalDataRequest::getEndTime() const { + return endTime_; +} + +void DescribeVodTieringStorageRetrievalDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeVodTieringStorageRetrievalDataRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVodTieringStorageRetrievalDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVodTieringStorageRetrievalDataRequest::getStorageClass() const { + return storageClass_; +} + +void DescribeVodTieringStorageRetrievalDataRequest::setStorageClass(const std::string &storageClass) { + storageClass_ = storageClass; + setParameter(std::string("StorageClass"), storageClass); +} + +std::string DescribeVodTieringStorageRetrievalDataRequest::getRegion() const { + return region_; +} + +void DescribeVodTieringStorageRetrievalDataRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/vod/src/model/DescribeVodTieringStorageRetrievalDataResult.cc b/vod/src/model/DescribeVodTieringStorageRetrievalDataResult.cc new file mode 100644 index 000000000..d0c4e66e4 --- /dev/null +++ b/vod/src/model/DescribeVodTieringStorageRetrievalDataResult.cc @@ -0,0 +1,69 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vod; +using namespace AlibabaCloud::Vod::Model; + +DescribeVodTieringStorageRetrievalDataResult::DescribeVodTieringStorageRetrievalDataResult() : + ServiceResult() +{} + +DescribeVodTieringStorageRetrievalDataResult::DescribeVodTieringStorageRetrievalDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVodTieringStorageRetrievalDataResult::~DescribeVodTieringStorageRetrievalDataResult() +{} + +void DescribeVodTieringStorageRetrievalDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRetrievalDataNode = value["RetrievalData"]["RetrievalDataItem"]; + for (auto valueRetrievalDataRetrievalDataItem : allRetrievalDataNode) + { + RetrievalDataItem retrievalDataObject; + if(!valueRetrievalDataRetrievalDataItem["TimeStamp"].isNull()) + retrievalDataObject.timeStamp = valueRetrievalDataRetrievalDataItem["TimeStamp"].asString(); + if(!valueRetrievalDataRetrievalDataItem["Region"].isNull()) + retrievalDataObject.region = valueRetrievalDataRetrievalDataItem["Region"].asString(); + if(!valueRetrievalDataRetrievalDataItem["StorageClass"].isNull()) + retrievalDataObject.storageClass = valueRetrievalDataRetrievalDataItem["StorageClass"].asString(); + if(!valueRetrievalDataRetrievalDataItem["RetrievalData"].isNull()) + retrievalDataObject.retrievalData = std::stol(valueRetrievalDataRetrievalDataItem["RetrievalData"].asString()); + if(!valueRetrievalDataRetrievalDataItem["CAStdRetrievalData"].isNull()) + retrievalDataObject.cAStdRetrievalData = std::stol(valueRetrievalDataRetrievalDataItem["CAStdRetrievalData"].asString()); + if(!valueRetrievalDataRetrievalDataItem["CABulkRetrievalData"].isNull()) + retrievalDataObject.cABulkRetrievalData = std::stol(valueRetrievalDataRetrievalDataItem["CABulkRetrievalData"].asString()); + if(!valueRetrievalDataRetrievalDataItem["CAHighPriorRetrievalData"].isNull()) + retrievalDataObject.cAHighPriorRetrievalData = std::stol(valueRetrievalDataRetrievalDataItem["CAHighPriorRetrievalData"].asString()); + retrievalData_.push_back(retrievalDataObject); + } + +} + +std::vector DescribeVodTieringStorageRetrievalDataResult::getRetrievalData()const +{ + return retrievalData_; +} + diff --git a/vod/src/model/GetAppInfosResult.cc b/vod/src/model/GetAppInfosResult.cc index 4fc1e2f31..d32e294f9 100644 --- a/vod/src/model/GetAppInfosResult.cc +++ b/vod/src/model/GetAppInfosResult.cc @@ -57,6 +57,8 @@ void GetAppInfosResult::parse(const std::string &payload) appInfoListObject.appId = valueAppInfoListAppInfo["AppId"].asString(); if(!valueAppInfoListAppInfo["ModificationTime"].isNull()) appInfoListObject.modificationTime = valueAppInfoListAppInfo["ModificationTime"].asString(); + if(!valueAppInfoListAppInfo["ResourceGroupId"].isNull()) + appInfoListObject.resourceGroupId = valueAppInfoListAppInfo["ResourceGroupId"].asString(); appInfoList_.push_back(appInfoListObject); } auto allNonExistAppIds = value["NonExistAppIds"]["AppId"]; diff --git a/vod/src/model/ListAppInfoRequest.cc b/vod/src/model/ListAppInfoRequest.cc index 8cd311d70..f6113fd35 100644 --- a/vod/src/model/ListAppInfoRequest.cc +++ b/vod/src/model/ListAppInfoRequest.cc @@ -43,6 +43,15 @@ void ListAppInfoRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ListAppInfoRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListAppInfoRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + int ListAppInfoRequest::getPageSize() const { return pageSize_; } diff --git a/vod/src/model/ListAppInfoResult.cc b/vod/src/model/ListAppInfoResult.cc index aaf71ddc9..5298a1c9d 100644 --- a/vod/src/model/ListAppInfoResult.cc +++ b/vod/src/model/ListAppInfoResult.cc @@ -59,6 +59,8 @@ void ListAppInfoResult::parse(const std::string &payload) appInfoListObject.modificationTime = valueAppInfoListAppInfo["ModificationTime"].asString(); if(!valueAppInfoListAppInfo["RegionId"].isNull()) appInfoListObject.regionId = valueAppInfoListAppInfo["RegionId"].asString(); + if(!valueAppInfoListAppInfo["ResourceGroupId"].isNull()) + appInfoListObject.resourceGroupId = valueAppInfoListAppInfo["ResourceGroupId"].asString(); auto allTagsNode = valueAppInfoListAppInfo["Tags"]["tagsItem"]; for (auto valueAppInfoListAppInfoTagstagsItem : allTagsNode) { diff --git a/vod/src/model/PreloadVodObjectCachesRequest.cc b/vod/src/model/PreloadVodObjectCachesRequest.cc index 23ee27444..4d1204a5a 100644 --- a/vod/src/model/PreloadVodObjectCachesRequest.cc +++ b/vod/src/model/PreloadVodObjectCachesRequest.cc @@ -34,15 +34,6 @@ void PreloadVodObjectCachesRequest::setObjectPath(const std::string &objectPath) setParameter(std::string("ObjectPath"), objectPath); } -long PreloadVodObjectCachesRequest::getOwnerId() const { - return ownerId_; -} - -void PreloadVodObjectCachesRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string PreloadVodObjectCachesRequest::getSecurityToken() const { return securityToken_; } @@ -52,3 +43,39 @@ void PreloadVodObjectCachesRequest::setSecurityToken(const std::string &security setParameter(std::string("SecurityToken"), securityToken); } +bool PreloadVodObjectCachesRequest::getL2Preload() const { + return l2Preload_; +} + +void PreloadVodObjectCachesRequest::setL2Preload(bool l2Preload) { + l2Preload_ = l2Preload; + setParameter(std::string("L2Preload"), l2Preload ? "true" : "false"); +} + +std::string PreloadVodObjectCachesRequest::getArea() const { + return area_; +} + +void PreloadVodObjectCachesRequest::setArea(const std::string &area) { + area_ = area; + setParameter(std::string("Area"), area); +} + +std::string PreloadVodObjectCachesRequest::getWithHeader() const { + return withHeader_; +} + +void PreloadVodObjectCachesRequest::setWithHeader(const std::string &withHeader) { + withHeader_ = withHeader; + setParameter(std::string("WithHeader"), withHeader); +} + +long PreloadVodObjectCachesRequest::getOwnerId() const { + return ownerId_; +} + +void PreloadVodObjectCachesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} +