Kaynağa Gözat

Generated 2016-11-01 for live.

sdk-team 1 yıl önce
ebeveyn
işleme
43d3080407

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.2025
+1.36.2026

+ 12 - 0
live/CMakeLists.txt

@@ -505,6 +505,8 @@ set(live_public_header_model
 	include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h
 	include/alibabacloud/live/model/DescribeLiveUserTagsRequest.h
 	include/alibabacloud/live/model/DescribeLiveUserTagsResult.h
+	include/alibabacloud/live/model/DescribeLiveVerifyContentRequest.h
+	include/alibabacloud/live/model/DescribeLiveVerifyContentResult.h
 	include/alibabacloud/live/model/DescribeMeterLiveBypassDurationRequest.h
 	include/alibabacloud/live/model/DescribeMeterLiveBypassDurationResult.h
 	include/alibabacloud/live/model/DescribeMixStreamListRequest.h
@@ -627,6 +629,8 @@ set(live_public_header_model
 	include/alibabacloud/live/model/ListRtcMPUEventSubRecordResult.h
 	include/alibabacloud/live/model/ListRtcMPUTaskDetailRequest.h
 	include/alibabacloud/live/model/ListRtcMPUTaskDetailResult.h
+	include/alibabacloud/live/model/LiveUpstreamQosDataRequest.h
+	include/alibabacloud/live/model/LiveUpstreamQosDataResult.h
 	include/alibabacloud/live/model/MiguLivePullToPushStartRequest.h
 	include/alibabacloud/live/model/MiguLivePullToPushStartResult.h
 	include/alibabacloud/live/model/MiguLivePullToPushStatusRequest.h
@@ -765,6 +769,8 @@ set(live_public_header_model
 	include/alibabacloud/live/model/StopPlaylistResult.h
 	include/alibabacloud/live/model/StopRtcAsrTaskRequest.h
 	include/alibabacloud/live/model/StopRtcAsrTaskResult.h
+	include/alibabacloud/live/model/TagLiveResourcesRequest.h
+	include/alibabacloud/live/model/TagLiveResourcesResult.h
 	include/alibabacloud/live/model/UnbanLiveMessageGroupRequest.h
 	include/alibabacloud/live/model/UnbanLiveMessageGroupResult.h
 	include/alibabacloud/live/model/UpdateCasterResourceGroupRequest.h
@@ -1318,6 +1324,8 @@ set(live_src
 	src/model/DescribeLiveUserDomainsResult.cc
 	src/model/DescribeLiveUserTagsRequest.cc
 	src/model/DescribeLiveUserTagsResult.cc
+	src/model/DescribeLiveVerifyContentRequest.cc
+	src/model/DescribeLiveVerifyContentResult.cc
 	src/model/DescribeMeterLiveBypassDurationRequest.cc
 	src/model/DescribeMeterLiveBypassDurationResult.cc
 	src/model/DescribeMixStreamListRequest.cc
@@ -1440,6 +1448,8 @@ set(live_src
 	src/model/ListRtcMPUEventSubRecordResult.cc
 	src/model/ListRtcMPUTaskDetailRequest.cc
 	src/model/ListRtcMPUTaskDetailResult.cc
+	src/model/LiveUpstreamQosDataRequest.cc
+	src/model/LiveUpstreamQosDataResult.cc
 	src/model/MiguLivePullToPushStartRequest.cc
 	src/model/MiguLivePullToPushStartResult.cc
 	src/model/MiguLivePullToPushStatusRequest.cc
@@ -1578,6 +1588,8 @@ set(live_src
 	src/model/StopPlaylistResult.cc
 	src/model/StopRtcAsrTaskRequest.cc
 	src/model/StopRtcAsrTaskResult.cc
+	src/model/TagLiveResourcesRequest.cc
+	src/model/TagLiveResourcesResult.cc
 	src/model/UnbanLiveMessageGroupRequest.cc
 	src/model/UnbanLiveMessageGroupResult.cc
 	src/model/UpdateCasterResourceGroupRequest.cc

+ 24 - 0
live/include/alibabacloud/live/LiveClient.h

@@ -506,6 +506,8 @@
 #include "model/DescribeLiveUserDomainsResult.h"
 #include "model/DescribeLiveUserTagsRequest.h"
 #include "model/DescribeLiveUserTagsResult.h"
+#include "model/DescribeLiveVerifyContentRequest.h"
+#include "model/DescribeLiveVerifyContentResult.h"
 #include "model/DescribeMeterLiveBypassDurationRequest.h"
 #include "model/DescribeMeterLiveBypassDurationResult.h"
 #include "model/DescribeMixStreamListRequest.h"
@@ -628,6 +630,8 @@
 #include "model/ListRtcMPUEventSubRecordResult.h"
 #include "model/ListRtcMPUTaskDetailRequest.h"
 #include "model/ListRtcMPUTaskDetailResult.h"
+#include "model/LiveUpstreamQosDataRequest.h"
+#include "model/LiveUpstreamQosDataResult.h"
 #include "model/MiguLivePullToPushStartRequest.h"
 #include "model/MiguLivePullToPushStartResult.h"
 #include "model/MiguLivePullToPushStatusRequest.h"
@@ -766,6 +770,8 @@
 #include "model/StopPlaylistResult.h"
 #include "model/StopRtcAsrTaskRequest.h"
 #include "model/StopRtcAsrTaskResult.h"
+#include "model/TagLiveResourcesRequest.h"
+#include "model/TagLiveResourcesResult.h"
 #include "model/UnbanLiveMessageGroupRequest.h"
 #include "model/UnbanLiveMessageGroupResult.h"
 #include "model/UpdateCasterResourceGroupRequest.h"
@@ -1567,6 +1573,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::DescribeLiveUserTagsResult> DescribeLiveUserTagsOutcome;
 			typedef std::future<DescribeLiveUserTagsOutcome> DescribeLiveUserTagsOutcomeCallable;
 			typedef std::function<void(const LiveClient*, const Model::DescribeLiveUserTagsRequest&, const DescribeLiveUserTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveUserTagsAsyncHandler;
+			typedef Outcome<Error, Model::DescribeLiveVerifyContentResult> DescribeLiveVerifyContentOutcome;
+			typedef std::future<DescribeLiveVerifyContentOutcome> DescribeLiveVerifyContentOutcomeCallable;
+			typedef std::function<void(const LiveClient*, const Model::DescribeLiveVerifyContentRequest&, const DescribeLiveVerifyContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveVerifyContentAsyncHandler;
 			typedef Outcome<Error, Model::DescribeMeterLiveBypassDurationResult> DescribeMeterLiveBypassDurationOutcome;
 			typedef std::future<DescribeMeterLiveBypassDurationOutcome> DescribeMeterLiveBypassDurationOutcomeCallable;
 			typedef std::function<void(const LiveClient*, const Model::DescribeMeterLiveBypassDurationRequest&, const DescribeMeterLiveBypassDurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMeterLiveBypassDurationAsyncHandler;
@@ -1750,6 +1759,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::ListRtcMPUTaskDetailResult> ListRtcMPUTaskDetailOutcome;
 			typedef std::future<ListRtcMPUTaskDetailOutcome> ListRtcMPUTaskDetailOutcomeCallable;
 			typedef std::function<void(const LiveClient*, const Model::ListRtcMPUTaskDetailRequest&, const ListRtcMPUTaskDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRtcMPUTaskDetailAsyncHandler;
+			typedef Outcome<Error, Model::LiveUpstreamQosDataResult> LiveUpstreamQosDataOutcome;
+			typedef std::future<LiveUpstreamQosDataOutcome> LiveUpstreamQosDataOutcomeCallable;
+			typedef std::function<void(const LiveClient*, const Model::LiveUpstreamQosDataRequest&, const LiveUpstreamQosDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LiveUpstreamQosDataAsyncHandler;
 			typedef Outcome<Error, Model::MiguLivePullToPushStartResult> MiguLivePullToPushStartOutcome;
 			typedef std::future<MiguLivePullToPushStartOutcome> MiguLivePullToPushStartOutcomeCallable;
 			typedef std::function<void(const LiveClient*, const Model::MiguLivePullToPushStartRequest&, const MiguLivePullToPushStartOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MiguLivePullToPushStartAsyncHandler;
@@ -1957,6 +1969,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::StopRtcAsrTaskResult> StopRtcAsrTaskOutcome;
 			typedef std::future<StopRtcAsrTaskOutcome> StopRtcAsrTaskOutcomeCallable;
 			typedef std::function<void(const LiveClient*, const Model::StopRtcAsrTaskRequest&, const StopRtcAsrTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopRtcAsrTaskAsyncHandler;
+			typedef Outcome<Error, Model::TagLiveResourcesResult> TagLiveResourcesOutcome;
+			typedef std::future<TagLiveResourcesOutcome> TagLiveResourcesOutcomeCallable;
+			typedef std::function<void(const LiveClient*, const Model::TagLiveResourcesRequest&, const TagLiveResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagLiveResourcesAsyncHandler;
 			typedef Outcome<Error, Model::UnbanLiveMessageGroupResult> UnbanLiveMessageGroupOutcome;
 			typedef std::future<UnbanLiveMessageGroupOutcome> UnbanLiveMessageGroupOutcomeCallable;
 			typedef std::function<void(const LiveClient*, const Model::UnbanLiveMessageGroupRequest&, const UnbanLiveMessageGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbanLiveMessageGroupAsyncHandler;
@@ -2787,6 +2802,9 @@ namespace AlibabaCloud
 			DescribeLiveUserTagsOutcome describeLiveUserTags(const Model::DescribeLiveUserTagsRequest &request)const;
 			void describeLiveUserTagsAsync(const Model::DescribeLiveUserTagsRequest& request, const DescribeLiveUserTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeLiveUserTagsOutcomeCallable describeLiveUserTagsCallable(const Model::DescribeLiveUserTagsRequest& request) const;
+			DescribeLiveVerifyContentOutcome describeLiveVerifyContent(const Model::DescribeLiveVerifyContentRequest &request)const;
+			void describeLiveVerifyContentAsync(const Model::DescribeLiveVerifyContentRequest& request, const DescribeLiveVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DescribeLiveVerifyContentOutcomeCallable describeLiveVerifyContentCallable(const Model::DescribeLiveVerifyContentRequest& request) const;
 			DescribeMeterLiveBypassDurationOutcome describeMeterLiveBypassDuration(const Model::DescribeMeterLiveBypassDurationRequest &request)const;
 			void describeMeterLiveBypassDurationAsync(const Model::DescribeMeterLiveBypassDurationRequest& request, const DescribeMeterLiveBypassDurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeMeterLiveBypassDurationOutcomeCallable describeMeterLiveBypassDurationCallable(const Model::DescribeMeterLiveBypassDurationRequest& request) const;
@@ -2970,6 +2988,9 @@ namespace AlibabaCloud
 			ListRtcMPUTaskDetailOutcome listRtcMPUTaskDetail(const Model::ListRtcMPUTaskDetailRequest &request)const;
 			void listRtcMPUTaskDetailAsync(const Model::ListRtcMPUTaskDetailRequest& request, const ListRtcMPUTaskDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ListRtcMPUTaskDetailOutcomeCallable listRtcMPUTaskDetailCallable(const Model::ListRtcMPUTaskDetailRequest& request) const;
+			LiveUpstreamQosDataOutcome liveUpstreamQosData(const Model::LiveUpstreamQosDataRequest &request)const;
+			void liveUpstreamQosDataAsync(const Model::LiveUpstreamQosDataRequest& request, const LiveUpstreamQosDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			LiveUpstreamQosDataOutcomeCallable liveUpstreamQosDataCallable(const Model::LiveUpstreamQosDataRequest& request) const;
 			MiguLivePullToPushStartOutcome miguLivePullToPushStart(const Model::MiguLivePullToPushStartRequest &request)const;
 			void miguLivePullToPushStartAsync(const Model::MiguLivePullToPushStartRequest& request, const MiguLivePullToPushStartAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			MiguLivePullToPushStartOutcomeCallable miguLivePullToPushStartCallable(const Model::MiguLivePullToPushStartRequest& request) const;
@@ -3177,6 +3198,9 @@ namespace AlibabaCloud
 			StopRtcAsrTaskOutcome stopRtcAsrTask(const Model::StopRtcAsrTaskRequest &request)const;
 			void stopRtcAsrTaskAsync(const Model::StopRtcAsrTaskRequest& request, const StopRtcAsrTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			StopRtcAsrTaskOutcomeCallable stopRtcAsrTaskCallable(const Model::StopRtcAsrTaskRequest& request) const;
+			TagLiveResourcesOutcome tagLiveResources(const Model::TagLiveResourcesRequest &request)const;
+			void tagLiveResourcesAsync(const Model::TagLiveResourcesRequest& request, const TagLiveResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			TagLiveResourcesOutcomeCallable tagLiveResourcesCallable(const Model::TagLiveResourcesRequest& request) const;
 			UnbanLiveMessageGroupOutcome unbanLiveMessageGroup(const Model::UnbanLiveMessageGroupRequest &request)const;
 			void unbanLiveMessageGroupAsync(const Model::UnbanLiveMessageGroupRequest& request, const UnbanLiveMessageGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			UnbanLiveMessageGroupOutcomeCallable unbanLiveMessageGroupCallable(const Model::UnbanLiveMessageGroupRequest& request) const;

+ 45 - 0
live/include/alibabacloud/live/model/DescribeLiveVerifyContentRequest.h

@@ -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_LIVE_MODEL_DESCRIBELIVEVERIFYCONTENTREQUEST_H_
+#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEVERIFYCONTENTREQUEST_H_
+
+#include <alibabacloud/live/LiveExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Live {
+namespace Model {
+class ALIBABACLOUD_LIVE_EXPORT DescribeLiveVerifyContentRequest : public RpcServiceRequest {
+public:
+	DescribeLiveVerifyContentRequest();
+	~DescribeLiveVerifyContentRequest();
+	std::string getDomainName() const;
+	void setDomainName(const std::string &domainName);
+	long getOwnerId() const;
+	void setOwnerId(long ownerId);
+
+private:
+	std::string domainName_;
+	long ownerId_;
+};
+} // namespace Model
+} // namespace Live
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEVERIFYCONTENTREQUEST_H_

+ 51 - 0
live/include/alibabacloud/live/model/DescribeLiveVerifyContentResult.h

@@ -0,0 +1,51 @@
+/*
+ * 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_LIVE_MODEL_DESCRIBELIVEVERIFYCONTENTRESULT_H_
+#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEVERIFYCONTENTRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/live/LiveExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Live
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_LIVE_EXPORT DescribeLiveVerifyContentResult : public ServiceResult
+			{
+			public:
+
+
+				DescribeLiveVerifyContentResult();
+				explicit DescribeLiveVerifyContentResult(const std::string &payload);
+				~DescribeLiveVerifyContentResult();
+				std::string getContent()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string content_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEVERIFYCONTENTRESULT_H_

+ 69 - 0
live/include/alibabacloud/live/model/LiveUpstreamQosDataRequest.h

@@ -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.
+ */
+
+#ifndef ALIBABACLOUD_LIVE_MODEL_LIVEUPSTREAMQOSDATAREQUEST_H_
+#define ALIBABACLOUD_LIVE_MODEL_LIVEUPSTREAMQOSDATAREQUEST_H_
+
+#include <alibabacloud/live/LiveExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Live {
+namespace Model {
+class ALIBABACLOUD_LIVE_EXPORT LiveUpstreamQosDataRequest : public RpcServiceRequest {
+public:
+	LiveUpstreamQosDataRequest();
+	~LiveUpstreamQosDataRequest();
+	std::string getCdnDomains() const;
+	void setCdnDomains(const std::string &cdnDomains);
+	std::string getStartTime() const;
+	void setStartTime(const std::string &startTime);
+	std::string getCdnProvinces() const;
+	void setCdnProvinces(const std::string &cdnProvinces);
+	std::string getKwaiSidcs() const;
+	void setKwaiSidcs(const std::string &kwaiSidcs);
+	std::vector<int> getKwaiTsc() const;
+	void setKwaiTsc(const std::vector<int> &kwaiTsc);
+	std::string getUpstreamDomains() const;
+	void setUpstreamDomains(const std::string &upstreamDomains);
+	std::string getEndTime() const;
+	void setEndTime(const std::string &endTime);
+	long getOwnerId() const;
+	void setOwnerId(long ownerId);
+	std::string getCdnIsps() const;
+	void setCdnIsps(const std::string &cdnIsps);
+	std::string getRegion() const;
+	void setRegion(const std::string &region);
+
+private:
+	std::string cdnDomains_;
+	std::string startTime_;
+	std::string cdnProvinces_;
+	std::string kwaiSidcs_;
+	std::vector<int> kwaiTsc_;
+	std::string upstreamDomains_;
+	std::string endTime_;
+	long ownerId_;
+	std::string cdnIsps_;
+	std::string region_;
+};
+} // namespace Model
+} // namespace Live
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_LIVE_MODEL_LIVEUPSTREAMQOSDATAREQUEST_H_

+ 81 - 0
live/include/alibabacloud/live/model/LiveUpstreamQosDataResult.h

@@ -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.
+ */
+
+#ifndef ALIBABACLOUD_LIVE_MODEL_LIVEUPSTREAMQOSDATARESULT_H_
+#define ALIBABACLOUD_LIVE_MODEL_LIVEUPSTREAMQOSDATARESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/live/LiveExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Live
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_LIVE_EXPORT LiveUpstreamQosDataResult : public ServiceResult
+			{
+			public:
+				struct DataItem
+				{
+					struct DetailDataItem
+					{
+						long statusCode2Xx;
+						long connectDur;
+						long firstFrameDur;
+						long firstDataFailedCount;
+						long statusCode5Xx;
+						long statusCode3Xx;
+						long firstFrameSuccessCount;
+						long statusCode4Xx;
+						long connectFailedCount;
+						long count;
+						std::string timestamp;
+						long firstDataDur;
+					};
+					std::string cdnIsp;
+					std::string upstreamDomain;
+					std::string cdnDomain;
+					std::string cdnOcid;
+					std::string kwaiSidc;
+					long kwaiTsc;
+					std::string cdnProvince;
+					std::vector<DataItem::DetailDataItem> detailData;
+				};
+
+
+				LiveUpstreamQosDataResult();
+				explicit LiveUpstreamQosDataResult(const std::string &payload);
+				~LiveUpstreamQosDataResult();
+				std::string getEndTime()const;
+				std::string getStartTime()const;
+				std::vector<DataItem> getData()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string endTime_;
+				std::string startTime_;
+				std::vector<DataItem> data_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_LIVE_MODEL_LIVEUPSTREAMQOSDATARESULT_H_

+ 55 - 0
live/include/alibabacloud/live/model/TagLiveResourcesRequest.h

@@ -0,0 +1,55 @@
+/*
+ * 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_LIVE_MODEL_TAGLIVERESOURCESREQUEST_H_
+#define ALIBABACLOUD_LIVE_MODEL_TAGLIVERESOURCESREQUEST_H_
+
+#include <alibabacloud/live/LiveExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Live {
+namespace Model {
+class ALIBABACLOUD_LIVE_EXPORT TagLiveResourcesRequest : public RpcServiceRequest {
+public:
+	struct Tag {
+		std::string key;
+		std::string value;
+	};
+	TagLiveResourcesRequest();
+	~TagLiveResourcesRequest();
+	std::vector<Tag> getTag() const;
+	void setTag(const std::vector<Tag> &tag);
+	std::vector<std::string> getResourceId() const;
+	void setResourceId(const std::vector<std::string> &resourceId);
+	long getOwnerId() const;
+	void setOwnerId(long ownerId);
+	std::string getResourceType() const;
+	void setResourceType(const std::string &resourceType);
+
+private:
+	std::vector<Tag> tag_;
+	std::vector<std::string> resourceId_;
+	long ownerId_;
+	std::string resourceType_;
+};
+} // namespace Model
+} // namespace Live
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_LIVE_MODEL_TAGLIVERESOURCESREQUEST_H_

+ 49 - 0
live/include/alibabacloud/live/model/TagLiveResourcesResult.h

@@ -0,0 +1,49 @@
+/*
+ * 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_LIVE_MODEL_TAGLIVERESOURCESRESULT_H_
+#define ALIBABACLOUD_LIVE_MODEL_TAGLIVERESOURCESRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/live/LiveExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Live
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_LIVE_EXPORT TagLiveResourcesResult : public ServiceResult
+			{
+			public:
+
+
+				TagLiveResourcesResult();
+				explicit TagLiveResourcesResult(const std::string &payload);
+				~TagLiveResourcesResult();
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_LIVE_MODEL_TAGLIVERESOURCESRESULT_H_

+ 108 - 0
live/src/LiveClient.cc

@@ -8763,6 +8763,42 @@ LiveClient::DescribeLiveUserTagsOutcomeCallable LiveClient::describeLiveUserTags
 	return task->get_future();
 }
 
+LiveClient::DescribeLiveVerifyContentOutcome LiveClient::describeLiveVerifyContent(const DescribeLiveVerifyContentRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DescribeLiveVerifyContentOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DescribeLiveVerifyContentOutcome(DescribeLiveVerifyContentResult(outcome.result()));
+	else
+		return DescribeLiveVerifyContentOutcome(outcome.error());
+}
+
+void LiveClient::describeLiveVerifyContentAsync(const DescribeLiveVerifyContentRequest& request, const DescribeLiveVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, describeLiveVerifyContent(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+LiveClient::DescribeLiveVerifyContentOutcomeCallable LiveClient::describeLiveVerifyContentCallable(const DescribeLiveVerifyContentRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DescribeLiveVerifyContentOutcome()>>(
+			[this, request]()
+			{
+			return this->describeLiveVerifyContent(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 LiveClient::DescribeMeterLiveBypassDurationOutcome LiveClient::describeMeterLiveBypassDuration(const DescribeMeterLiveBypassDurationRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -10959,6 +10995,42 @@ LiveClient::ListRtcMPUTaskDetailOutcomeCallable LiveClient::listRtcMPUTaskDetail
 	return task->get_future();
 }
 
+LiveClient::LiveUpstreamQosDataOutcome LiveClient::liveUpstreamQosData(const LiveUpstreamQosDataRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return LiveUpstreamQosDataOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return LiveUpstreamQosDataOutcome(LiveUpstreamQosDataResult(outcome.result()));
+	else
+		return LiveUpstreamQosDataOutcome(outcome.error());
+}
+
+void LiveClient::liveUpstreamQosDataAsync(const LiveUpstreamQosDataRequest& request, const LiveUpstreamQosDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, liveUpstreamQosData(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+LiveClient::LiveUpstreamQosDataOutcomeCallable LiveClient::liveUpstreamQosDataCallable(const LiveUpstreamQosDataRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<LiveUpstreamQosDataOutcome()>>(
+			[this, request]()
+			{
+			return this->liveUpstreamQosData(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 LiveClient::MiguLivePullToPushStartOutcome LiveClient::miguLivePullToPushStart(const MiguLivePullToPushStartRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -13443,6 +13515,42 @@ LiveClient::StopRtcAsrTaskOutcomeCallable LiveClient::stopRtcAsrTaskCallable(con
 	return task->get_future();
 }
 
+LiveClient::TagLiveResourcesOutcome LiveClient::tagLiveResources(const TagLiveResourcesRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return TagLiveResourcesOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return TagLiveResourcesOutcome(TagLiveResourcesResult(outcome.result()));
+	else
+		return TagLiveResourcesOutcome(outcome.error());
+}
+
+void LiveClient::tagLiveResourcesAsync(const TagLiveResourcesRequest& request, const TagLiveResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, tagLiveResources(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+LiveClient::TagLiveResourcesOutcomeCallable LiveClient::tagLiveResourcesCallable(const TagLiveResourcesRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<TagLiveResourcesOutcome()>>(
+			[this, request]()
+			{
+			return this->tagLiveResources(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 LiveClient::UnbanLiveMessageGroupOutcome LiveClient::unbanLiveMessageGroup(const UnbanLiveMessageGroupRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 45 - 0
live/src/model/DescribeLiveVerifyContentRequest.cc

@@ -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.
+ */
+
+#include <alibabacloud/live/model/DescribeLiveVerifyContentRequest.h>
+
+using AlibabaCloud::Live::Model::DescribeLiveVerifyContentRequest;
+
+DescribeLiveVerifyContentRequest::DescribeLiveVerifyContentRequest()
+    : RpcServiceRequest("live", "2016-11-01", "DescribeLiveVerifyContent") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+DescribeLiveVerifyContentRequest::~DescribeLiveVerifyContentRequest() {}
+
+std::string DescribeLiveVerifyContentRequest::getDomainName() const {
+  return domainName_;
+}
+
+void DescribeLiveVerifyContentRequest::setDomainName(const std::string &domainName) {
+  domainName_ = domainName;
+  setParameter(std::string("DomainName"), domainName);
+}
+
+long DescribeLiveVerifyContentRequest::getOwnerId() const {
+  return ownerId_;
+}
+
+void DescribeLiveVerifyContentRequest::setOwnerId(long ownerId) {
+  ownerId_ = ownerId;
+  setParameter(std::string("OwnerId"), std::to_string(ownerId));
+}
+

+ 51 - 0
live/src/model/DescribeLiveVerifyContentResult.cc

@@ -0,0 +1,51 @@
+/*
+ * 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 <alibabacloud/live/model/DescribeLiveVerifyContentResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Live;
+using namespace AlibabaCloud::Live::Model;
+
+DescribeLiveVerifyContentResult::DescribeLiveVerifyContentResult() :
+	ServiceResult()
+{}
+
+DescribeLiveVerifyContentResult::DescribeLiveVerifyContentResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DescribeLiveVerifyContentResult::~DescribeLiveVerifyContentResult()
+{}
+
+void DescribeLiveVerifyContentResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["Content"].isNull())
+		content_ = value["Content"].asString();
+
+}
+
+std::string DescribeLiveVerifyContentResult::getContent()const
+{
+	return content_;
+}
+

+ 119 - 0
live/src/model/LiveUpstreamQosDataRequest.cc

@@ -0,0 +1,119 @@
+/*
+ * 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 <alibabacloud/live/model/LiveUpstreamQosDataRequest.h>
+
+using AlibabaCloud::Live::Model::LiveUpstreamQosDataRequest;
+
+LiveUpstreamQosDataRequest::LiveUpstreamQosDataRequest()
+    : RpcServiceRequest("live", "2016-11-01", "LiveUpstreamQosData") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+LiveUpstreamQosDataRequest::~LiveUpstreamQosDataRequest() {}
+
+std::string LiveUpstreamQosDataRequest::getCdnDomains() const {
+  return cdnDomains_;
+}
+
+void LiveUpstreamQosDataRequest::setCdnDomains(const std::string &cdnDomains) {
+  cdnDomains_ = cdnDomains;
+  setParameter(std::string("CdnDomains"), cdnDomains);
+}
+
+std::string LiveUpstreamQosDataRequest::getStartTime() const {
+  return startTime_;
+}
+
+void LiveUpstreamQosDataRequest::setStartTime(const std::string &startTime) {
+  startTime_ = startTime;
+  setParameter(std::string("StartTime"), startTime);
+}
+
+std::string LiveUpstreamQosDataRequest::getCdnProvinces() const {
+  return cdnProvinces_;
+}
+
+void LiveUpstreamQosDataRequest::setCdnProvinces(const std::string &cdnProvinces) {
+  cdnProvinces_ = cdnProvinces;
+  setParameter(std::string("CdnProvinces"), cdnProvinces);
+}
+
+std::string LiveUpstreamQosDataRequest::getKwaiSidcs() const {
+  return kwaiSidcs_;
+}
+
+void LiveUpstreamQosDataRequest::setKwaiSidcs(const std::string &kwaiSidcs) {
+  kwaiSidcs_ = kwaiSidcs;
+  setParameter(std::string("KwaiSidcs"), kwaiSidcs);
+}
+
+std::vector<LiveUpstreamQosDataRequest::int> LiveUpstreamQosDataRequest::getKwaiTsc() const {
+  return kwaiTsc_;
+}
+
+void LiveUpstreamQosDataRequest::setKwaiTsc(const std::vector<LiveUpstreamQosDataRequest::int> &kwaiTsc) {
+  kwaiTsc_ = kwaiTsc;
+  for(int dep1 = 0; dep1 != kwaiTsc.size(); dep1++) {
+    setParameter(std::string("KwaiTsc") + "." + std::to_string(dep1 + 1), std::to_string(kwaiTsc[dep1]));
+  }
+}
+
+std::string LiveUpstreamQosDataRequest::getUpstreamDomains() const {
+  return upstreamDomains_;
+}
+
+void LiveUpstreamQosDataRequest::setUpstreamDomains(const std::string &upstreamDomains) {
+  upstreamDomains_ = upstreamDomains;
+  setParameter(std::string("UpstreamDomains"), upstreamDomains);
+}
+
+std::string LiveUpstreamQosDataRequest::getEndTime() const {
+  return endTime_;
+}
+
+void LiveUpstreamQosDataRequest::setEndTime(const std::string &endTime) {
+  endTime_ = endTime;
+  setParameter(std::string("EndTime"), endTime);
+}
+
+long LiveUpstreamQosDataRequest::getOwnerId() const {
+  return ownerId_;
+}
+
+void LiveUpstreamQosDataRequest::setOwnerId(long ownerId) {
+  ownerId_ = ownerId;
+  setParameter(std::string("OwnerId"), std::to_string(ownerId));
+}
+
+std::string LiveUpstreamQosDataRequest::getCdnIsps() const {
+  return cdnIsps_;
+}
+
+void LiveUpstreamQosDataRequest::setCdnIsps(const std::string &cdnIsps) {
+  cdnIsps_ = cdnIsps;
+  setParameter(std::string("CdnIsps"), cdnIsps);
+}
+
+std::string LiveUpstreamQosDataRequest::getRegion() const {
+  return region_;
+}
+
+void LiveUpstreamQosDataRequest::setRegion(const std::string &region) {
+  region_ = region;
+  setParameter(std::string("Region"), region);
+}
+

+ 113 - 0
live/src/model/LiveUpstreamQosDataResult.cc

@@ -0,0 +1,113 @@
+/*
+ * 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 <alibabacloud/live/model/LiveUpstreamQosDataResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Live;
+using namespace AlibabaCloud::Live::Model;
+
+LiveUpstreamQosDataResult::LiveUpstreamQosDataResult() :
+	ServiceResult()
+{}
+
+LiveUpstreamQosDataResult::LiveUpstreamQosDataResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+LiveUpstreamQosDataResult::~LiveUpstreamQosDataResult()
+{}
+
+void LiveUpstreamQosDataResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	auto allDataNode = value["Data"]["DataItem"];
+	for (auto valueDataDataItem : allDataNode)
+	{
+		DataItem dataObject;
+		if(!valueDataDataItem["CdnDomain"].isNull())
+			dataObject.cdnDomain = valueDataDataItem["CdnDomain"].asString();
+		if(!valueDataDataItem["UpstreamDomain"].isNull())
+			dataObject.upstreamDomain = valueDataDataItem["UpstreamDomain"].asString();
+		if(!valueDataDataItem["KwaiSidc"].isNull())
+			dataObject.kwaiSidc = valueDataDataItem["KwaiSidc"].asString();
+		if(!valueDataDataItem["KwaiTsc"].isNull())
+			dataObject.kwaiTsc = std::stol(valueDataDataItem["KwaiTsc"].asString());
+		if(!valueDataDataItem["CdnIsp"].isNull())
+			dataObject.cdnIsp = valueDataDataItem["CdnIsp"].asString();
+		if(!valueDataDataItem["CdnProvince"].isNull())
+			dataObject.cdnProvince = valueDataDataItem["CdnProvince"].asString();
+		if(!valueDataDataItem["CdnOcid"].isNull())
+			dataObject.cdnOcid = valueDataDataItem["CdnOcid"].asString();
+		auto allDetailDataNode = valueDataDataItem["DetailData"]["DetailDataItem"];
+		for (auto valueDataDataItemDetailDataDetailDataItem : allDetailDataNode)
+		{
+			DataItem::DetailDataItem detailDataObject;
+			if(!valueDataDataItemDetailDataDetailDataItem["Timestamp"].isNull())
+				detailDataObject.timestamp = valueDataDataItemDetailDataDetailDataItem["Timestamp"].asString();
+			if(!valueDataDataItemDetailDataDetailDataItem["ConnectDur"].isNull())
+				detailDataObject.connectDur = std::stol(valueDataDataItemDetailDataDetailDataItem["ConnectDur"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["FirstDataDur"].isNull())
+				detailDataObject.firstDataDur = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstDataDur"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["FirstFrameDur"].isNull())
+				detailDataObject.firstFrameDur = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstFrameDur"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["ConnectFailedCount"].isNull())
+				detailDataObject.connectFailedCount = std::stol(valueDataDataItemDetailDataDetailDataItem["ConnectFailedCount"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["FirstDataFailedCount"].isNull())
+				detailDataObject.firstDataFailedCount = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstDataFailedCount"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["StatusCode5Xx"].isNull())
+				detailDataObject.statusCode5Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode5Xx"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["StatusCode4Xx"].isNull())
+				detailDataObject.statusCode4Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode4Xx"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["StatusCode3Xx"].isNull())
+				detailDataObject.statusCode3Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode3Xx"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["StatusCode2Xx"].isNull())
+				detailDataObject.statusCode2Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode2Xx"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["FirstFrameSuccessCount"].isNull())
+				detailDataObject.firstFrameSuccessCount = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstFrameSuccessCount"].asString());
+			if(!valueDataDataItemDetailDataDetailDataItem["Count"].isNull())
+				detailDataObject.count = std::stol(valueDataDataItemDetailDataDetailDataItem["Count"].asString());
+			dataObject.detailData.push_back(detailDataObject);
+		}
+		data_.push_back(dataObject);
+	}
+	if(!value["StartTime"].isNull())
+		startTime_ = value["StartTime"].asString();
+	if(!value["EndTime"].isNull())
+		endTime_ = value["EndTime"].asString();
+
+}
+
+std::string LiveUpstreamQosDataResult::getEndTime()const
+{
+	return endTime_;
+}
+
+std::string LiveUpstreamQosDataResult::getStartTime()const
+{
+	return startTime_;
+}
+
+std::vector<LiveUpstreamQosDataResult::DataItem> LiveUpstreamQosDataResult::getData()const
+{
+	return data_;
+}
+

+ 67 - 0
live/src/model/TagLiveResourcesRequest.cc

@@ -0,0 +1,67 @@
+/*
+ * 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 <alibabacloud/live/model/TagLiveResourcesRequest.h>
+
+using AlibabaCloud::Live::Model::TagLiveResourcesRequest;
+
+TagLiveResourcesRequest::TagLiveResourcesRequest()
+    : RpcServiceRequest("live", "2016-11-01", "TagLiveResources") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+TagLiveResourcesRequest::~TagLiveResourcesRequest() {}
+
+std::vector<TagLiveResourcesRequest::Tag> TagLiveResourcesRequest::getTag() const {
+  return tag_;
+}
+
+void TagLiveResourcesRequest::setTag(const std::vector<TagLiveResourcesRequest::Tag> &tag) {
+  tag_ = tag;
+  for(int dep1 = 0; dep1 != tag.size(); dep1++) {
+  auto tagObj = tag.at(dep1);
+  std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
+    setParameter(tagObjStr + ".Key", tagObj.key);
+    setParameter(tagObjStr + ".Value", tagObj.value);
+  }
+}
+
+std::vector<std::string> TagLiveResourcesRequest::getResourceId() const {
+  return resourceId_;
+}
+
+void TagLiveResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
+  resourceId_ = resourceId;
+}
+
+long TagLiveResourcesRequest::getOwnerId() const {
+  return ownerId_;
+}
+
+void TagLiveResourcesRequest::setOwnerId(long ownerId) {
+  ownerId_ = ownerId;
+  setParameter(std::string("OwnerId"), std::to_string(ownerId));
+}
+
+std::string TagLiveResourcesRequest::getResourceType() const {
+  return resourceType_;
+}
+
+void TagLiveResourcesRequest::setResourceType(const std::string &resourceType) {
+  resourceType_ = resourceType;
+  setParameter(std::string("ResourceType"), resourceType);
+}
+

+ 44 - 0
live/src/model/TagLiveResourcesResult.cc

@@ -0,0 +1,44 @@
+/*
+ * 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 <alibabacloud/live/model/TagLiveResourcesResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Live;
+using namespace AlibabaCloud::Live::Model;
+
+TagLiveResourcesResult::TagLiveResourcesResult() :
+	ServiceResult()
+{}
+
+TagLiveResourcesResult::TagLiveResourcesResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+TagLiveResourcesResult::~TagLiveResourcesResult()
+{}
+
+void TagLiveResourcesResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+
+}
+