Supported GetMediaMeta for IMM.

This commit is contained in:
sdk-team
2019-08-06 19:37:03 +08:00
parent 8d4de3d11c
commit 76644841af
14 changed files with 2780 additions and 2030 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetMediaMetaRequest : public RpcServiceRequest
{
public:
GetMediaMetaRequest();
~GetMediaMetaRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getMediaUri()const;
void setMediaUri(const std::string& mediaUri);
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string regionId_;
std::string mediaUri_;
std::string project_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_

View File

@@ -0,0 +1,126 @@
/*
* 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_IMM_MODEL_GETMEDIAMETARESULT_H_
#define ALIBABACLOUD_IMM_MODEL_GETMEDIAMETARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetMediaMetaResult : public ServiceResult
{
public:
struct MediaMeta
{
struct MediaFormat
{
int numberStreams;
std::string size;
std::string formatLongName;
std::string startTime;
std::string creationTime;
std::string formatName;
std::string duration;
std::string bitrate;
int numberPrograms;
std::string location;
};
struct MediaStreams
{
struct VideoStream
{
std::string codecTag;
std::string frames;
std::string codecTimeBase;
std::string sampleAspectRatio;
std::string startTime;
int index;
std::string duration;
std::string codecName;
std::string bitrate;
std::string profile;
std::string displayAspectRatio;
std::string codecTagString;
int hasBFrames;
std::string averageFrameRate;
std::string language;
std::string codecLongName;
int height;
std::string pixelFormat;
int level;
std::string frameRrate;
int width;
std::string timeBase;
};
struct AudioStream
{
std::string codecTag;
std::string frames;
std::string codecTimeBase;
std::string channelLayout;
std::string startTime;
int index;
std::string duration;
std::string codecName;
std::string bitrate;
std::string sampleFormat;
int channels;
std::string codecTagString;
std::string sampleRate;
std::string language;
std::string codecLongName;
std::string timeBase;
};
struct SubtitleStream
{
std::string language;
int index;
};
std::vector<VideoStream> videoStreams;
std::vector<SubtitleStream> subtitleStreams;
std::vector<AudioStream> audioStreams;
};
MediaFormat mediaFormat;
MediaStreams mediaStreams;
};
GetMediaMetaResult();
explicit GetMediaMetaResult(const std::string &payload);
~GetMediaMetaResult();
std::string getMediaUri()const;
MediaMeta getMediaMeta()const;
protected:
void parse(const std::string &payload);
private:
std::string mediaUri_;
MediaMeta mediaMeta_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETMEDIAMETARESULT_H_

View File

@@ -37,10 +37,10 @@ namespace AlibabaCloud
GetSetResult();
explicit GetSetResult(const std::string &payload);
~GetSetResult();
long getModifyTime()const;
std::string getModifyTime()const;
int getImageCount()const;
int getVideoCount()const;
long getCreateTime()const;
std::string getCreateTime()const;
std::string getSetName()const;
std::string getSetId()const;
int getFaceCount()const;
@@ -49,10 +49,10 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
long modifyTime_;
std::string modifyTime_;
int imageCount_;
int videoCount_;
long createTime_;
std::string createTime_;
std::string setName_;
std::string setId_;
int faceCount_;

View File

@@ -0,0 +1,54 @@
/*
* 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_IMM_MODEL_LISTPROJECTAPISREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsRequest : public RpcServiceRequest
{
public:
ListProjectAPIsRequest();
~ListProjectAPIsRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string regionId_;
std::string project_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_IMM_MODEL_LISTPROJECTAPISRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsResult : public ServiceResult
{
public:
ListProjectAPIsResult();
explicit ListProjectAPIsResult(const std::string &payload);
~ListProjectAPIsResult();
std::string getProject()const;
std::vector<std::string> getAPIs()const;
protected:
void parse(const std::string &payload);
private:
std::string project_;
std::vector<std::string> aPIs_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_