def get_api_info(): api_info = { "GetPlayInfo": ApiInfo("GET", "/", { "Action": "GetPlayInfo", "Version": "2020-08-01" }, {}, {}), "StartWorkflow": ApiInfo("GET", "/", { "Action": "StartWorkflow", "Version": "2020-08-01" }, {}, {}), "UpdateMediaPublishStatus": ApiInfo("GET", "/", { "Action": "UpdateMediaPublishStatus", "Version": "2020-08-01" }, {}, {}), "UpdateMediaInfo": ApiInfo("GET", "/", { "Action": "UpdateMediaInfo", "Version": "2020-08-01" }, {}, {}), "GetMediaInfos": ApiInfo("GET", "/", { "Action": "GetMediaInfos", "Version": "2020-08-01" }, {}, {}), "GetRecommendedPoster": ApiInfo("GET", "/", { "Action": "GetRecommendedPoster", "Version": "2020-08-01" }, {}, {}), "UploadMediaByUrl": ApiInfo("GET", "/", { "Action": "UploadMediaByUrl", "Version": "2020-08-01" }, {}, {}), "QueryUploadTaskInfo": ApiInfo("GET", "/", { "Action": "QueryUploadTaskInfo", "Version": "2020-08-01" }, {}, {}), "ApplyUploadInfo": ApiInfo("GET", "/", { "Action": "ApplyUploadInfo", "Version": "2020-08-01" }, {}, {}), "CommitUploadInfo": ApiInfo("GET", "/", { "Action": "CommitUploadInfo", "Version": "2020-08-01" }, {}, {}), } return api_info
def get_api_info(): api_info = { "BindAXB": ApiInfo("POST", "/", {"Action": "BindAXB", "Version": "2020-09-01"}, {}, {}), "SelectNumberAndBindAXB": ApiInfo("POST", "/", {"Action": "SelectNumberAndBindAXB", "Version": "2020-09-01"}, {}, {}), "UnbindAXB": ApiInfo("POST", "/", {"Action": "UnbindAXB", "Version": "2020-09-01"}, {}, {}), "QuerySubscription": ApiInfo("POST", "/", {"Action": "QuerySubscription", "Version": "2020-09-01"}, {}, {}), "QuerySubscriptionForList": ApiInfo("POST", "/", {"Action": "QuerySubscriptionForList", "Version": "2020-09-01"}, {}, {}), "UpgradeAXToAXB": ApiInfo("POST", "/", {"Action": "UpgradeAXToAXB", "Version": "2020-09-01"}, {}, {}), "UpdateAXB": ApiInfo("POST", "/", {"Action": "UpdateAXB", "Version": "2020-09-01"}, {}, {}), "BindAXN": ApiInfo("POST", "/", {"Action": "BindAXN", "Version": "2020-09-01"}, {}, {}), "UpdateAXN": ApiInfo("POST", "/", {"Action": "UpdateAXN", "Version": "2020-09-01"}, {}, {}), "UnbindAXN": ApiInfo("POST", "/", {"Action": "UnbindAXN", "Version": "2020-09-01"}, {}, {}), } return api_info
def get_api_info(): api_info = { "ListRooms": ApiInfo("GET", "/", { "Action": "ListRooms", "Version": "2020-12-01" }, {}, {}), "ListIndicators": ApiInfo("POST", "/", { "Action": "ListIndicators", "Version": "2020-12-01" }, {}, {}), } return api_info
def get_api_info(): api_info = { "ListUsers": ApiInfo("GET", "/", { "Action": "ListUsers", "Version": "2018-01-01" }, {}, {}) } return api_info
def get_api_info(): api_info = { "AdBlock": ApiInfo("POST", "/", { "Action": "AdBlock", "Version": "2021-01-06" }, {}, {}) } return api_info
def get_api_info(): api_info = { "SendSms": ApiInfo("POST", "/", { "Action": "SendSms", "Version": "2020-01-01" }, {}, {}), "SendSmsVerifyCode": ApiInfo("POST", "/", { "Action": "SendSmsVerifyCode", "Version": "2020-01-01" }, {}, {}), "CheckSmsVerifyCode": ApiInfo("POST", "/", { "Action": "CheckSmsVerifyCode", "Version": "2020-01-01" }, {}, {}), } return api_info
def get_api_info(): api_info = { "SubmitDirectEditTaskAsync": ApiInfo("POST", "/", { "Action": "SubmitDirectEditTaskAsync", "Version": "2018-01-01" }, {}, {}), "GetDirectEditResult": ApiInfo("POST", "/", { "Action": "GetDirectEditResult", "Version": "2018-01-01" }, {}, {}), "SubmitTemplateTaskAsync": ApiInfo("POST", "/", { "Action": "SubmitTemplateTaskAsync", "Version": "2018-01-01" }, {}, {}) } return api_info
def get_api_info(): api_info = { "RiskDetection": ApiInfo("POST", "/", { "Action": "RiskDetection", "Version": "2021-02-02" }, {}, {}), "AsyncRiskDetection": ApiInfo("POST", "/", { "Action": "AsyncRiskDetection", "Version": "2021-02-25" }, {}, {}), "RiskResult": ApiInfo("GET", "/", { "Action": "RiskResult", "Version": "2021-03-10" }, {}, {}), "AccountRisk": ApiInfo("POST", "/", { "Action": "AccountRisk", "Version": "2020-12-25" }, {}, {}), "MobileStatus": ApiInfo("POST", "/", { "Action": "MobileStatus", "Version": "2020-12-25" }, {}, {}), "ElementVerify": ApiInfo("POST", "/", { "Action": "ElementVerify", "Version": "2021-11-23" }, {}, {}) } return api_info
def get_api_info(): api_info = { "JPCartoonCut": ApiInfo("POST", "/", { "Action": "JPCartoonCut", "Version": "2020-08-26" }, {}, {}), "JPCartoon": ApiInfo("POST", "/", { "Action": "JPCartoon", "Version": "2020-08-26" }, {}, {}), "IDCard": ApiInfo("POST", "/", { "Action": "IDCard", "Version": "2020-08-26" }, {}, {}), "FaceSwap": ApiInfo("POST", "/", { "Action": "FaceSwap", "Version": "2020-08-26" }, {}, {}), "OCRNormal": ApiInfo("POST", "/", { "Action": "OCRNormal", "Version": "2020-08-26" }, {}, {}), "BankCard": ApiInfo("POST", "/", { "Action": "BankCard", "Version": "2020-08-26" }, {}, {}), } return api_info
def get_api_info(): api_info = { "KeyphraseExtractionExtract": ApiInfo("POST", "/", { "Action": "KeyphraseExtractionExtract", "Version": "2020-09-01" }, {}, {}), "TextCorrectionZhCorrect": ApiInfo("POST", "/", { "Action": "TextCorrectionZhCorrect", "Version": "2020-09-01" }, {}, {}), "TextCorrectionEnCorrect": ApiInfo("POST", "/", { "Action": "TextCorrectionEnCorrect", "Version": "2020-09-01" }, {}, {}), "SentimentAnalysis": ApiInfo("POST", "/", { "Action": "SentimentAnalysis", "Version": "2020-12-01" }, {}, {}), "TextSummarization": ApiInfo("POST", "/", { "Action": "TextSummarization", "Version": "2020-12-01" }, {}, {}), "EssayAutoGrade": ApiInfo("POST", "/", { "Action": "EssayAutoGrade", "Version": "2021-05-20" }, {}, {}), "NovelCorrection": ApiInfo("POST", "/", { "Action": "NovelCorrection", "Version": "2021-07-22" }, {}, {}), } return api_info
def get_api_info(): api_info = {"RiskResult": ApiInfo("GET", "/", {"Action": "RiskResult", "Version": "2021-04-25"}, {}, {})} return api_info
LIVESAAS_SERVICE_NAME = "livesaas" LIVESAAS_API_VERSION = "2020-06-01" service_info_map = { REGION_CN_NORTH1: ServiceInfo("livesaas.volcengineapi.com", {'Accept': 'application/json'}, Credentials('', '', LIVESAAS_SERVICE_NAME, REGION_CN_NORTH1), 5, 5, "https"), } api_info = { # 直播间管理类接口 "CreateActivityAPI": ApiInfo("POST", "/", { "Action": "CreateActivityAPI", "Version": LIVESAAS_API_VERSION }, {}, {}), "DeleteActivityAPI": ApiInfo("POST", "/", { "Action": "DeleteActivityAPI", "Version": LIVESAAS_API_VERSION }, {}, {}), "ListActivityAPI": ApiInfo("GET", "/", { "Action": "ListActivityAPI", "Version": LIVESAAS_API_VERSION }, {}, {}), # 直播控制类接口 "UpdateActivityStatusAPI": ApiInfo("POST", "/", { "Action": "UpdateActivityStatusAPI",
def get_api_info(): api_info = { "JPCartoonCut": ApiInfo("POST", "/", { "Action": "JPCartoonCut", "Version": "2020-08-26" }, {}, {}), "JPCartoon": ApiInfo("POST", "/", { "Action": "JPCartoon", "Version": "2020-08-26" }, {}, {}), "IDCard": ApiInfo("POST", "/", { "Action": "IDCard", "Version": "2020-08-26" }, {}, {}), "FaceSwap": ApiInfo("POST", "/", { "Action": "FaceSwap", "Version": "2020-08-26" }, {}, {}), "OCRNormal": ApiInfo("POST", "/", { "Action": "OCRNormal", "Version": "2020-08-26" }, {}, {}), "BankCard": ApiInfo("POST", "/", { "Action": "BankCard", "Version": "2020-08-26" }, {}, {}), "HumanSegment": ApiInfo("POST", "/", { "Action": "HumanSegment", "Version": "2020-08-26" }, {}, {}), "GeneralSegment": ApiInfo("POST", "/", { "Action": "GeneralSegment", "Version": "2020-08-26" }, {}, {}), "EnhancePhoto": ApiInfo("POST", "/", { "Action": "EnhancePhoto", "Version": "2020-08-26" }, {}, {}), "ConvertPhoto": ApiInfo("POST", "/", { "Action": "ConvertPhoto", "Version": "2020-08-26" }, {}, {}), "VideoSceneDetect": ApiInfo("POST", "/", { "Action": "VideoSceneDetect", "Version": "2020-08-26" }, {}, {}), "OverResolution": ApiInfo("POST", "/", { "Action": "OverResolution", "Version": "2020-08-26" }, {}, {}), "GoodsSegment": ApiInfo("POST", "/", { "Action": "GoodsSegment", "Version": "2020-08-26" }, {}, {}), "ImageOutpaint": ApiInfo("POST", "/", { "Action": "ImageOutpaint", "Version": "2020-08-26" }, {}, {}), "ImageInpaint": ApiInfo("POST", "/", { "Action": "ImageInpaint", "Version": "2020-08-26" }, {}, {}), "ImageCut": ApiInfo("POST", "/", { "Action": "ImageCut", "Version": "2020-08-26" }, {}, {}), "EntityDetect": ApiInfo("POST", "/", { "Action": "EntityDetect", "Version": "2020-08-26" }, {}, {}), "GoodsDetect": ApiInfo("POST", "/", { "Action": "GoodsDetect", "Version": "2020-08-26" }, {}, {}), "VideoSummarizationSubmitTask": ApiInfo("POST", "/", { "Action": "VideoSummarizationSubmitTask", "Version": "2020-08-26" }, {}, {}), "VideoSummarizationQueryTask": ApiInfo("GET", "/", { "Action": "VideoSummarizationQueryTask", "Version": "2020-08-26" }, {}, {}), "VideoOverResolutionSubmitTask": ApiInfo("POST", "/", { "Action": "VideoOverResolutionSubmitTask", "Version": "2020-08-26" }, {}, {}), "VideoOverResolutionQueryTask": ApiInfo("GET", "/", { "Action": "VideoOverResolutionQueryTask", "Version": "2020-08-26" }, {}, {}), "VideoRetargetingSubmitTask": ApiInfo("POST", "/", { "Action": "VideoRetargetingSubmitTask", "Version": "2020-08-26" }, {}, {}), "VideoRetargetingQueryTask": ApiInfo("GET", "/", { "Action": "VideoRetargetingQueryTask", "Version": "2020-08-26" }, {}, {}), "VideoInpaintSubmitTask": ApiInfo("POST", "/", { "Action": "VideoInpaintSubmitTask", "Version": "2020-08-26" }, {}, {}), "VideoInpaintQueryTask": ApiInfo("GET", "/", { "Action": "VideoInpaintQueryTask", "Version": "2020-08-26" }, {}, {}), "CarPlateDetection": ApiInfo("POST", "/", { "Action": "CarPlateDetection", "Version": "2020-08-26" }, {}, {}), "DistortionFree": ApiInfo("POST", "/", { "Action": "DistortionFree", "Version": "2020-08-26" }, {}, {}), "StretchRecovery": ApiInfo("POST", "/", { "Action": "StretchRecovery", "Version": "2020-08-26" }, {}, {}), "ImageFlow": ApiInfo("POST", "/", { "Action": "ImageFlow", "Version": "2020-08-26" }, {}, {}), "ImageScore": ApiInfo("POST", "/", { "Action": "ImageScore", "Version": "2020-08-26" }, {}, {}), "PoemMaterial": ApiInfo("POST", "/", { "Action": "PoemMaterial", "Version": "2020-08-26" }, {}, {}), "EmoticonEdit": ApiInfo("POST", "/", { "Action": "EmoticonEdit", "Version": "2020-08-26" }, {}, {}), "EyeClose2Open": ApiInfo("POST", "/", { "Action": "EyeClose2Open", "Version": "2020-08-26" }, {}, {}), "CarSegment": ApiInfo("POST", "/", { "Action": "CarSegment", "Version": "2020-08-26" }, {}, {}), "CarDetection": ApiInfo("POST", "/", { "Action": "CarDetection", "Version": "2020-08-26" }, {}, {}), "SkySegment": ApiInfo("POST", "/", { "Action": "SkySegment", "Version": "2020-08-26" }, {}, {}), "ImageSearchImageAdd": ApiInfo("POST", "/", { "Action": "ImageSearchImageAdd", "Version": "2020-08-26" }, {}, {}), "ImageSearchImageDelete": ApiInfo("POST", "/", { "Action": "ImageSearchImageDelete", "Version": "2020-08-26" }, {}, {}), "ImageSearchImageSearch": ApiInfo("POST", "/", { "Action": "ImageSearchImageSearch", "Version": "2020-08-26" }, {}, {}), "ClueLicense": ApiInfo("POST", "/", { "Action": "OcrClueLicense", "Version": "2020-08-26" }, {}, {}), "DrivingLicense": ApiInfo("POST", "/", { "Action": "DrivingLicense", "Version": "2020-08-26" }, {}, {}), "VehicleLicense": ApiInfo("POST", "/", { "Action": "VehicleLicense", "Version": "2020-08-26" }, {}, {}), "TaxiInvoice": ApiInfo("POST", "/", { "Action": "OcrTaxiInvoice", "Version": "2020-08-26" }, {}, {}), "TrainTicket": ApiInfo("POST", "/", { "Action": "OcrTrainTicket", "Version": "2020-08-26" }, {}, {}), "FlightInvoice": ApiInfo("POST", "/", { "Action": "OcrFlightInvoice", "Version": "2020-08-26" }, {}, {}), "VatInvoice": ApiInfo("POST", "/", { "Action": "OcrVatInvoice", "Version": "2020-08-26" }, {}, {}), "QuotaInvoice": ApiInfo("POST", "/", { "Action": "OcrQuotaInvoice", "Version": "2020-08-26" }, {}, {}), "HairStyle": ApiInfo("POST", "/", { "Action": "HairStyle", "Version": "2020-08-26" }, {}, {}), "FacePretty": ApiInfo("POST", "/", { "Action": "FacePretty", "Version": "2020-08-26" }, {}, {}), "ImageAnimation": ApiInfo("POST", "/", { "Action": "ImageAnimation", "Version": "2020-08-26" }, {}, {}), "CoverVideo": ApiInfo("POST", "/", { "Action": "CoverVideo", "Version": "2020-08-26" }, {}, {}), "DollyZoom": ApiInfo("POST", "/", { "Action": "DollyZoom", "Version": "2020-08-26" }, {}, {}), "PotraitEffect": ApiInfo("POST", "/", { "Action": "PotraitEffect", "Version": "2020-08-26" }, {}, {}), "ImageStyleConversion": ApiInfo("POST", "/", { "Action": "ImageStyleConversion", "Version": "2020-08-26" }, {}, {}), "3DGameCartoon": ApiInfo("POST", "/", { "Action": "3DGameCartoon", "Version": "2020-08-26" }, {}, {}), } return api_info
10, 10, "https"), REGION_AP_SINGAPORE1: ServiceInfo( "imagex-ap-singapore-1.volcengineapi.com", {'Accept': 'application/json'}, Credentials('', '', IMAGEX_SERVICE_NAME, REGION_AP_SINGAPORE1), 10, 10, "https"), REGION_US_EAST1: ServiceInfo( "imagex-us-east-1.volcengineapi.com", {'Accept': 'application/json'}, Credentials('', '', IMAGEX_SERVICE_NAME, REGION_US_EAST1), 10, 10, "https"), } api_info = { "ApplyImageUpload": ApiInfo("GET", "/", {"Action": "ApplyImageUpload", "Version": IMAGEX_API_VERSION}, {}, {}), "CommitImageUpload": ApiInfo("POST", "/", {"Action": "CommitImageUpload", "Version": IMAGEX_API_VERSION}, {}, {}), "DeleteImageUploadFiles": ApiInfo("POST", "/", {"Action": "DeleteImageUploadFiles", "Version": IMAGEX_API_VERSION}, {}, {}), "UpdateImageUploadFiles": ApiInfo("POST", "/", {"Action": "UpdateImageUploadFiles", "Version": IMAGEX_API_VERSION}, {}, {}), "PreviewImageUploadFile": ApiInfo("GET", "/", {"Action": "PreviewImageUploadFile", "Version": IMAGEX_API_VERSION}, {}, {}) } class ImageXService(Service): def __init__(self, region=REGION_CN_NORTH1): self.service_info = ImageXService.get_service_info(region) self.api_info = ImageXService.get_api_info()
def get_api_info(): api_info = { "GetPlayInfo": ApiInfo("GET", "/", { "Action": "GetPlayInfo", "Version": "2020-08-01" }, {}, {}), "StartWorkflow": ApiInfo("GET", "/", { "Action": "StartWorkflow", "Version": "2020-08-01" }, {}, {}), "UpdateMediaPublishStatus": ApiInfo("GET", "/", { "Action": "UpdateMediaPublishStatus", "Version": "2020-08-01" }, {}, {}), "UpdateMediaInfo": ApiInfo("GET", "/", { "Action": "UpdateMediaInfo", "Version": "2020-08-01" }, {}, {}), "GetMediaInfos": ApiInfo("GET", "/", { "Action": "GetMediaInfos", "Version": "2020-08-01" }, {}, {}), "GetRecommendedPoster": ApiInfo("GET", "/", { "Action": "GetRecommendedPoster", "Version": "2020-08-01" }, {}, {}), "UploadMediaByUrl": ApiInfo("GET", "/", { "Action": "UploadMediaByUrl", "Version": "2020-08-01" }, {}, {}), "QueryUploadTaskInfo": ApiInfo("GET", "/", { "Action": "QueryUploadTaskInfo", "Version": "2020-08-01" }, {}, {}), "ApplyUploadInfo": ApiInfo("GET", "/", { "Action": "ApplyUploadInfo", "Version": "2020-08-01" }, {}, {}), "CommitUploadInfo": ApiInfo("GET", "/", { "Action": "CommitUploadInfo", "Version": "2020-08-01" }, {}, {}), "DeleteMedia": ApiInfo("GET", "/", { "Action": "DeleteMedia", "Version": "2020-08-01" }, {}, {}), "DeleteTranscodes": ApiInfo("GET", "/", { "Action": "DeleteTranscodes", "Version": "2020-08-01" }, {}, {}), "GetMediaList": ApiInfo("GET", "/", { "Action": "GetMediaList", "Version": "2020-08-01" }, {}, {}), "GetSubtitleInfoList": ApiInfo("GET", "/", { "Action": "GetSubtitleInfoList", "Version": "2020-08-01" }, {}, {}), "UpdateSubtitleStatus": ApiInfo("GET", "/", { "Action": "UpdateSubtitleStatus", "Version": "2020-08-01" }, {}, {}), "UpdateSubtitleInfo": ApiInfo("GET", "/", { "Action": "UpdateSubtitleInfo", "Version": "2020-08-01" }, {}, {}), "GetHlsDecryptionKey": ApiInfo("GET", "/", { "Action": "GetHlsDecryptionKey", "Version": "2020-08-01" }, {}, {}), "GetPrivateDrmPlayAuth": ApiInfo("GET", "/", { "Action": "GetPrivateDrmPlayAuth", "Version": "2020-08-01" }, {}, {}), } return api_info
from volcengine.base.Service import Service from volcengine.ServiceInfo import ServiceInfo SERVICE_VERSION = "2021-03-01" service_info_map = { "cn-north-1": ServiceInfo("cdn.volcengineapi.com", { 'accept': 'application/json', }, Credentials('', '', "CDN", "cn-north-1"), 60, 60, "https"), } api_info = { "SubmitRefreshTask": ApiInfo("POST", "/", { "Action": "SubmitRefreshTask", "Version": SERVICE_VERSION }, {}, {}), "SubmitPreloadTask": ApiInfo("POST", "/", { "Action": "SubmitPreloadTask", "Version": SERVICE_VERSION }, {}, {}), "DescribeContentTasks": ApiInfo("POST", "/", { "Action": "DescribeContentTasks", "Version": SERVICE_VERSION }, {}, {}), "DescribeContentQuota": ApiInfo("POST", "/", { "Action": "DescribeContentQuota", "Version": SERVICE_VERSION