Api add media storage class.
This commit is contained in:
@@ -246,6 +246,8 @@
|
||||
#include "model/RefreshVodObjectCachesResult.h"
|
||||
#include "model/RegisterMediaRequest.h"
|
||||
#include "model/RegisterMediaResult.h"
|
||||
#include "model/RestoreMediaRequest.h"
|
||||
#include "model/RestoreMediaResult.h"
|
||||
#include "model/SearchEditingProjectRequest.h"
|
||||
#include "model/SearchEditingProjectResult.h"
|
||||
#include "model/SearchMediaRequest.h"
|
||||
@@ -298,6 +300,8 @@
|
||||
#include "model/UpdateEditingProjectResult.h"
|
||||
#include "model/UpdateImageInfosRequest.h"
|
||||
#include "model/UpdateImageInfosResult.h"
|
||||
#include "model/UpdateMediaStorageClassRequest.h"
|
||||
#include "model/UpdateMediaStorageClassResult.h"
|
||||
#include "model/UpdateTranscodeTemplateGroupRequest.h"
|
||||
#include "model/UpdateTranscodeTemplateGroupResult.h"
|
||||
#include "model/UpdateVideoInfoRequest.h"
|
||||
@@ -661,6 +665,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RegisterMediaResult> RegisterMediaOutcome;
|
||||
typedef std::future<RegisterMediaOutcome> RegisterMediaOutcomeCallable;
|
||||
typedef std::function<void(const VodClient*, const Model::RegisterMediaRequest&, const RegisterMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterMediaAsyncHandler;
|
||||
typedef Outcome<Error, Model::RestoreMediaResult> RestoreMediaOutcome;
|
||||
typedef std::future<RestoreMediaOutcome> RestoreMediaOutcomeCallable;
|
||||
typedef std::function<void(const VodClient*, const Model::RestoreMediaRequest&, const RestoreMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestoreMediaAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchEditingProjectResult> SearchEditingProjectOutcome;
|
||||
typedef std::future<SearchEditingProjectOutcome> SearchEditingProjectOutcomeCallable;
|
||||
typedef std::function<void(const VodClient*, const Model::SearchEditingProjectRequest&, const SearchEditingProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchEditingProjectAsyncHandler;
|
||||
@@ -739,6 +746,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateImageInfosResult> UpdateImageInfosOutcome;
|
||||
typedef std::future<UpdateImageInfosOutcome> UpdateImageInfosOutcomeCallable;
|
||||
typedef std::function<void(const VodClient*, const Model::UpdateImageInfosRequest&, const UpdateImageInfosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateImageInfosAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateMediaStorageClassResult> UpdateMediaStorageClassOutcome;
|
||||
typedef std::future<UpdateMediaStorageClassOutcome> UpdateMediaStorageClassOutcomeCallable;
|
||||
typedef std::function<void(const VodClient*, const Model::UpdateMediaStorageClassRequest&, const UpdateMediaStorageClassOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMediaStorageClassAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateTranscodeTemplateGroupResult> UpdateTranscodeTemplateGroupOutcome;
|
||||
typedef std::future<UpdateTranscodeTemplateGroupOutcome> UpdateTranscodeTemplateGroupOutcomeCallable;
|
||||
typedef std::function<void(const VodClient*, const Model::UpdateTranscodeTemplateGroupRequest&, const UpdateTranscodeTemplateGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTranscodeTemplateGroupAsyncHandler;
|
||||
@@ -1107,6 +1117,9 @@ namespace AlibabaCloud
|
||||
RegisterMediaOutcome registerMedia(const Model::RegisterMediaRequest &request)const;
|
||||
void registerMediaAsync(const Model::RegisterMediaRequest& request, const RegisterMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterMediaOutcomeCallable registerMediaCallable(const Model::RegisterMediaRequest& request) const;
|
||||
RestoreMediaOutcome restoreMedia(const Model::RestoreMediaRequest &request)const;
|
||||
void restoreMediaAsync(const Model::RestoreMediaRequest& request, const RestoreMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RestoreMediaOutcomeCallable restoreMediaCallable(const Model::RestoreMediaRequest& request) const;
|
||||
SearchEditingProjectOutcome searchEditingProject(const Model::SearchEditingProjectRequest &request)const;
|
||||
void searchEditingProjectAsync(const Model::SearchEditingProjectRequest& request, const SearchEditingProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchEditingProjectOutcomeCallable searchEditingProjectCallable(const Model::SearchEditingProjectRequest& request) const;
|
||||
@@ -1185,6 +1198,9 @@ namespace AlibabaCloud
|
||||
UpdateImageInfosOutcome updateImageInfos(const Model::UpdateImageInfosRequest &request)const;
|
||||
void updateImageInfosAsync(const Model::UpdateImageInfosRequest& request, const UpdateImageInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateImageInfosOutcomeCallable updateImageInfosCallable(const Model::UpdateImageInfosRequest& request) const;
|
||||
UpdateMediaStorageClassOutcome updateMediaStorageClass(const Model::UpdateMediaStorageClassRequest &request)const;
|
||||
void updateMediaStorageClassAsync(const Model::UpdateMediaStorageClassRequest& request, const UpdateMediaStorageClassAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateMediaStorageClassOutcomeCallable updateMediaStorageClassCallable(const Model::UpdateMediaStorageClassRequest& request) const;
|
||||
UpdateTranscodeTemplateGroupOutcome updateTranscodeTemplateGroup(const Model::UpdateTranscodeTemplateGroupRequest &request)const;
|
||||
void updateTranscodeTemplateGroupAsync(const Model::UpdateTranscodeTemplateGroupRequest& request, const UpdateTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateTranscodeTemplateGroupOutcomeCallable updateTranscodeTemplateGroupCallable(const Model::UpdateTranscodeTemplateGroupRequest& request) const;
|
||||
|
||||
51
vod/include/alibabacloud/vod/model/RestoreMediaRequest.h
Normal file
51
vod/include/alibabacloud/vod/model/RestoreMediaRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOD_MODEL_RESTOREMEDIAREQUEST_H_
|
||||
#define ALIBABACLOUD_VOD_MODEL_RESTOREMEDIAREQUEST_H_
|
||||
|
||||
#include <alibabacloud/vod/VodExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Vod {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_VOD_EXPORT RestoreMediaRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RestoreMediaRequest();
|
||||
~RestoreMediaRequest();
|
||||
std::string getRestoreTier() const;
|
||||
void setRestoreTier(const std::string &restoreTier);
|
||||
std::string getRestoreDays() const;
|
||||
void setRestoreDays(const std::string &restoreDays);
|
||||
std::string getScope() const;
|
||||
void setScope(const std::string &scope);
|
||||
std::string getMediaIds() const;
|
||||
void setMediaIds(const std::string &mediaIds);
|
||||
|
||||
private:
|
||||
std::string restoreTier_;
|
||||
std::string restoreDays_;
|
||||
std::string scope_;
|
||||
std::string mediaIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Vod
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_VOD_MODEL_RESTOREMEDIAREQUEST_H_
|
||||
60
vod/include/alibabacloud/vod/model/RestoreMediaResult.h
Normal file
60
vod/include/alibabacloud/vod/model/RestoreMediaResult.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOD_MODEL_RESTOREMEDIARESULT_H_
|
||||
#define ALIBABACLOUD_VOD_MODEL_RESTOREMEDIARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vod/VodExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vod
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VOD_EXPORT RestoreMediaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MediaForbiddenReasonDTO
|
||||
{
|
||||
std::string mediaId;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
RestoreMediaResult();
|
||||
explicit RestoreMediaResult(const std::string &payload);
|
||||
~RestoreMediaResult();
|
||||
std::vector<std::string> getIgnoredList()const;
|
||||
std::vector<MediaForbiddenReasonDTO> getForbiddenList()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> ignoredList_;
|
||||
std::vector<MediaForbiddenReasonDTO> forbiddenList_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOD_MODEL_RESTOREMEDIARESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOD_MODEL_UPDATEMEDIASTORAGECLASSREQUEST_H_
|
||||
#define ALIBABACLOUD_VOD_MODEL_UPDATEMEDIASTORAGECLASSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/vod/VodExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Vod {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_VOD_EXPORT UpdateMediaStorageClassRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdateMediaStorageClassRequest();
|
||||
~UpdateMediaStorageClassRequest();
|
||||
std::string getRestoreTier() const;
|
||||
void setRestoreTier(const std::string &restoreTier);
|
||||
std::string getScope() const;
|
||||
void setScope(const std::string &scope);
|
||||
std::string getMediaIds() const;
|
||||
void setMediaIds(const std::string &mediaIds);
|
||||
std::string getStorageClass() const;
|
||||
void setStorageClass(const std::string &storageClass);
|
||||
|
||||
private:
|
||||
std::string restoreTier_;
|
||||
std::string scope_;
|
||||
std::string mediaIds_;
|
||||
std::string storageClass_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Vod
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_VOD_MODEL_UPDATEMEDIASTORAGECLASSREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOD_MODEL_UPDATEMEDIASTORAGECLASSRESULT_H_
|
||||
#define ALIBABACLOUD_VOD_MODEL_UPDATEMEDIASTORAGECLASSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vod/VodExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vod
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VOD_EXPORT UpdateMediaStorageClassResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MediaForbiddenReasonDTO
|
||||
{
|
||||
std::string mediaId;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
UpdateMediaStorageClassResult();
|
||||
explicit UpdateMediaStorageClassResult(const std::string &payload);
|
||||
~UpdateMediaStorageClassResult();
|
||||
std::string getStatus()const;
|
||||
std::vector<std::string> getIgnoredList()const;
|
||||
std::vector<MediaForbiddenReasonDTO> getForbiddenList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::vector<std::string> ignoredList_;
|
||||
std::vector<MediaForbiddenReasonDTO> forbiddenList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOD_MODEL_UPDATEMEDIASTORAGECLASSRESULT_H_
|
||||
Reference in New Issue
Block a user