Skip to content

Commit 6e5c418

Browse files
committed
Update API PushObjectCache: add request parameters ConsistencyHash.
1 parent c11e829 commit 6e5c418

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

cdn-20180510/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/cdn20180510",
3-
"version": "6.0.0",
3+
"version": "7.0.0",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

cdn-20180510/src/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9415,6 +9415,10 @@ export default class Client extends OpenApi {
94159415
query["Area"] = request.area;
94169416
}
94179417

9418+
if (!$dara.isNull(request.consistencyHash)) {
9419+
query["ConsistencyHash"] = request.consistencyHash;
9420+
}
9421+
94189422
if (!$dara.isNull(request.l2Preload)) {
94199423
query["L2Preload"] = request.l2Preload;
94209424
}
@@ -9818,10 +9822,6 @@ export default class Client extends OpenApi {
98189822
query["DomainName"] = request.domainName;
98199823
}
98209824

9821-
if (!$dara.isNull(request.env)) {
9822-
query["Env"] = request.env;
9823-
}
9824-
98259825
if (!$dara.isNull(request.ownerId)) {
98269826
query["OwnerId"] = request.ownerId;
98279827
}

cdn-20180510/src/models/PushObjectCacheRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class PushObjectCacheRequest extends $dara.Model {
2020
* domestic
2121
*/
2222
area?: string;
23+
consistencyHash?: boolean;
2324
/**
2425
* @remarks
2526
* Specifies whether to prefetch content to L2 points of presence (POPs). Valid values:
@@ -71,6 +72,7 @@ export class PushObjectCacheRequest extends $dara.Model {
7172
static names(): { [key: string]: string } {
7273
return {
7374
area: 'Area',
75+
consistencyHash: 'ConsistencyHash',
7476
l2Preload: 'L2Preload',
7577
objectPath: 'ObjectPath',
7678
ownerId: 'OwnerId',
@@ -83,6 +85,7 @@ export class PushObjectCacheRequest extends $dara.Model {
8385
static types(): { [key: string]: any } {
8486
return {
8587
area: 'string',
88+
consistencyHash: 'boolean',
8689
l2Preload: 'boolean',
8790
objectPath: 'string',
8891
ownerId: 'number',

cdn-20180510/src/models/SetCdnDomainSslcertificateRequest.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@ export class SetCdnDomainSSLCertificateRequest extends $dara.Model {
4848
* example.com
4949
*/
5050
domainName?: string;
51-
/**
52-
* @remarks
53-
* Specifies whether the certificate is issued in canary releases. If you set this parameter to **staging**, the certificate is issued in canary releases. If you do not specify this parameter or set this parameter to other values, the certificate is officially issued.
54-
*
55-
* @example
56-
* staging
57-
*/
58-
env?: string;
5951
ownerId?: number;
6052
/**
6153
* @remarks
@@ -94,7 +86,6 @@ export class SetCdnDomainSSLCertificateRequest extends $dara.Model {
9486
certRegion: 'CertRegion',
9587
certType: 'CertType',
9688
domainName: 'DomainName',
97-
env: 'Env',
9889
ownerId: 'OwnerId',
9990
SSLPri: 'SSLPri',
10091
SSLProtocol: 'SSLProtocol',
@@ -110,7 +101,6 @@ export class SetCdnDomainSSLCertificateRequest extends $dara.Model {
110101
certRegion: 'string',
111102
certType: 'string',
112103
domainName: 'string',
113-
env: 'string',
114104
ownerId: 'number',
115105
SSLPri: 'string',
116106
SSLProtocol: 'string',

0 commit comments

Comments
 (0)