Set multiple apis to private.
This commit is contained in:
@@ -663,42 +663,6 @@ VodClient::CreateUploadVideoOutcomeCallable VodClient::createUploadVideoCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::CreateVodRealTimeLogDeliveryOutcome VodClient::createVodRealTimeLogDelivery(const CreateVodRealTimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVodRealTimeLogDeliveryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVodRealTimeLogDeliveryOutcome(CreateVodRealTimeLogDeliveryResult(outcome.result()));
|
||||
else
|
||||
return CreateVodRealTimeLogDeliveryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::createVodRealTimeLogDeliveryAsync(const CreateVodRealTimeLogDeliveryRequest& request, const CreateVodRealTimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVodRealTimeLogDelivery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::CreateVodRealTimeLogDeliveryOutcomeCallable VodClient::createVodRealTimeLogDeliveryCallable(const CreateVodRealTimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVodRealTimeLogDeliveryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVodRealTimeLogDelivery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DeleteAIImageInfosOutcome VodClient::deleteAIImageInfos(const DeleteAIImageInfosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,42 +1203,6 @@ VodClient::DeleteVodDomainOutcomeCallable VodClient::deleteVodDomainCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DeleteVodRealtimeLogDeliveryOutcome VodClient::deleteVodRealtimeLogDelivery(const DeleteVodRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteVodRealtimeLogDeliveryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteVodRealtimeLogDeliveryOutcome(DeleteVodRealtimeLogDeliveryResult(outcome.result()));
|
||||
else
|
||||
return DeleteVodRealtimeLogDeliveryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::deleteVodRealtimeLogDeliveryAsync(const DeleteVodRealtimeLogDeliveryRequest& request, const DeleteVodRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteVodRealtimeLogDelivery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::DeleteVodRealtimeLogDeliveryOutcomeCallable VodClient::deleteVodRealtimeLogDeliveryCallable(const DeleteVodRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteVodRealtimeLogDeliveryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteVodRealtimeLogDelivery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DeleteVodSpecificConfigOutcome VodClient::deleteVodSpecificConfig(const DeleteVodSpecificConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1779,114 +1707,6 @@ VodClient::DescribeVodDomainLogOutcomeCallable VodClient::describeVodDomainLogCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodDomainRealtimeLogDeliveryOutcome VodClient::describeVodDomainRealtimeLogDelivery(const DescribeVodDomainRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVodDomainRealtimeLogDeliveryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVodDomainRealtimeLogDeliveryOutcome(DescribeVodDomainRealtimeLogDeliveryResult(outcome.result()));
|
||||
else
|
||||
return DescribeVodDomainRealtimeLogDeliveryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::describeVodDomainRealtimeLogDeliveryAsync(const DescribeVodDomainRealtimeLogDeliveryRequest& request, const DescribeVodDomainRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVodDomainRealtimeLogDelivery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::DescribeVodDomainRealtimeLogDeliveryOutcomeCallable VodClient::describeVodDomainRealtimeLogDeliveryCallable(const DescribeVodDomainRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVodDomainRealtimeLogDeliveryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVodDomainRealtimeLogDelivery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodDomainSrcBpsDataOutcome VodClient::describeVodDomainSrcBpsData(const DescribeVodDomainSrcBpsDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVodDomainSrcBpsDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVodDomainSrcBpsDataOutcome(DescribeVodDomainSrcBpsDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeVodDomainSrcBpsDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::describeVodDomainSrcBpsDataAsync(const DescribeVodDomainSrcBpsDataRequest& request, const DescribeVodDomainSrcBpsDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVodDomainSrcBpsData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::DescribeVodDomainSrcBpsDataOutcomeCallable VodClient::describeVodDomainSrcBpsDataCallable(const DescribeVodDomainSrcBpsDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVodDomainSrcBpsDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVodDomainSrcBpsData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodDomainSrcTrafficDataOutcome VodClient::describeVodDomainSrcTrafficData(const DescribeVodDomainSrcTrafficDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVodDomainSrcTrafficDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVodDomainSrcTrafficDataOutcome(DescribeVodDomainSrcTrafficDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeVodDomainSrcTrafficDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::describeVodDomainSrcTrafficDataAsync(const DescribeVodDomainSrcTrafficDataRequest& request, const DescribeVodDomainSrcTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVodDomainSrcTrafficData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::DescribeVodDomainSrcTrafficDataOutcomeCallable VodClient::describeVodDomainSrcTrafficDataCallable(const DescribeVodDomainSrcTrafficDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVodDomainSrcTrafficDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVodDomainSrcTrafficData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodDomainTrafficDataOutcome VodClient::describeVodDomainTrafficData(const DescribeVodDomainTrafficDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2067,42 +1887,6 @@ VodClient::DescribeVodStorageDataOutcomeCallable VodClient::describeVodStorageDa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodTagResourcesOutcome VodClient::describeVodTagResources(const DescribeVodTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVodTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVodTagResourcesOutcome(DescribeVodTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return DescribeVodTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::describeVodTagResourcesAsync(const DescribeVodTagResourcesRequest& request, const DescribeVodTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVodTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::DescribeVodTagResourcesOutcomeCallable VodClient::describeVodTagResourcesCallable(const DescribeVodTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVodTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVodTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodTranscodeDataOutcome VodClient::describeVodTranscodeData(const DescribeVodTranscodeDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2175,42 +1959,6 @@ VodClient::DescribeVodUserDomainsOutcomeCallable VodClient::describeVodUserDomai
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodUserTagsOutcome VodClient::describeVodUserTags(const DescribeVodUserTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVodUserTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVodUserTagsOutcome(DescribeVodUserTagsResult(outcome.result()));
|
||||
else
|
||||
return DescribeVodUserTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::describeVodUserTagsAsync(const DescribeVodUserTagsRequest& request, const DescribeVodUserTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVodUserTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::DescribeVodUserTagsOutcomeCallable VodClient::describeVodUserTagsCallable(const DescribeVodUserTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVodUserTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVodUserTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DescribeVodVerifyContentOutcome VodClient::describeVodVerifyContent(const DescribeVodVerifyContentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,78 +2031,6 @@ VodClient::DetachAppPolicyFromIdentityOutcomeCallable VodClient::detachAppPolicy
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::DisableVodRealtimeLogDeliveryOutcome VodClient::disableVodRealtimeLogDelivery(const DisableVodRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableVodRealtimeLogDeliveryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableVodRealtimeLogDeliveryOutcome(DisableVodRealtimeLogDeliveryResult(outcome.result()));
|
||||
else
|
||||
return DisableVodRealtimeLogDeliveryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::disableVodRealtimeLogDeliveryAsync(const DisableVodRealtimeLogDeliveryRequest& request, const DisableVodRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableVodRealtimeLogDelivery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::DisableVodRealtimeLogDeliveryOutcomeCallable VodClient::disableVodRealtimeLogDeliveryCallable(const DisableVodRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableVodRealtimeLogDeliveryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableVodRealtimeLogDelivery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::EnableVodRealtimeLogDeliveryOutcome VodClient::enableVodRealtimeLogDelivery(const EnableVodRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableVodRealtimeLogDeliveryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableVodRealtimeLogDeliveryOutcome(EnableVodRealtimeLogDeliveryResult(outcome.result()));
|
||||
else
|
||||
return EnableVodRealtimeLogDeliveryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::enableVodRealtimeLogDeliveryAsync(const EnableVodRealtimeLogDeliveryRequest& request, const EnableVodRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableVodRealtimeLogDelivery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::EnableVodRealtimeLogDeliveryOutcomeCallable VodClient::enableVodRealtimeLogDeliveryCallable(const EnableVodRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableVodRealtimeLogDeliveryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableVodRealtimeLogDelivery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::GetAIImageJobsOutcome VodClient::getAIImageJobs(const GetAIImageJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3759,42 +3435,6 @@ VodClient::ListLiveRecordVideoOutcomeCallable VodClient::listLiveRecordVideoCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::ListMediaDNADeleteJobOutcome VodClient::listMediaDNADeleteJob(const ListMediaDNADeleteJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMediaDNADeleteJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMediaDNADeleteJobOutcome(ListMediaDNADeleteJobResult(outcome.result()));
|
||||
else
|
||||
return ListMediaDNADeleteJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::listMediaDNADeleteJobAsync(const ListMediaDNADeleteJobRequest& request, const ListMediaDNADeleteJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMediaDNADeleteJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::ListMediaDNADeleteJobOutcomeCallable VodClient::listMediaDNADeleteJobCallable(const ListMediaDNADeleteJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMediaDNADeleteJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMediaDNADeleteJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::ListSnapshotsOutcome VodClient::listSnapshots(const ListSnapshotsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3903,78 +3543,6 @@ VodClient::ListTranscodeTemplateGroupOutcomeCallable VodClient::listTranscodeTem
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::ListVodRealtimeLogDeliveryDomainsOutcome VodClient::listVodRealtimeLogDeliveryDomains(const ListVodRealtimeLogDeliveryDomainsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListVodRealtimeLogDeliveryDomainsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListVodRealtimeLogDeliveryDomainsOutcome(ListVodRealtimeLogDeliveryDomainsResult(outcome.result()));
|
||||
else
|
||||
return ListVodRealtimeLogDeliveryDomainsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::listVodRealtimeLogDeliveryDomainsAsync(const ListVodRealtimeLogDeliveryDomainsRequest& request, const ListVodRealtimeLogDeliveryDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listVodRealtimeLogDeliveryDomains(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::ListVodRealtimeLogDeliveryDomainsOutcomeCallable VodClient::listVodRealtimeLogDeliveryDomainsCallable(const ListVodRealtimeLogDeliveryDomainsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListVodRealtimeLogDeliveryDomainsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listVodRealtimeLogDeliveryDomains(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::ListVodRealtimeLogDeliveryInfosOutcome VodClient::listVodRealtimeLogDeliveryInfos(const ListVodRealtimeLogDeliveryInfosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListVodRealtimeLogDeliveryInfosOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListVodRealtimeLogDeliveryInfosOutcome(ListVodRealtimeLogDeliveryInfosResult(outcome.result()));
|
||||
else
|
||||
return ListVodRealtimeLogDeliveryInfosOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::listVodRealtimeLogDeliveryInfosAsync(const ListVodRealtimeLogDeliveryInfosRequest& request, const ListVodRealtimeLogDeliveryInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listVodRealtimeLogDeliveryInfos(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::ListVodRealtimeLogDeliveryInfosOutcomeCallable VodClient::listVodRealtimeLogDeliveryInfosCallable(const ListVodRealtimeLogDeliveryInfosRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListVodRealtimeLogDeliveryInfosOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listVodRealtimeLogDeliveryInfos(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::ListVodTemplateOutcome VodClient::listVodTemplate(const ListVodTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4803,42 +4371,6 @@ VodClient::SubmitDynamicImageJobOutcomeCallable VodClient::submitDynamicImageJob
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::SubmitLiveEditingOutcome VodClient::submitLiveEditing(const SubmitLiveEditingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitLiveEditingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitLiveEditingOutcome(SubmitLiveEditingResult(outcome.result()));
|
||||
else
|
||||
return SubmitLiveEditingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::submitLiveEditingAsync(const SubmitLiveEditingRequest& request, const SubmitLiveEditingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitLiveEditing(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::SubmitLiveEditingOutcomeCallable VodClient::submitLiveEditingCallable(const SubmitLiveEditingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitLiveEditingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitLiveEditing(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::SubmitMediaDNADeleteJobOutcome VodClient::submitMediaDNADeleteJob(const SubmitMediaDNADeleteJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5019,78 +4551,6 @@ VodClient::SubmitWorkflowJobOutcomeCallable VodClient::submitWorkflowJobCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::TagVodResourcesOutcome VodClient::tagVodResources(const TagVodResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagVodResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TagVodResourcesOutcome(TagVodResourcesResult(outcome.result()));
|
||||
else
|
||||
return TagVodResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::tagVodResourcesAsync(const TagVodResourcesRequest& request, const TagVodResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagVodResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::TagVodResourcesOutcomeCallable VodClient::tagVodResourcesCallable(const TagVodResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagVodResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagVodResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::UnTagVodResourcesOutcome VodClient::unTagVodResources(const UnTagVodResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnTagVodResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnTagVodResourcesOutcome(UnTagVodResourcesResult(outcome.result()));
|
||||
else
|
||||
return UnTagVodResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::unTagVodResourcesAsync(const UnTagVodResourcesRequest& request, const UnTagVodResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unTagVodResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::UnTagVodResourcesOutcomeCallable VodClient::unTagVodResourcesCallable(const UnTagVodResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnTagVodResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unTagVodResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::UpdateAITemplateOutcome VodClient::updateAITemplate(const UpdateAITemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5307,42 +4767,6 @@ VodClient::UpdateImageInfosOutcomeCallable VodClient::updateImageInfosCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::UpdateStreamInfoOutcome VodClient::updateStreamInfo(const UpdateStreamInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateStreamInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateStreamInfoOutcome(UpdateStreamInfoResult(outcome.result()));
|
||||
else
|
||||
return UpdateStreamInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VodClient::updateStreamInfoAsync(const UpdateStreamInfoRequest& request, const UpdateStreamInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateStreamInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VodClient::UpdateStreamInfoOutcomeCallable VodClient::updateStreamInfoCallable(const UpdateStreamInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateStreamInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateStreamInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VodClient::UpdateTranscodeTemplateGroupOutcome VodClient::updateTranscodeTemplateGroup(const UpdateTranscodeTemplateGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/CreateVodRealTimeLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::CreateVodRealTimeLogDeliveryRequest;
|
||||
|
||||
CreateVodRealTimeLogDeliveryRequest::CreateVodRealTimeLogDeliveryRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "CreateVodRealTimeLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateVodRealTimeLogDeliveryRequest::~CreateVodRealTimeLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVodRealTimeLogDeliveryRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateVodRealTimeLogDeliveryRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateVodRealTimeLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void CreateVodRealTimeLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long CreateVodRealTimeLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateVodRealTimeLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateVodRealTimeLogDeliveryRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CreateVodRealTimeLogDeliveryRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string CreateVodRealTimeLogDeliveryRequest::getLogstore()const
|
||||
{
|
||||
return logstore_;
|
||||
}
|
||||
|
||||
void CreateVodRealTimeLogDeliveryRequest::setLogstore(const std::string& logstore)
|
||||
{
|
||||
logstore_ = logstore;
|
||||
setParameter("Logstore", logstore);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/CreateVodRealTimeLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
CreateVodRealTimeLogDeliveryResult::CreateVodRealTimeLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVodRealTimeLogDeliveryResult::CreateVodRealTimeLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVodRealTimeLogDeliveryResult::~CreateVodRealTimeLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void CreateVodRealTimeLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DeleteVodRealtimeLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::DeleteVodRealtimeLogDeliveryRequest;
|
||||
|
||||
DeleteVodRealtimeLogDeliveryRequest::DeleteVodRealtimeLogDeliveryRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "DeleteVodRealtimeLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteVodRealtimeLogDeliveryRequest::~DeleteVodRealtimeLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteVodRealtimeLogDeliveryRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void DeleteVodRealtimeLogDeliveryRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string DeleteVodRealtimeLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteVodRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DeleteVodRealtimeLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteVodRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteVodRealtimeLogDeliveryRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DeleteVodRealtimeLogDeliveryRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string DeleteVodRealtimeLogDeliveryRequest::getLogstore()const
|
||||
{
|
||||
return logstore_;
|
||||
}
|
||||
|
||||
void DeleteVodRealtimeLogDeliveryRequest::setLogstore(const std::string& logstore)
|
||||
{
|
||||
logstore_ = logstore;
|
||||
setParameter("Logstore", logstore);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DeleteVodRealtimeLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
DeleteVodRealtimeLogDeliveryResult::DeleteVodRealtimeLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteVodRealtimeLogDeliveryResult::DeleteVodRealtimeLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteVodRealtimeLogDeliveryResult::~DeleteVodRealtimeLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void DeleteVodRealtimeLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodDomainRealtimeLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::DescribeVodDomainRealtimeLogDeliveryRequest;
|
||||
|
||||
DescribeVodDomainRealtimeLogDeliveryRequest::DescribeVodDomainRealtimeLogDeliveryRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainRealtimeLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeVodDomainRealtimeLogDeliveryRequest::~DescribeVodDomainRealtimeLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVodDomainRealtimeLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeVodDomainRealtimeLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodDomainRealtimeLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
DescribeVodDomainRealtimeLogDeliveryResult::DescribeVodDomainRealtimeLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVodDomainRealtimeLogDeliveryResult::DescribeVodDomainRealtimeLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVodDomainRealtimeLogDeliveryResult::~DescribeVodDomainRealtimeLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void DescribeVodDomainRealtimeLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Project"].isNull())
|
||||
project_ = value["Project"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
region_ = value["Region"].asString();
|
||||
if(!value["Logstore"].isNull())
|
||||
logstore_ = value["Logstore"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainRealtimeLogDeliveryResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainRealtimeLogDeliveryResult::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainRealtimeLogDeliveryResult::getLogstore()const
|
||||
{
|
||||
return logstore_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainRealtimeLogDeliveryResult::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodDomainSrcBpsDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::DescribeVodDomainSrcBpsDataRequest;
|
||||
|
||||
DescribeVodDomainSrcBpsDataRequest::DescribeVodDomainSrcBpsDataRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainSrcBpsData")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVodDomainSrcBpsDataRequest::~DescribeVodDomainSrcBpsDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcBpsDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcBpsDataRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcBpsDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeVodDomainSrcBpsDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcBpsDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcBpsDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", interval);
|
||||
}
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodDomainSrcBpsDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
DescribeVodDomainSrcBpsDataResult::DescribeVodDomainSrcBpsDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVodDomainSrcBpsDataResult::DescribeVodDomainSrcBpsDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVodDomainSrcBpsDataResult::~DescribeVodDomainSrcBpsDataResult()
|
||||
{}
|
||||
|
||||
void DescribeVodDomainSrcBpsDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSrcBpsDataPerIntervalNode = value["SrcBpsDataPerInterval"]["DataModule"];
|
||||
for (auto valueSrcBpsDataPerIntervalDataModule : allSrcBpsDataPerIntervalNode)
|
||||
{
|
||||
DataModule srcBpsDataPerIntervalObject;
|
||||
if(!valueSrcBpsDataPerIntervalDataModule["Value"].isNull())
|
||||
srcBpsDataPerIntervalObject.value = valueSrcBpsDataPerIntervalDataModule["Value"].asString();
|
||||
if(!valueSrcBpsDataPerIntervalDataModule["TimeStamp"].isNull())
|
||||
srcBpsDataPerIntervalObject.timeStamp = valueSrcBpsDataPerIntervalDataModule["TimeStamp"].asString();
|
||||
if(!valueSrcBpsDataPerIntervalDataModule["HttpsValue"].isNull())
|
||||
srcBpsDataPerIntervalObject.httpsValue = valueSrcBpsDataPerIntervalDataModule["HttpsValue"].asString();
|
||||
srcBpsDataPerInterval_.push_back(srcBpsDataPerIntervalObject);
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeVodDomainSrcBpsDataResult::DataModule> DescribeVodDomainSrcBpsDataResult::getSrcBpsDataPerInterval()const
|
||||
{
|
||||
return srcBpsDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcBpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodDomainSrcTrafficDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::DescribeVodDomainSrcTrafficDataRequest;
|
||||
|
||||
DescribeVodDomainSrcTrafficDataRequest::DescribeVodDomainSrcTrafficDataRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainSrcTrafficData")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVodDomainSrcTrafficDataRequest::~DescribeVodDomainSrcTrafficDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcTrafficDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcTrafficDataRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcTrafficDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeVodDomainSrcTrafficDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcTrafficDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeVodDomainSrcTrafficDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", interval);
|
||||
}
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodDomainSrcTrafficDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
DescribeVodDomainSrcTrafficDataResult::DescribeVodDomainSrcTrafficDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVodDomainSrcTrafficDataResult::DescribeVodDomainSrcTrafficDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVodDomainSrcTrafficDataResult::~DescribeVodDomainSrcTrafficDataResult()
|
||||
{}
|
||||
|
||||
void DescribeVodDomainSrcTrafficDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSrcTrafficDataPerIntervalNode = value["SrcTrafficDataPerInterval"]["DataModule"];
|
||||
for (auto valueSrcTrafficDataPerIntervalDataModule : allSrcTrafficDataPerIntervalNode)
|
||||
{
|
||||
DataModule srcTrafficDataPerIntervalObject;
|
||||
if(!valueSrcTrafficDataPerIntervalDataModule["Value"].isNull())
|
||||
srcTrafficDataPerIntervalObject.value = valueSrcTrafficDataPerIntervalDataModule["Value"].asString();
|
||||
if(!valueSrcTrafficDataPerIntervalDataModule["TimeStamp"].isNull())
|
||||
srcTrafficDataPerIntervalObject.timeStamp = valueSrcTrafficDataPerIntervalDataModule["TimeStamp"].asString();
|
||||
if(!valueSrcTrafficDataPerIntervalDataModule["HttpsValue"].isNull())
|
||||
srcTrafficDataPerIntervalObject.httpsValue = valueSrcTrafficDataPerIntervalDataModule["HttpsValue"].asString();
|
||||
srcTrafficDataPerInterval_.push_back(srcTrafficDataPerIntervalObject);
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeVodDomainSrcTrafficDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::vector<DescribeVodDomainSrcTrafficDataResult::DataModule> DescribeVodDomainSrcTrafficDataResult::getSrcTrafficDataPerInterval()const
|
||||
{
|
||||
return srcTrafficDataPerInterval_;
|
||||
}
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::DescribeVodTagResourcesRequest;
|
||||
|
||||
DescribeVodTagResourcesRequest::DescribeVodTagResourcesRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "DescribeVodTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVodTagResourcesRequest::~DescribeVodTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVodTagResourcesRequest::getScope()const
|
||||
{
|
||||
return scope_;
|
||||
}
|
||||
|
||||
void DescribeVodTagResourcesRequest::setScope(const std::string& scope)
|
||||
{
|
||||
scope_ = scope;
|
||||
setParameter("Scope", scope);
|
||||
}
|
||||
|
||||
std::vector<DescribeVodTagResourcesRequest::Tag> DescribeVodTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeVodTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeVodTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeVodTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
long DescribeVodTagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVodTagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeVodTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeVodTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
DescribeVodTagResourcesResult::DescribeVodTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVodTagResourcesResult::DescribeVodTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVodTagResourcesResult::~DescribeVodTagResourcesResult()
|
||||
{}
|
||||
|
||||
void DescribeVodTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
auto allTagNode = valueTagResourcesTagResource["Tag"]["TagItem"];
|
||||
for (auto valueTagResourcesTagResourceTagTagItem : allTagNode)
|
||||
{
|
||||
TagResource::TagItem tagObject;
|
||||
if(!valueTagResourcesTagResourceTagTagItem["Key"].isNull())
|
||||
tagObject.key = valueTagResourcesTagResourceTagTagItem["Key"].asString();
|
||||
if(!valueTagResourcesTagResourceTagTagItem["Value"].isNull())
|
||||
tagObject.value = valueTagResourcesTagResourceTagTagItem["Value"].asString();
|
||||
tagResourcesObject.tag.push_back(tagObject);
|
||||
}
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeVodTagResourcesResult::TagResource> DescribeVodTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodUserTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::DescribeVodUserTagsRequest;
|
||||
|
||||
DescribeVodUserTagsRequest::DescribeVodUserTagsRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "DescribeVodUserTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVodUserTagsRequest::~DescribeVodUserTagsRequest()
|
||||
{}
|
||||
|
||||
long DescribeVodUserTagsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVodUserTagsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DescribeVodUserTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
DescribeVodUserTagsResult::DescribeVodUserTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVodUserTagsResult::DescribeVodUserTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVodUserTagsResult::~DescribeVodUserTagsResult()
|
||||
{}
|
||||
|
||||
void DescribeVodUserTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTagsTag["Key"].asString();
|
||||
auto allValue = value["Value"]["Value"];
|
||||
for (auto value : allValue)
|
||||
tagsObject.value.push_back(value.asString());
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeVodUserTagsResult::Tag> DescribeVodUserTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DisableVodRealtimeLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::DisableVodRealtimeLogDeliveryRequest;
|
||||
|
||||
DisableVodRealtimeLogDeliveryRequest::DisableVodRealtimeLogDeliveryRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "DisableVodRealtimeLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DisableVodRealtimeLogDeliveryRequest::~DisableVodRealtimeLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string DisableVodRealtimeLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DisableVodRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DisableVodRealtimeLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableVodRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/DisableVodRealtimeLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
DisableVodRealtimeLogDeliveryResult::DisableVodRealtimeLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableVodRealtimeLogDeliveryResult::DisableVodRealtimeLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableVodRealtimeLogDeliveryResult::~DisableVodRealtimeLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void DisableVodRealtimeLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/EnableVodRealtimeLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::EnableVodRealtimeLogDeliveryRequest;
|
||||
|
||||
EnableVodRealtimeLogDeliveryRequest::EnableVodRealtimeLogDeliveryRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "EnableVodRealtimeLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
EnableVodRealtimeLogDeliveryRequest::~EnableVodRealtimeLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string EnableVodRealtimeLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void EnableVodRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long EnableVodRealtimeLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableVodRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/EnableVodRealtimeLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
EnableVodRealtimeLogDeliveryResult::EnableVodRealtimeLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableVodRealtimeLogDeliveryResult::EnableVodRealtimeLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableVodRealtimeLogDeliveryResult::~EnableVodRealtimeLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void EnableVodRealtimeLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -91,6 +91,8 @@ void GetPlayInfoResult::parse(const std::string &payload)
|
||||
playInfoListObject.format = valuePlayInfoListPlayInfo["Format"].asString();
|
||||
if(!valuePlayInfoListPlayInfo["HDRType"].isNull())
|
||||
playInfoListObject.hDRType = valuePlayInfoListPlayInfo["HDRType"].asString();
|
||||
if(!valuePlayInfoListPlayInfo["BitDepth"].isNull())
|
||||
playInfoListObject.bitDepth = std::stoi(valuePlayInfoListPlayInfo["BitDepth"].asString());
|
||||
playInfoList_.push_back(playInfoListObject);
|
||||
}
|
||||
auto videoBaseNode = value["VideoBase"];
|
||||
|
||||
@@ -43,26 +43,26 @@ void GetURLUploadInfosResult::parse(const std::string &payload)
|
||||
for (auto valueURLUploadInfoListUrlUploadJobInfoDTO : allURLUploadInfoListNode)
|
||||
{
|
||||
UrlUploadJobInfoDTO uRLUploadInfoListObject;
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["CreationTime"].isNull())
|
||||
uRLUploadInfoListObject.creationTime = valueURLUploadInfoListUrlUploadJobInfoDTO["CreationTime"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["Status"].isNull())
|
||||
uRLUploadInfoListObject.status = valueURLUploadInfoListUrlUploadJobInfoDTO["Status"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorMessage"].isNull())
|
||||
uRLUploadInfoListObject.errorMessage = valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorMessage"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorCode"].isNull())
|
||||
uRLUploadInfoListObject.errorCode = valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorCode"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["CompleteTime"].isNull())
|
||||
uRLUploadInfoListObject.completeTime = valueURLUploadInfoListUrlUploadJobInfoDTO["CompleteTime"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["JobId"].isNull())
|
||||
uRLUploadInfoListObject.jobId = valueURLUploadInfoListUrlUploadJobInfoDTO["JobId"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["UserData"].isNull())
|
||||
uRLUploadInfoListObject.userData = valueURLUploadInfoListUrlUploadJobInfoDTO["UserData"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["UploadURL"].isNull())
|
||||
uRLUploadInfoListObject.uploadURL = valueURLUploadInfoListUrlUploadJobInfoDTO["UploadURL"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["MediaId"].isNull())
|
||||
uRLUploadInfoListObject.mediaId = valueURLUploadInfoListUrlUploadJobInfoDTO["MediaId"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["FileSize"].isNull())
|
||||
uRLUploadInfoListObject.fileSize = valueURLUploadInfoListUrlUploadJobInfoDTO["FileSize"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["Status"].isNull())
|
||||
uRLUploadInfoListObject.status = valueURLUploadInfoListUrlUploadJobInfoDTO["Status"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["UserData"].isNull())
|
||||
uRLUploadInfoListObject.userData = valueURLUploadInfoListUrlUploadJobInfoDTO["UserData"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorCode"].isNull())
|
||||
uRLUploadInfoListObject.errorCode = valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorCode"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorMessage"].isNull())
|
||||
uRLUploadInfoListObject.errorMessage = valueURLUploadInfoListUrlUploadJobInfoDTO["ErrorMessage"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["CreationTime"].isNull())
|
||||
uRLUploadInfoListObject.creationTime = valueURLUploadInfoListUrlUploadJobInfoDTO["CreationTime"].asString();
|
||||
if(!valueURLUploadInfoListUrlUploadJobInfoDTO["CompleteTime"].isNull())
|
||||
uRLUploadInfoListObject.completeTime = valueURLUploadInfoListUrlUploadJobInfoDTO["CompleteTime"].asString();
|
||||
uRLUploadInfoList_.push_back(uRLUploadInfoListObject);
|
||||
}
|
||||
auto allNonExists = value["NonExists"]["ExistId"];
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/ListMediaDNADeleteJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::ListMediaDNADeleteJobRequest;
|
||||
|
||||
ListMediaDNADeleteJobRequest::ListMediaDNADeleteJobRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "ListMediaDNADeleteJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMediaDNADeleteJobRequest::~ListMediaDNADeleteJobRequest()
|
||||
{}
|
||||
|
||||
std::string ListMediaDNADeleteJobRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListMediaDNADeleteJobRequest::setResourceOwnerId(const std::string& resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", resourceOwnerId);
|
||||
}
|
||||
|
||||
std::string ListMediaDNADeleteJobRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ListMediaDNADeleteJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ListMediaDNADeleteJobRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ListMediaDNADeleteJobRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ListMediaDNADeleteJobRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListMediaDNADeleteJobRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
std::string ListMediaDNADeleteJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListMediaDNADeleteJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListMediaDNADeleteJobRequest::getJobIds()const
|
||||
{
|
||||
return jobIds_;
|
||||
}
|
||||
|
||||
void ListMediaDNADeleteJobRequest::setJobIds(const std::string& jobIds)
|
||||
{
|
||||
jobIds_ = jobIds;
|
||||
setParameter("JobIds", jobIds);
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/ListMediaDNADeleteJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
ListMediaDNADeleteJobResult::ListMediaDNADeleteJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMediaDNADeleteJobResult::ListMediaDNADeleteJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMediaDNADeleteJobResult::~ListMediaDNADeleteJobResult()
|
||||
{}
|
||||
|
||||
void ListMediaDNADeleteJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAIJobListNode = value["AIJobList"]["AIJob"];
|
||||
for (auto valueAIJobListAIJob : allAIJobListNode)
|
||||
{
|
||||
AIJob aIJobListObject;
|
||||
if(!valueAIJobListAIJob["JobId"].isNull())
|
||||
aIJobListObject.jobId = valueAIJobListAIJob["JobId"].asString();
|
||||
if(!valueAIJobListAIJob["MediaId"].isNull())
|
||||
aIJobListObject.mediaId = valueAIJobListAIJob["MediaId"].asString();
|
||||
if(!valueAIJobListAIJob["Status"].isNull())
|
||||
aIJobListObject.status = valueAIJobListAIJob["Status"].asString();
|
||||
if(!valueAIJobListAIJob["Code"].isNull())
|
||||
aIJobListObject.code = valueAIJobListAIJob["Code"].asString();
|
||||
if(!valueAIJobListAIJob["Message"].isNull())
|
||||
aIJobListObject.message = valueAIJobListAIJob["Message"].asString();
|
||||
if(!valueAIJobListAIJob["FpDBId"].isNull())
|
||||
aIJobListObject.fpDBId = valueAIJobListAIJob["FpDBId"].asString();
|
||||
aIJobList_.push_back(aIJobListObject);
|
||||
}
|
||||
auto allNonExistAIJobIds = value["NonExistAIJobIds"]["String"];
|
||||
for (const auto &item : allNonExistAIJobIds)
|
||||
nonExistAIJobIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListMediaDNADeleteJobResult::AIJob> ListMediaDNADeleteJobResult::getAIJobList()const
|
||||
{
|
||||
return aIJobList_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListMediaDNADeleteJobResult::getNonExistAIJobIds()const
|
||||
{
|
||||
return nonExistAIJobIds_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/ListVodRealtimeLogDeliveryDomainsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::ListVodRealtimeLogDeliveryDomainsRequest;
|
||||
|
||||
ListVodRealtimeLogDeliveryDomainsRequest::ListVodRealtimeLogDeliveryDomainsRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "ListVodRealtimeLogDeliveryDomains")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListVodRealtimeLogDeliveryDomainsRequest::~ListVodRealtimeLogDeliveryDomainsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVodRealtimeLogDeliveryDomainsRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void ListVodRealtimeLogDeliveryDomainsRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
long ListVodRealtimeLogDeliveryDomainsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListVodRealtimeLogDeliveryDomainsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListVodRealtimeLogDeliveryDomainsRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ListVodRealtimeLogDeliveryDomainsRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string ListVodRealtimeLogDeliveryDomainsRequest::getLogstore()const
|
||||
{
|
||||
return logstore_;
|
||||
}
|
||||
|
||||
void ListVodRealtimeLogDeliveryDomainsRequest::setLogstore(const std::string& logstore)
|
||||
{
|
||||
logstore_ = logstore;
|
||||
setParameter("Logstore", logstore);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/ListVodRealtimeLogDeliveryDomainsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
ListVodRealtimeLogDeliveryDomainsResult::ListVodRealtimeLogDeliveryDomainsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVodRealtimeLogDeliveryDomainsResult::ListVodRealtimeLogDeliveryDomainsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVodRealtimeLogDeliveryDomainsResult::~ListVodRealtimeLogDeliveryDomainsResult()
|
||||
{}
|
||||
|
||||
void ListVodRealtimeLogDeliveryDomainsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContentNode = value["Content"]["Domains"];
|
||||
for (auto valueContentDomains : allContentNode)
|
||||
{
|
||||
Domains contentObject;
|
||||
if(!valueContentDomains["DomainName"].isNull())
|
||||
contentObject.domainName = valueContentDomains["DomainName"].asString();
|
||||
if(!valueContentDomains["Status"].isNull())
|
||||
contentObject.status = valueContentDomains["Status"].asString();
|
||||
content_.push_back(contentObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVodRealtimeLogDeliveryDomainsResult::Domains> ListVodRealtimeLogDeliveryDomainsResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/ListVodRealtimeLogDeliveryInfosRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::ListVodRealtimeLogDeliveryInfosRequest;
|
||||
|
||||
ListVodRealtimeLogDeliveryInfosRequest::ListVodRealtimeLogDeliveryInfosRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "ListVodRealtimeLogDeliveryInfos")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListVodRealtimeLogDeliveryInfosRequest::~ListVodRealtimeLogDeliveryInfosRequest()
|
||||
{}
|
||||
|
||||
long ListVodRealtimeLogDeliveryInfosRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListVodRealtimeLogDeliveryInfosRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/ListVodRealtimeLogDeliveryInfosResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
ListVodRealtimeLogDeliveryInfosResult::ListVodRealtimeLogDeliveryInfosResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVodRealtimeLogDeliveryInfosResult::ListVodRealtimeLogDeliveryInfosResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVodRealtimeLogDeliveryInfosResult::~ListVodRealtimeLogDeliveryInfosResult()
|
||||
{}
|
||||
|
||||
void ListVodRealtimeLogDeliveryInfosResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContentNode = value["Content"]["RealtimeLogDeliveryInfos"];
|
||||
for (auto valueContentRealtimeLogDeliveryInfos : allContentNode)
|
||||
{
|
||||
RealtimeLogDeliveryInfos contentObject;
|
||||
if(!valueContentRealtimeLogDeliveryInfos["Project"].isNull())
|
||||
contentObject.project = valueContentRealtimeLogDeliveryInfos["Project"].asString();
|
||||
if(!valueContentRealtimeLogDeliveryInfos["Logstore"].isNull())
|
||||
contentObject.logstore = valueContentRealtimeLogDeliveryInfos["Logstore"].asString();
|
||||
if(!valueContentRealtimeLogDeliveryInfos["Region"].isNull())
|
||||
contentObject.region = valueContentRealtimeLogDeliveryInfos["Region"].asString();
|
||||
content_.push_back(contentObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVodRealtimeLogDeliveryInfosResult::RealtimeLogDeliveryInfos> ListVodRealtimeLogDeliveryInfosResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
@@ -43,12 +43,12 @@ void RegisterMediaResult::parse(const std::string &payload)
|
||||
for (auto valueRegisteredMediaListRegisteredMedia : allRegisteredMediaListNode)
|
||||
{
|
||||
RegisteredMedia registeredMediaListObject;
|
||||
if(!valueRegisteredMediaListRegisteredMedia["MediaId"].isNull())
|
||||
registeredMediaListObject.mediaId = valueRegisteredMediaListRegisteredMedia["MediaId"].asString();
|
||||
if(!valueRegisteredMediaListRegisteredMedia["FileURL"].isNull())
|
||||
registeredMediaListObject.fileURL = valueRegisteredMediaListRegisteredMedia["FileURL"].asString();
|
||||
if(!valueRegisteredMediaListRegisteredMedia["NewRegister"].isNull())
|
||||
registeredMediaListObject.newRegister = valueRegisteredMediaListRegisteredMedia["NewRegister"].asString() == "true";
|
||||
if(!valueRegisteredMediaListRegisteredMedia["FileURL"].isNull())
|
||||
registeredMediaListObject.fileURL = valueRegisteredMediaListRegisteredMedia["FileURL"].asString();
|
||||
if(!valueRegisteredMediaListRegisteredMedia["MediaId"].isNull())
|
||||
registeredMediaListObject.mediaId = valueRegisteredMediaListRegisteredMedia["MediaId"].asString();
|
||||
registeredMediaList_.push_back(registeredMediaListObject);
|
||||
}
|
||||
auto allFailedFileURLs = value["FailedFileURLs"]["FileURL"];
|
||||
|
||||
@@ -1,183 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/SubmitLiveEditingRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::SubmitLiveEditingRequest;
|
||||
|
||||
SubmitLiveEditingRequest::SubmitLiveEditingRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "SubmitLiveEditing")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitLiveEditingRequest::~SubmitLiveEditingRequest()
|
||||
{}
|
||||
|
||||
long SubmitLiveEditingRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getClips()const
|
||||
{
|
||||
return clips_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setClips(const std::string& clips)
|
||||
{
|
||||
clips_ = clips;
|
||||
setParameter("Clips", clips);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getCoverURL()const
|
||||
{
|
||||
return coverURL_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setCoverURL(const std::string& coverURL)
|
||||
{
|
||||
coverURL_ = coverURL;
|
||||
setParameter("CoverURL", coverURL);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setUserData(const std::string& userData)
|
||||
{
|
||||
userData_ = userData;
|
||||
setParameter("UserData", userData);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getProduceConfig()const
|
||||
{
|
||||
return produceConfig_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setProduceConfig(const std::string& produceConfig)
|
||||
{
|
||||
produceConfig_ = produceConfig;
|
||||
setParameter("ProduceConfig", produceConfig);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getStreamName()const
|
||||
{
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setStreamName(const std::string& streamName)
|
||||
{
|
||||
streamName_ = streamName;
|
||||
setParameter("StreamName", streamName);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getMediaMetadata()const
|
||||
{
|
||||
return mediaMetadata_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setMediaMetadata(const std::string& mediaMetadata)
|
||||
{
|
||||
mediaMetadata_ = mediaMetadata;
|
||||
setParameter("MediaMetadata", mediaMetadata);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long SubmitLiveEditingRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SubmitLiveEditingRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/SubmitLiveEditingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
SubmitLiveEditingResult::SubmitLiveEditingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitLiveEditingResult::SubmitLiveEditingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitLiveEditingResult::~SubmitLiveEditingResult()
|
||||
{}
|
||||
|
||||
void SubmitLiveEditingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MediaId"].isNull())
|
||||
mediaId_ = value["MediaId"].asString();
|
||||
if(!value["ProjectId"].isNull())
|
||||
projectId_ = value["ProjectId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingResult::getMediaId()const
|
||||
{
|
||||
return mediaId_;
|
||||
}
|
||||
|
||||
std::string SubmitLiveEditingResult::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/TagVodResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::TagVodResourcesRequest;
|
||||
|
||||
TagVodResourcesRequest::TagVodResourcesRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "TagVodResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagVodResourcesRequest::~TagVodResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<TagVodResourcesRequest::Tag> TagVodResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagVodResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> TagVodResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagVodResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
long TagVodResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void TagVodResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string TagVodResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void TagVodResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/TagVodResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
TagVodResourcesResult::TagVodResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagVodResourcesResult::TagVodResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagVodResourcesResult::~TagVodResourcesResult()
|
||||
{}
|
||||
|
||||
void TagVodResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/UnTagVodResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::UnTagVodResourcesRequest;
|
||||
|
||||
UnTagVodResourcesRequest::UnTagVodResourcesRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "UnTagVodResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnTagVodResourcesRequest::~UnTagVodResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UnTagVodResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UnTagVodResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagVodResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UnTagVodResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
long UnTagVodResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnTagVodResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UnTagVodResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UnTagVodResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagVodResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UnTagVodResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/UnTagVodResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
UnTagVodResourcesResult::UnTagVodResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnTagVodResourcesResult::UnTagVodResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnTagVodResourcesResult::~UnTagVodResourcesResult()
|
||||
{}
|
||||
|
||||
void UnTagVodResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/UpdateStreamInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Vod::Model::UpdateStreamInfoRequest;
|
||||
|
||||
UpdateStreamInfoRequest::UpdateStreamInfoRequest() :
|
||||
RpcServiceRequest("vod", "2017-03-21", "UpdateStreamInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateStreamInfoRequest::~UpdateStreamInfoRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateStreamInfoRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void UpdateStreamInfoRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string UpdateStreamInfoRequest::getHDRType()const
|
||||
{
|
||||
return hDRType_;
|
||||
}
|
||||
|
||||
void UpdateStreamInfoRequest::setHDRType(const std::string& hDRType)
|
||||
{
|
||||
hDRType_ = hDRType;
|
||||
setParameter("HDRType", hDRType);
|
||||
}
|
||||
|
||||
std::string UpdateStreamInfoRequest::getDefinition()const
|
||||
{
|
||||
return definition_;
|
||||
}
|
||||
|
||||
void UpdateStreamInfoRequest::setDefinition(const std::string& definition)
|
||||
{
|
||||
definition_ = definition;
|
||||
setParameter("Definition", definition);
|
||||
}
|
||||
|
||||
std::string UpdateStreamInfoRequest::getMediaId()const
|
||||
{
|
||||
return mediaId_;
|
||||
}
|
||||
|
||||
void UpdateStreamInfoRequest::setMediaId(const std::string& mediaId)
|
||||
{
|
||||
mediaId_ = mediaId;
|
||||
setParameter("MediaId", mediaId);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/vod/model/UpdateStreamInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vod;
|
||||
using namespace AlibabaCloud::Vod::Model;
|
||||
|
||||
UpdateStreamInfoResult::UpdateStreamInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateStreamInfoResult::UpdateStreamInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateStreamInfoResult::~UpdateStreamInfoResult()
|
||||
{}
|
||||
|
||||
void UpdateStreamInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user