@alicloud/dm20151123 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/client.ts CHANGED
@@ -37,15 +37,18 @@ export class AddIpfilterRequest extends $tea.Model {
37
37
  }
38
38
 
39
39
  export class AddIpfilterResponseBody extends $tea.Model {
40
+ ipFilterId?: string;
40
41
  requestId?: string;
41
42
  static names(): { [key: string]: string } {
42
43
  return {
44
+ ipFilterId: 'IpFilterId',
43
45
  requestId: 'RequestId',
44
46
  };
45
47
  }
46
48
 
47
49
  static types(): { [key: string]: any } {
48
50
  return {
51
+ ipFilterId: 'string',
49
52
  requestId: 'string',
50
53
  };
51
54
  }
@@ -785,6 +788,78 @@ export class DeleteDomainResponse extends $tea.Model {
785
788
  }
786
789
  }
787
790
 
791
+ export class DeleteInvalidAddressRequest extends $tea.Model {
792
+ ownerId?: number;
793
+ resourceOwnerAccount?: string;
794
+ resourceOwnerId?: number;
795
+ toAddress?: string;
796
+ static names(): { [key: string]: string } {
797
+ return {
798
+ ownerId: 'OwnerId',
799
+ resourceOwnerAccount: 'ResourceOwnerAccount',
800
+ resourceOwnerId: 'ResourceOwnerId',
801
+ toAddress: 'ToAddress',
802
+ };
803
+ }
804
+
805
+ static types(): { [key: string]: any } {
806
+ return {
807
+ ownerId: 'number',
808
+ resourceOwnerAccount: 'string',
809
+ resourceOwnerId: 'number',
810
+ toAddress: 'string',
811
+ };
812
+ }
813
+
814
+ constructor(map?: { [key: string]: any }) {
815
+ super(map);
816
+ }
817
+ }
818
+
819
+ export class DeleteInvalidAddressResponseBody extends $tea.Model {
820
+ requestId?: string;
821
+ static names(): { [key: string]: string } {
822
+ return {
823
+ requestId: 'RequestId',
824
+ };
825
+ }
826
+
827
+ static types(): { [key: string]: any } {
828
+ return {
829
+ requestId: 'string',
830
+ };
831
+ }
832
+
833
+ constructor(map?: { [key: string]: any }) {
834
+ super(map);
835
+ }
836
+ }
837
+
838
+ export class DeleteInvalidAddressResponse extends $tea.Model {
839
+ headers: { [key: string]: string };
840
+ statusCode: number;
841
+ body: DeleteInvalidAddressResponseBody;
842
+ static names(): { [key: string]: string } {
843
+ return {
844
+ headers: 'headers',
845
+ statusCode: 'statusCode',
846
+ body: 'body',
847
+ };
848
+ }
849
+
850
+ static types(): { [key: string]: any } {
851
+ return {
852
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
853
+ statusCode: 'number',
854
+ body: DeleteInvalidAddressResponseBody,
855
+ };
856
+ }
857
+
858
+ constructor(map?: { [key: string]: any }) {
859
+ super(map);
860
+ }
861
+ }
862
+
788
863
  export class DeleteIpfilterByEdmIdRequest extends $tea.Model {
789
864
  fromType?: number;
790
865
  id?: string;
@@ -1299,6 +1374,9 @@ export class DescDomainResponseBody extends $tea.Model {
1299
1374
  cnameRecord?: string;
1300
1375
  createTime?: string;
1301
1376
  defaultDomain?: string;
1377
+ dkimAuthStatus?: string;
1378
+ dkimPublicKey?: string;
1379
+ dkimRR?: string;
1302
1380
  dnsMx?: string;
1303
1381
  dnsSpf?: string;
1304
1382
  dnsTxt?: string;
@@ -1312,6 +1390,7 @@ export class DescDomainResponseBody extends $tea.Model {
1312
1390
  requestId?: string;
1313
1391
  spfAuthStatus?: string;
1314
1392
  spfRecord?: string;
1393
+ spfRecordV2?: string;
1315
1394
  tlDomainName?: string;
1316
1395
  tracefRecord?: string;
1317
1396
  static names(): { [key: string]: string } {
@@ -1321,6 +1400,9 @@ export class DescDomainResponseBody extends $tea.Model {
1321
1400
  cnameRecord: 'CnameRecord',
1322
1401
  createTime: 'CreateTime',
1323
1402
  defaultDomain: 'DefaultDomain',
1403
+ dkimAuthStatus: 'DkimAuthStatus',
1404
+ dkimPublicKey: 'DkimPublicKey',
1405
+ dkimRR: 'DkimRR',
1324
1406
  dnsMx: 'DnsMx',
1325
1407
  dnsSpf: 'DnsSpf',
1326
1408
  dnsTxt: 'DnsTxt',
@@ -1334,6 +1416,7 @@ export class DescDomainResponseBody extends $tea.Model {
1334
1416
  requestId: 'RequestId',
1335
1417
  spfAuthStatus: 'SpfAuthStatus',
1336
1418
  spfRecord: 'SpfRecord',
1419
+ spfRecordV2: 'SpfRecordV2',
1337
1420
  tlDomainName: 'TlDomainName',
1338
1421
  tracefRecord: 'TracefRecord',
1339
1422
  };
@@ -1346,6 +1429,9 @@ export class DescDomainResponseBody extends $tea.Model {
1346
1429
  cnameRecord: 'string',
1347
1430
  createTime: 'string',
1348
1431
  defaultDomain: 'string',
1432
+ dkimAuthStatus: 'string',
1433
+ dkimPublicKey: 'string',
1434
+ dkimRR: 'string',
1349
1435
  dnsMx: 'string',
1350
1436
  dnsSpf: 'string',
1351
1437
  dnsTxt: 'string',
@@ -1359,6 +1445,7 @@ export class DescDomainResponseBody extends $tea.Model {
1359
1445
  requestId: 'string',
1360
1446
  spfAuthStatus: 'string',
1361
1447
  spfRecord: 'string',
1448
+ spfRecordV2: 'string',
1362
1449
  tlDomainName: 'string',
1363
1450
  tracefRecord: 'string',
1364
1451
  };
@@ -1855,12 +1942,16 @@ export class ModifyMailAddressResponse extends $tea.Model {
1855
1942
 
1856
1943
  export class ModifyPWByDomainRequest extends $tea.Model {
1857
1944
  domainName?: string;
1945
+ ownerId?: number;
1858
1946
  password?: string;
1859
- resourceOwnerId?: string;
1947
+ resourceOwnerAccount?: string;
1948
+ resourceOwnerId?: number;
1860
1949
  static names(): { [key: string]: string } {
1861
1950
  return {
1862
1951
  domainName: 'DomainName',
1952
+ ownerId: 'OwnerId',
1863
1953
  password: 'Password',
1954
+ resourceOwnerAccount: 'ResourceOwnerAccount',
1864
1955
  resourceOwnerId: 'ResourceOwnerId',
1865
1956
  };
1866
1957
  }
@@ -1868,8 +1959,10 @@ export class ModifyPWByDomainRequest extends $tea.Model {
1868
1959
  static types(): { [key: string]: any } {
1869
1960
  return {
1870
1961
  domainName: 'string',
1962
+ ownerId: 'number',
1871
1963
  password: 'string',
1872
- resourceOwnerId: 'string',
1964
+ resourceOwnerAccount: 'string',
1965
+ resourceOwnerId: 'number',
1873
1966
  };
1874
1967
  }
1875
1968
 
@@ -3197,81 +3290,6 @@ export class UpdateIpProtectionResponse extends $tea.Model {
3197
3290
  }
3198
3291
  }
3199
3292
 
3200
- export class UpdateMailAddressMsgCallBackUrlRequest extends $tea.Model {
3201
- mailFrom?: string;
3202
- notifyUrl?: string;
3203
- ownerId?: number;
3204
- resourceOwnerAccount?: string;
3205
- resourceOwnerId?: number;
3206
- static names(): { [key: string]: string } {
3207
- return {
3208
- mailFrom: 'MailFrom',
3209
- notifyUrl: 'NotifyUrl',
3210
- ownerId: 'OwnerId',
3211
- resourceOwnerAccount: 'ResourceOwnerAccount',
3212
- resourceOwnerId: 'ResourceOwnerId',
3213
- };
3214
- }
3215
-
3216
- static types(): { [key: string]: any } {
3217
- return {
3218
- mailFrom: 'string',
3219
- notifyUrl: 'string',
3220
- ownerId: 'number',
3221
- resourceOwnerAccount: 'string',
3222
- resourceOwnerId: 'number',
3223
- };
3224
- }
3225
-
3226
- constructor(map?: { [key: string]: any }) {
3227
- super(map);
3228
- }
3229
- }
3230
-
3231
- export class UpdateMailAddressMsgCallBackUrlResponseBody extends $tea.Model {
3232
- requestId?: string;
3233
- static names(): { [key: string]: string } {
3234
- return {
3235
- requestId: 'RequestId',
3236
- };
3237
- }
3238
-
3239
- static types(): { [key: string]: any } {
3240
- return {
3241
- requestId: 'string',
3242
- };
3243
- }
3244
-
3245
- constructor(map?: { [key: string]: any }) {
3246
- super(map);
3247
- }
3248
- }
3249
-
3250
- export class UpdateMailAddressMsgCallBackUrlResponse extends $tea.Model {
3251
- headers: { [key: string]: string };
3252
- statusCode: number;
3253
- body: UpdateMailAddressMsgCallBackUrlResponseBody;
3254
- static names(): { [key: string]: string } {
3255
- return {
3256
- headers: 'headers',
3257
- statusCode: 'statusCode',
3258
- body: 'body',
3259
- };
3260
- }
3261
-
3262
- static types(): { [key: string]: any } {
3263
- return {
3264
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3265
- statusCode: 'number',
3266
- body: UpdateMailAddressMsgCallBackUrlResponseBody,
3267
- };
3268
- }
3269
-
3270
- constructor(map?: { [key: string]: any }) {
3271
- super(map);
3272
- }
3273
- }
3274
-
3275
3293
  export class GetIpfilterListResponseBodyDataIpfilters extends $tea.Model {
3276
3294
  createTime?: string;
3277
3295
  id?: string;
@@ -4470,6 +4488,47 @@ export default class Client extends OpenApi {
4470
4488
  return await this.deleteDomainWithOptions(request, runtime);
4471
4489
  }
4472
4490
 
4491
+ async deleteInvalidAddressWithOptions(request: DeleteInvalidAddressRequest, runtime: $Util.RuntimeOptions): Promise<DeleteInvalidAddressResponse> {
4492
+ Util.validateModel(request);
4493
+ let query = { };
4494
+ if (!Util.isUnset(request.ownerId)) {
4495
+ query["OwnerId"] = request.ownerId;
4496
+ }
4497
+
4498
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
4499
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4500
+ }
4501
+
4502
+ if (!Util.isUnset(request.resourceOwnerId)) {
4503
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4504
+ }
4505
+
4506
+ if (!Util.isUnset(request.toAddress)) {
4507
+ query["ToAddress"] = request.toAddress;
4508
+ }
4509
+
4510
+ let req = new $OpenApi.OpenApiRequest({
4511
+ query: OpenApiUtil.query(query),
4512
+ });
4513
+ let params = new $OpenApi.Params({
4514
+ action: "DeleteInvalidAddress",
4515
+ version: "2015-11-23",
4516
+ protocol: "HTTPS",
4517
+ pathname: "/",
4518
+ method: "POST",
4519
+ authType: "AK",
4520
+ style: "RPC",
4521
+ reqBodyType: "formData",
4522
+ bodyType: "json",
4523
+ });
4524
+ return $tea.cast<DeleteInvalidAddressResponse>(await this.callApi(params, req, runtime), new DeleteInvalidAddressResponse({}));
4525
+ }
4526
+
4527
+ async deleteInvalidAddress(request: DeleteInvalidAddressRequest): Promise<DeleteInvalidAddressResponse> {
4528
+ let runtime = new $Util.RuntimeOptions({ });
4529
+ return await this.deleteInvalidAddressWithOptions(request, runtime);
4530
+ }
4531
+
4473
4532
  async deleteIpfilterByEdmIdWithOptions(request: DeleteIpfilterByEdmIdRequest, runtime: $Util.RuntimeOptions): Promise<DeleteIpfilterByEdmIdResponse> {
4474
4533
  Util.validateModel(request);
4475
4534
  let query = { };
@@ -5037,10 +5096,18 @@ export default class Client extends OpenApi {
5037
5096
  query["DomainName"] = request.domainName;
5038
5097
  }
5039
5098
 
5099
+ if (!Util.isUnset(request.ownerId)) {
5100
+ query["OwnerId"] = request.ownerId;
5101
+ }
5102
+
5040
5103
  if (!Util.isUnset(request.password)) {
5041
5104
  query["Password"] = request.password;
5042
5105
  }
5043
5106
 
5107
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
5108
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5109
+ }
5110
+
5044
5111
  if (!Util.isUnset(request.resourceOwnerId)) {
5045
5112
  query["ResourceOwnerId"] = request.resourceOwnerId;
5046
5113
  }
@@ -5845,49 +5912,4 @@ export default class Client extends OpenApi {
5845
5912
  return await this.updateIpProtectionWithOptions(request, runtime);
5846
5913
  }
5847
5914
 
5848
- async updateMailAddressMsgCallBackUrlWithOptions(request: UpdateMailAddressMsgCallBackUrlRequest, runtime: $Util.RuntimeOptions): Promise<UpdateMailAddressMsgCallBackUrlResponse> {
5849
- Util.validateModel(request);
5850
- let query = { };
5851
- if (!Util.isUnset(request.mailFrom)) {
5852
- query["MailFrom"] = request.mailFrom;
5853
- }
5854
-
5855
- if (!Util.isUnset(request.notifyUrl)) {
5856
- query["NotifyUrl"] = request.notifyUrl;
5857
- }
5858
-
5859
- if (!Util.isUnset(request.ownerId)) {
5860
- query["OwnerId"] = request.ownerId;
5861
- }
5862
-
5863
- if (!Util.isUnset(request.resourceOwnerAccount)) {
5864
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5865
- }
5866
-
5867
- if (!Util.isUnset(request.resourceOwnerId)) {
5868
- query["ResourceOwnerId"] = request.resourceOwnerId;
5869
- }
5870
-
5871
- let req = new $OpenApi.OpenApiRequest({
5872
- query: OpenApiUtil.query(query),
5873
- });
5874
- let params = new $OpenApi.Params({
5875
- action: "UpdateMailAddressMsgCallBackUrl",
5876
- version: "2015-11-23",
5877
- protocol: "HTTPS",
5878
- pathname: "/",
5879
- method: "POST",
5880
- authType: "AK",
5881
- style: "RPC",
5882
- reqBodyType: "formData",
5883
- bodyType: "json",
5884
- });
5885
- return $tea.cast<UpdateMailAddressMsgCallBackUrlResponse>(await this.callApi(params, req, runtime), new UpdateMailAddressMsgCallBackUrlResponse({}));
5886
- }
5887
-
5888
- async updateMailAddressMsgCallBackUrl(request: UpdateMailAddressMsgCallBackUrlRequest): Promise<UpdateMailAddressMsgCallBackUrlResponse> {
5889
- let runtime = new $Util.RuntimeOptions({ });
5890
- return await this.updateMailAddressMsgCallBackUrlWithOptions(request, runtime);
5891
- }
5892
-
5893
5915
  }