diff --git a/examples/cdn.py b/examples/cdn.py index 95300ee..69cd287 100644 --- a/examples/cdn.py +++ b/examples/cdn.py @@ -1484,11 +1484,61 @@ #res = client.get_domains_by_origin(Origin='10.33.33.33') ''' - GetCnameSuffixs + GetCnameSuffixs 此接口用于获取我们公司在CDN平台已配置的加速域名的CNAME后缀列表。 ''' - res = client.get_cname_suffixs() - print res - - + #res = client.get_cname_suffixs() + #print res + + ''' + SetVideoSeekConfig + 此接口用于设置视频拖拽 + Parameters: + DomainId 是 String 表示域名 + Enable 是 枚举值为:on,off 表示开关 + ''' + #res = client.set_video_seek_config(DomainId="2D09HG3",Enable='off') + #print res + + ''' + GetVideoSeekConfig + 此接口用于获取域名拖拽信息 + Parameters: + DomainId 是 String 表示域名 + ''' + #res = client.get_video_seek_config(DomainId="2D09HG3") + #print res + + ''' + SetHttpHeadersConfig + 此接口用于设置Http响应头 + Parameters: + DomainId 是 String 表示域名 + HeaderKey 是 String 表示设置的http头 只支持 Content-Type,Cache-Control,Content-Disposition,Content-Language,Expires,Access-Control-Allow-Origin,Access-Control-Allow-Methods,Access-Control-Max-Age,Access-Control-Expose-Headers 这9种 + HeaderValue 是 String 表示设置http头vaule值 + ''' + #res = client.set_http_headers_config(DomainId='2D09HG3',HeaderKey='Expires',HeaderValue='20') + #print res + + ''' + DeleteHttpHeadersConfig + 此接口用于删除Http响应头 + Parameters: + DomainId 是 String 表示域名 + HeaderKey 是 String 表示设置的http头 只支持 Content-Type,Cache-Control,Content-Disposition,Content-Language,Expires,Access-Control-Allow-Origin,Access-Control-Allow-Methods,Access-Control-Max-Age,Access-Control-Expose-Headers 这9种 + ''' + #res = client.delete_http_headers_config(DomainId='2D09HG3',HeaderKey='Expires') + #print res + + ''' + GetHttpHeaderList + 此接口用于获取http响应头 + Parameters: + DomainId 是 String 表示域名 + ''' + #res = client.get_http_header_list(DomainId='2D09HG3') + #print res + + + diff --git a/kscore/data/cdn/2016-09-01/service-2.yaml b/kscore/data/cdn/2016-09-01/service-2.yaml index 829b3ee..18358cd 100644 --- a/kscore/data/cdn/2016-09-01/service-2.yaml +++ b/kscore/data/cdn/2016-09-01/service-2.yaml @@ -629,6 +629,51 @@ operations: shape: HttpsGetCertRequest output: shape: HttpsGetCertResponse + + SetVideoSeekConfig: + name: SetVideoSeekConfig + http: + method: POST + requestUri: /2016-09-01/domain/SetVideoSeekConfig + input: + shape: SetVideoSeekConfigRequest + + GetVideoSeekConfig: + name: GetVideoSeekConfig + http: + method: POST + requestUri: /2016-09-01/domain/GetVideoSeekConfig + input: + shape: GetVideoSeekConfigRequest + output: + shape: VideoSeekConfigShape + + SetHttpHeadersConfig: + name: SetHttpHeadersConfig + http: + method: POST + requestUri: /2016-09-01/domain/SetHttpHeadersConfig + input: + shape: SetHttpHeadersConfigRequest + + DeleteHttpHeadersConfig: + name: DeleteHttpHeadersConfig + http: + method: POST + requestUri: /2016-09-01/domain/DeleteHttpHeadersConfig + input: + shape: DeleteHttpHeadersConfigRequest + + GetHttpHeaderList: + name: GetHttpHeaderList + http: + method: POST + requestUri: /2016-09-01/domain/GetHttpHeaderList + input: + shape: GetHttpHeaderListRequest + output: + shape: HttpHeadListResponse + ##################################### shapes: @@ -698,6 +743,64 @@ shapes: type: list member: shape: Domain + + SetVideoSeekConfigRequest: + type: structure + required: + - DomainId + - Enable + members: + DomainId: + shape: String + Enable: + shape: String + + GetVideoSeekConfigRequest: + type: structure + required: + - DomainId + members: + DomainId: + shape: String + + SetHttpHeadersConfigRequest: + type: structure + required: + - DomainId + - HeaderKey + - HeaderValue + members: + DomainId: + shape: String + HeaderKey: + shape: String + HeaderValue: + shape: String + + DeleteHttpHeadersConfigRequest: + type: structure + required: + - DomainId + - HeaderKey + members: + DomainId: + shape: String + HeaderKey: + shape: String + + GetHttpHeaderListRequest: + type: structure + required: + - DomainId + members: + DomainId: + shape: String + + HttpHeadListResponse: + type: structure + members: + HttpHeadList: + shape: HttpHeaderRuleList GetDomainLogsRequest: type: structure