Skip to content

Commit baacb75

Browse files
author
金山云SDK
authored
Merge pull request KscSDK#54 from KSC-VBU-CDN-DEV/master
一键屏蔽url去掉BlockTime、RefreshOnUnblock请求参数
2 parents 4111c75 + 028b912 commit baacb75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+548
-169
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea*

examples/.kscore.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[Credentials]
2-
ks_access_key_id = AKTPr-ZiuofGTtqq2zsLI0eTKQ
3-
ks_secret_access_key = OApkXZjwEFtrTTAiJh1thYNnCgbXycP3Nk3B2akZO8zmLd8jIOX7IFrpoizCBiMrbw==
2+
ks_access_key_id = AKLTak2xkznHTVSs7a-8klJWug
3+
ks_secret_access_key = OEZTydYQ7suCyRwmv+s5L89g7gpNvB3PxJmPvxw3MXLIe6/N8Hsm8aXKPXD5+VvCKQ==

examples/cdn.py

Lines changed: 348 additions & 156 deletions
Large diffs are not rendered by default.

examples/eip.py

100755100644
File mode changed.

examples/network.py

100755100644
File mode changed.

examples/slb.py

100755100644
File mode changed.

examples/vpc.py

100755100644
File mode changed.

kscore/__init__.pyc

-3 Bytes
Binary file not shown.

kscore/auth.pyc

24.1 KB
Binary file not shown.

kscore/client.pyc

21.2 KB
Binary file not shown.

kscore/compat.pyc

8.8 KB
Binary file not shown.

kscore/config.pyc

5.03 KB
Binary file not shown.

kscore/configloader.pyc

7.1 KB
Binary file not shown.

kscore/credentials.pyc

33 KB
Binary file not shown.

kscore/data/cdn/2016-09-01/service-2.yaml

Lines changed: 197 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
# Version
66
apiVersion: '2016-09-01'
77
endpointPrefix: cdn
8-
globalEndpoint: cdn.api.ksyun.com
8+
globalEndpoint: cdn.cn-shanghai-2.api.ksyun.com
99
jsonVersion: '1.1'
1010
serviceFullName: cdn Service
1111
signatureVersion: v4
@@ -24,6 +24,7 @@ operations:
2424
shape: GetServiceIpRequest
2525
output:
2626
shape: GetServiceIpResponse
27+
2728
GetDomainLogServiceStatus:
2829
name: GetDomainLogServiceStatus
2930
http:
@@ -33,20 +34,23 @@ operations:
3334
shape: GetDomainLogServiceStatusRequest
3435
output:
3536
shape: GetDomainLogServiceStatusResponse
37+
3638
SetDomainLogService:
3739
name: SetDomainLogService
3840
http:
3941
method: GET
4042
requestUri: /2016-09-01/log/SetDomainLogService
4143
input:
4244
shape: SetDomainLogServiceRequest
45+
4346
GetRefreshOrPreloadQuota:
4447
name: GetRefreshOrPreloadQuota
4548
http:
4649
method: GET
4750
requestUri: /2016-09-01/content/GetRefreshOrPreloadQuota
4851
output:
4952
shape: GetRefreshOrPreloadQuotaResponse
53+
5054
PreloadCaches:
5155
name: PreloadCaches
5256
protocol: json
@@ -55,6 +59,7 @@ operations:
5559
requestUri: /2016-09-01/content/PreloadCaches
5660
output:
5761
shape: PreloadCachesResponse
62+
5863
RefreshCaches:
5964
name: RefreshCaches
6065
protocol: json
@@ -63,6 +68,7 @@ operations:
6368
requestUri: /2016-09-01/content/RefreshCaches
6469
output:
6570
shape: RefreshCachesResponse
71+
6672
GetRefreshOrPreloadTask:
6773
name: GetRefreshOrPreloadTask
6874
protocol: json
@@ -71,6 +77,7 @@ operations:
7177
requestUri: /2016-09-01/content/GetRefreshOrPreloadTask
7278
output:
7379
shape: GetRefreshOrPreloadTaskResponse
80+
7481
GetUvData:
7582
name: GetUvData
7683
http:
@@ -90,6 +97,7 @@ operations:
9097
shape: GetTopIpDataRequest
9198
output:
9299
shape: GetTopIpDataResponse
100+
93101
GetTopReferData:
94102
name: GetTopReferData
95103
http:
@@ -99,6 +107,7 @@ operations:
99107
shape: GetTopReferDataRequest
100108
output:
101109
shape: GetTopReferDataResponse
110+
102111
GetSrcHttpCodeDetailedData:
103112
name: GetSrcHttpCodeDetailedData
104113
http:
@@ -108,6 +117,7 @@ operations:
108117
shape: GetSrcHttpCodeDetailedRequest
109118
output:
110119
shape: GetSrcHttpCodeDetailedResponse
120+
111121
GetProvinceAndIspPvData:
112122
name: GetProvinceAndIspPvData
113123
http:
@@ -117,6 +127,7 @@ operations:
117127
shape: GetProvinceAndIspPvRequest
118128
output:
119129
shape: GetProvinceAndIspPvResponse
130+
120131
GetProvinceAndIspHttpCodeData:
121132
name: GetProvinceAndIspHttpCodeData
122133
http:
@@ -126,6 +137,7 @@ operations:
126137
shape: GetProvinceAndIspHttpCodeRequest
127138
output:
128139
shape: GetProvinceAndIspHttpCodeResponse
140+
129141
GetProvinceAndIspHttpCodeDetailedData:
130142
name: GetProvinceAndIspHttpCodeDetailedData
131143
http:
@@ -135,6 +147,7 @@ operations:
135147
shape: GetProvinceAndIspHttpCodeDetailedRequest
136148
output:
137149
shape: GetProvinceAndIspHttpCodeDetailedResponse
150+
138151
GetProvinceAndIspHitRateDetailedData:
139152
name: GetProvinceAndIspHitRateDetailedData
140153
http:
@@ -144,6 +157,7 @@ operations:
144157
shape: GetProvinceAndIspHitRateDetailedRequest
145158
output:
146159
shape: GetProvinceAndIspHitRateDetailedResponse
160+
147161
GetSrcHttpCodeData:
148162
name: GetSrcHttpCodeData
149163
http:
@@ -154,7 +168,6 @@ operations:
154168
output:
155169
shape: GetSrcHttpCodeDataResponse
156170

157-
158171
GetDomainLogs:
159172
name: GetDomainLogs
160173
http:
@@ -528,6 +541,65 @@ operations:
528541
output:
529542
shape: GetPeakBandwidthDataResponse
530543

544+
BlockDomainUrl:
545+
name: BlockDomainUrl
546+
protocol: json
547+
http:
548+
method: POST
549+
requestUri: /2016-09-01/content/BlockDomainUrl
550+
551+
GetBlockUrlTask:
552+
name: GetBlockUrlTask
553+
protocol: json
554+
http:
555+
method: POST
556+
requestUri: /2016-09-01/content/GetBlockUrlTask
557+
output:
558+
shape: GetBlockUrlTaskResponse
559+
560+
GetBlockUrlQuota:
561+
name: GetBlockUrlQuota
562+
http:
563+
method: GET
564+
requestUri: /2016-09-01/content/GetBlockUrlQuota
565+
output:
566+
shape: GetBlockUrlQuotaResponse
567+
568+
569+
ConfigCertificate:
570+
name: ConfigCertificate
571+
http:
572+
method: POST
573+
requestUri: /2016-09-01/cert/ConfigCertificate
574+
input:
575+
shape: HttpsConfCertRequest
576+
577+
SetCertificate:
578+
name: SetCertificate
579+
http:
580+
method: POST
581+
requestUri: /2016-09-01/cert/SetCertificate
582+
input:
583+
shape: HttpsSetCertRequest
584+
585+
RemoveCertificates:
586+
name: HttpsRemoveCertRequest
587+
http:
588+
method: POST
589+
requestUri: /2016-09-01/cert/RemoveCertificates
590+
input:
591+
shape: HttpsRemoveCertRequest
592+
593+
GetCertificates:
594+
name: GetCertificates
595+
http:
596+
method: POST
597+
requestUri: /2016-09-01/cert/GetCertificates
598+
input:
599+
shape: HttpsGetCertRequest
600+
output:
601+
shape: HttpsGetCertResponse
602+
531603
#####################################
532604
shapes:
533605

@@ -705,7 +777,7 @@ shapes:
705777
AddCdnDomainResponse:
706778
type: structure
707779
members:
708-
DomainID:
780+
DomainId:
709781
shape: String
710782
DomainStatus:
711783
shape: String
@@ -1347,10 +1419,12 @@ shapes:
13471419
shape: String
13481420
CreateTime:
13491421
shape: Double
1422+
13501423
ProReTaskUrlDataList:
13511424
type: list
13521425
member:
13531426
shape: ProReTaskUrlData
1427+
13541428
GetRefreshOrPreloadTaskResponse:
13551429
type: structure
13561430
members:
@@ -3099,12 +3173,6 @@ shapes:
30993173
Datas:
31003174
shape: TopOnlineUserDataByStreamList
31013175

3102-
3103-
3104-
3105-
3106-
3107-
31083176
GetPlayTimeDataByStreamRequest:
31093177
type: structure
31103178
required:
@@ -3400,7 +3468,6 @@ shapes:
34003468
Regions:
34013469
shape: String
34023470

3403-
34043471
GetPeakBandwidthDataResponse:
34053472
type: structure
34063473
members:
@@ -3417,4 +3484,123 @@ shapes:
34173484
PeakBw:
34183485
shape: Long
34193486
RealTime:
3420-
shape: String
3487+
shape: String
3488+
3489+
GetBlockUrlTaskResponse:
3490+
type: structure
3491+
members:
3492+
PageSize:
3493+
shape: Long
3494+
PageNumber:
3495+
shape: Long
3496+
TotalCount:
3497+
shape: Long
3498+
Datas:
3499+
shape: BlockUrlDataList
3500+
3501+
BlockUrlDataList:
3502+
type: list
3503+
member:
3504+
shape: BlockUrlData
3505+
3506+
BlockUrlData:
3507+
type: structure
3508+
members:
3509+
Url:
3510+
shape: String
3511+
Progress:
3512+
shape: Double
3513+
BlockUrlStatus:
3514+
shape: String
3515+
BlockTime:
3516+
shape: String
3517+
ExpireTime:
3518+
shape: String
3519+
Submitter:
3520+
shape: String
3521+
3522+
GetBlockUrlQuotaResponse:
3523+
type: structure
3524+
members:
3525+
BlockUrlQuota:
3526+
shape: Long
3527+
BlockUrlSurplus:
3528+
shape: Long
3529+
3530+
#### https ####
3531+
HttpsConfCertRequest:
3532+
type: structure
3533+
members:
3534+
Enable:
3535+
shape: String
3536+
DomainIds:
3537+
shape: String
3538+
CertificateId:
3539+
shape: String
3540+
CertificateName:
3541+
shape: String
3542+
ServerCertificate:
3543+
shape: String
3544+
PrivateKey:
3545+
shape: String
3546+
3547+
HttpsSetCertRequest:
3548+
type: structure
3549+
members:
3550+
CertificateId:
3551+
shape: String
3552+
CertificateName:
3553+
shape: String
3554+
ServerCertificate:
3555+
shape: String
3556+
PrivateKey:
3557+
shape: String
3558+
3559+
HttpsRemoveCertRequest:
3560+
type: structure
3561+
members:
3562+
CertificateIds:
3563+
shape: String
3564+
3565+
HttpsGetCertRequest:
3566+
type: structure
3567+
members:
3568+
PageSize:
3569+
shape: Long
3570+
PageNum:
3571+
shape: Long
3572+
3573+
HttpsGetCertResponse:
3574+
type: structure
3575+
members:
3576+
TotalCount:
3577+
shape: Long
3578+
Certificates:
3579+
shape: Certificates
3580+
3581+
Certificates:
3582+
type: list
3583+
member:
3584+
shape: HttpsCertificate
3585+
3586+
HttpsCertificate:
3587+
type: structure
3588+
members:
3589+
CertificateName:
3590+
shape: String
3591+
CertificateId:
3592+
shape: String
3593+
Enable:
3594+
shape: String
3595+
IssueTime:
3596+
shape: String
3597+
ExpirationTime:
3598+
shape: String
3599+
CertificateContent:
3600+
shape: String
3601+
CertificateType:
3602+
shape: String
3603+
IssueDomain:
3604+
shape: String
3605+
ConfigDomainNames:
3606+
shape: String

kscore/docs/__init__.pyc

1.17 KB
Binary file not shown.

kscore/docs/bcdoc/__init__.pyc

177 Bytes
Binary file not shown.

kscore/docs/bcdoc/docstringparser.pyc

9.35 KB
Binary file not shown.

kscore/docs/bcdoc/restdoc.pyc

9.19 KB
Binary file not shown.

kscore/docs/bcdoc/style.pyc

17 KB
Binary file not shown.

kscore/docs/client.pyc

4.38 KB
Binary file not shown.

kscore/docs/docstring.pyc

4.36 KB
Binary file not shown.

kscore/docs/example.pyc

7.11 KB
Binary file not shown.

kscore/docs/method.pyc

7.24 KB
Binary file not shown.

kscore/docs/paginator.pyc

4.85 KB
Binary file not shown.

kscore/docs/params.pyc

7.51 KB
Binary file not shown.

kscore/docs/service.pyc

3.71 KB
Binary file not shown.

kscore/docs/shape.pyc

3.4 KB
Binary file not shown.

kscore/docs/sharedexample.pyc

8.05 KB
Binary file not shown.

kscore/docs/utils.pyc

6.59 KB
Binary file not shown.

kscore/docs/waiter.pyc

3.27 KB
Binary file not shown.

kscore/endpoint.pyc

8.9 KB
Binary file not shown.

kscore/exceptions.pyc

17.4 KB
Binary file not shown.

kscore/handlers.pyc

28.4 KB
Binary file not shown.

kscore/hooks.pyc

16.1 KB
Binary file not shown.

kscore/ksrequest.pyc

13.6 KB
Binary file not shown.

kscore/loaders.pyc

14.5 KB
Binary file not shown.

kscore/model.pyc

24.7 KB
Binary file not shown.

kscore/paginate.pyc

15.5 KB
Binary file not shown.

kscore/parsers.pyc

25.7 KB
Binary file not shown.

kscore/regions.pyc

7.17 KB
Binary file not shown.

kscore/response.pyc

3.39 KB
Binary file not shown.

kscore/retryhandler.pyc

12.5 KB
Binary file not shown.

kscore/serialize.pyc

25 KB
Binary file not shown.

kscore/session.pyc

32.8 KB
Binary file not shown.

kscore/signers.pyc

19 KB
Binary file not shown.

kscore/translate.pyc

14.3 KB
Binary file not shown.

kscore/utils.pyc

24.8 KB
Binary file not shown.

kscore/validate.pyc

11 KB
Binary file not shown.

kscore/vendored/__init__.pyc

142 Bytes
Binary file not shown.

kscore/vendored/requests/__init__.pyc

2.49 KB
Binary file not shown.

kscore/vendored/requests/adapters.pyc

15.6 KB
Binary file not shown.

kscore/vendored/requests/api.pyc

6.12 KB
Binary file not shown.

kscore/vendored/requests/auth.pyc

7.57 KB
Binary file not shown.

kscore/vendored/requests/certs.pyc

893 Bytes
Binary file not shown.

kscore/vendored/requests/compat.pyc

1.66 KB
Binary file not shown.

kscore/vendored/requests/cookies.pyc

20.7 KB
Binary file not shown.
5.36 KB
Binary file not shown.

kscore/vendored/requests/hooks.pyc

1.06 KB
Binary file not shown.

kscore/vendored/requests/models.pyc

25.3 KB
Binary file not shown.
276 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

kscore/vendored/requests/sessions.pyc

19.6 KB
Binary file not shown.
4.36 KB
Binary file not shown.
5.22 KB
Binary file not shown.

kscore/vendored/requests/utils.pyc

20.4 KB
Binary file not shown.

kscore/vendored/six.pyc

27.5 KB
Binary file not shown.

kscore/waiter.pyc

10 KB
Binary file not shown.

0 commit comments

Comments
 (0)