oci-email 2.121.0 → 2.122.0

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.
Files changed (124) hide show
  1. package/lib/client.d.ts +99 -0
  2. package/lib/client.js +740 -15
  3. package/lib/client.js.map +1 -1
  4. package/lib/email-waiter.d.ts +8 -0
  5. package/lib/email-waiter.js +12 -0
  6. package/lib/email-waiter.js.map +1 -1
  7. package/lib/model/add-email-outbound-ip-details.d.ts +33 -0
  8. package/lib/model/add-email-outbound-ip-details.js +34 -0
  9. package/lib/model/add-email-outbound-ip-details.js.map +1 -0
  10. package/lib/model/change-email-ip-pool-compartment-details.d.ts +31 -0
  11. package/lib/model/change-email-ip-pool-compartment-details.js +34 -0
  12. package/lib/model/change-email-ip-pool-compartment-details.js.map +1 -0
  13. package/lib/model/create-email-ip-pool-details.d.ts +68 -0
  14. package/lib/model/create-email-ip-pool-details.js +34 -0
  15. package/lib/model/create-email-ip-pool-details.js.map +1 -0
  16. package/lib/model/create-sender-details.d.ts +4 -0
  17. package/lib/model/create-sender-details.js.map +1 -1
  18. package/lib/model/email-ip-pool-collection.d.ts +31 -0
  19. package/lib/model/email-ip-pool-collection.js +66 -0
  20. package/lib/model/email-ip-pool-collection.js.map +1 -0
  21. package/lib/model/email-ip-pool-summary.d.ts +105 -0
  22. package/lib/model/email-ip-pool-summary.js +66 -0
  23. package/lib/model/email-ip-pool-summary.js.map +1 -0
  24. package/lib/model/email-ip-pool.d.ts +128 -0
  25. package/lib/model/email-ip-pool.js +91 -0
  26. package/lib/model/email-ip-pool.js.map +1 -0
  27. package/lib/model/email-outbound-ip-collection.d.ts +31 -0
  28. package/lib/model/email-outbound-ip-collection.js +66 -0
  29. package/lib/model/email-outbound-ip-collection.js.map +1 -0
  30. package/lib/model/email-outbound-ip-summary.d.ts +64 -0
  31. package/lib/model/email-outbound-ip-summary.js +56 -0
  32. package/lib/model/email-outbound-ip-summary.js.map +1 -0
  33. package/lib/model/index.d.ts +20 -0
  34. package/lib/model/index.js +22 -1
  35. package/lib/model/index.js.map +1 -1
  36. package/lib/model/operation-type.d.ts +4 -0
  37. package/lib/model/operation-type.js +4 -0
  38. package/lib/model/operation-type.js.map +1 -1
  39. package/lib/model/remove-email-outbound-ip-details.d.ts +34 -0
  40. package/lib/model/remove-email-outbound-ip-details.js +34 -0
  41. package/lib/model/remove-email-outbound-ip-details.js.map +1 -0
  42. package/lib/model/sender-summary.d.ts +4 -0
  43. package/lib/model/sender-summary.js.map +1 -1
  44. package/lib/model/sender.d.ts +5 -0
  45. package/lib/model/sender.js +1 -0
  46. package/lib/model/sender.js.map +1 -1
  47. package/lib/model/update-email-ip-pool-details.d.ts +52 -0
  48. package/lib/model/update-email-ip-pool-details.js +34 -0
  49. package/lib/model/update-email-ip-pool-details.js.map +1 -0
  50. package/lib/model/update-sender-details.d.ts +4 -0
  51. package/lib/model/update-sender-details.js.map +1 -1
  52. package/lib/request/add-email-ip-pool-lock-request.d.ts +38 -0
  53. package/lib/request/add-email-ip-pool-lock-request.js +15 -0
  54. package/lib/request/add-email-ip-pool-lock-request.js.map +1 -0
  55. package/lib/request/add-email-outbound-ip-request.d.ts +47 -0
  56. package/lib/request/add-email-outbound-ip-request.js +15 -0
  57. package/lib/request/add-email-outbound-ip-request.js.map +1 -0
  58. package/lib/request/change-email-ip-pool-compartment-request.d.ts +51 -0
  59. package/lib/request/change-email-ip-pool-compartment-request.js +15 -0
  60. package/lib/request/change-email-ip-pool-compartment-request.js.map +1 -0
  61. package/lib/request/create-email-ip-pool-request.d.ts +36 -0
  62. package/lib/request/create-email-ip-pool-request.js +15 -0
  63. package/lib/request/create-email-ip-pool-request.js.map +1 -0
  64. package/lib/request/delete-email-ip-pool-request.d.ts +37 -0
  65. package/lib/request/delete-email-ip-pool-request.js +15 -0
  66. package/lib/request/delete-email-ip-pool-request.js.map +1 -0
  67. package/lib/request/get-email-ip-pool-request.d.ts +26 -0
  68. package/lib/request/get-email-ip-pool-request.js +15 -0
  69. package/lib/request/get-email-ip-pool-request.js.map +1 -0
  70. package/lib/request/index.d.ts +22 -0
  71. package/lib/request/index.js +5 -1
  72. package/lib/request/index.js.map +1 -1
  73. package/lib/request/list-email-ip-pools-request.d.ts +76 -0
  74. package/lib/request/list-email-ip-pools-request.js +24 -0
  75. package/lib/request/list-email-ip-pools-request.js.map +1 -0
  76. package/lib/request/list-email-outbound-ips-request.d.ts +72 -0
  77. package/lib/request/list-email-outbound-ips-request.js +23 -0
  78. package/lib/request/list-email-outbound-ips-request.js.map +1 -0
  79. package/lib/request/list-senders-request.d.ts +4 -0
  80. package/lib/request/list-senders-request.js.map +1 -1
  81. package/lib/request/remove-email-ip-pool-lock-request.d.ts +38 -0
  82. package/lib/request/remove-email-ip-pool-lock-request.js +15 -0
  83. package/lib/request/remove-email-ip-pool-lock-request.js.map +1 -0
  84. package/lib/request/remove-email-outbound-ip-request.d.ts +47 -0
  85. package/lib/request/remove-email-outbound-ip-request.js +15 -0
  86. package/lib/request/remove-email-outbound-ip-request.js.map +1 -0
  87. package/lib/request/update-email-ip-pool-request.d.ts +42 -0
  88. package/lib/request/update-email-ip-pool-request.js +15 -0
  89. package/lib/request/update-email-ip-pool-request.js.map +1 -0
  90. package/lib/response/add-email-ip-pool-lock-response.d.ts +30 -0
  91. package/lib/response/add-email-ip-pool-lock-response.js +15 -0
  92. package/lib/response/add-email-ip-pool-lock-response.js.map +1 -0
  93. package/lib/response/add-email-outbound-ip-response.d.ts +25 -0
  94. package/lib/response/add-email-outbound-ip-response.js +15 -0
  95. package/lib/response/add-email-outbound-ip-response.js.map +1 -0
  96. package/lib/response/change-email-ip-pool-compartment-response.d.ts +25 -0
  97. package/lib/response/change-email-ip-pool-compartment-response.js +15 -0
  98. package/lib/response/change-email-ip-pool-compartment-response.js.map +1 -0
  99. package/lib/response/create-email-ip-pool-response.d.ts +45 -0
  100. package/lib/response/create-email-ip-pool-response.js +15 -0
  101. package/lib/response/create-email-ip-pool-response.js.map +1 -0
  102. package/lib/response/delete-email-ip-pool-response.d.ts +25 -0
  103. package/lib/response/delete-email-ip-pool-response.js +15 -0
  104. package/lib/response/delete-email-ip-pool-response.js.map +1 -0
  105. package/lib/response/get-email-ip-pool-response.d.ts +30 -0
  106. package/lib/response/get-email-ip-pool-response.js +15 -0
  107. package/lib/response/get-email-ip-pool-response.js.map +1 -0
  108. package/lib/response/index.d.ts +22 -0
  109. package/lib/response/list-email-ip-pools-response.d.ts +31 -0
  110. package/lib/response/list-email-ip-pools-response.js +15 -0
  111. package/lib/response/list-email-ip-pools-response.js.map +1 -0
  112. package/lib/response/list-email-outbound-ips-response.d.ts +31 -0
  113. package/lib/response/list-email-outbound-ips-response.js +15 -0
  114. package/lib/response/list-email-outbound-ips-response.js.map +1 -0
  115. package/lib/response/remove-email-ip-pool-lock-response.d.ts +30 -0
  116. package/lib/response/remove-email-ip-pool-lock-response.js +15 -0
  117. package/lib/response/remove-email-ip-pool-lock-response.js.map +1 -0
  118. package/lib/response/remove-email-outbound-ip-response.d.ts +25 -0
  119. package/lib/response/remove-email-outbound-ip-response.js +15 -0
  120. package/lib/response/remove-email-outbound-ip-response.js.map +1 -0
  121. package/lib/response/update-email-ip-pool-response.d.ts +25 -0
  122. package/lib/response/update-email-ip-pool-response.js +15 -0
  123. package/lib/response/update-email-ip-pool-response.js.map +1 -0
  124. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -278,6 +278,133 @@ class EmailClient {
278
278
  }
279
279
  });
280
280
  }
281
+ /**
282
+ * Adds a lock to a resource.
283
+ * This operation does not retry by default if the user has not defined a retry configuration.
284
+ * @param AddEmailIpPoolLockRequest
285
+ * @return AddEmailIpPoolLockResponse
286
+ * @throws OciError when an error occurs
287
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/AddEmailIpPoolLock.ts.html |here} to see how to use AddEmailIpPoolLock API.
288
+ */
289
+ addEmailIpPoolLock(addEmailIpPoolLockRequest) {
290
+ return __awaiter(this, void 0, void 0, function* () {
291
+ if (this.logger)
292
+ this.logger.debug("Calling operation EmailClient#addEmailIpPoolLock.");
293
+ const operationName = "addEmailIpPoolLock";
294
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/AddEmailIpPoolLock";
295
+ const pathParams = {
296
+ "{emailIpPoolId}": addEmailIpPoolLockRequest.emailIpPoolId
297
+ };
298
+ const queryParams = {};
299
+ let headerParams = {
300
+ "Content-Type": common.Constants.APPLICATION_JSON,
301
+ "opc-request-id": addEmailIpPoolLockRequest.opcRequestId,
302
+ "if-match": addEmailIpPoolLockRequest.ifMatch
303
+ };
304
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
305
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addEmailIpPoolLockRequest.retryConfiguration, specRetryConfiguration);
306
+ if (this.logger)
307
+ retrier.logger = this.logger;
308
+ const request = yield oci_common_2.composeRequest({
309
+ baseEndpoint: this._endpoint,
310
+ defaultHeaders: this._defaultHeaders,
311
+ path: "/emailIpPools/{emailIpPoolId}/actions/addLock",
312
+ method: "POST",
313
+ bodyContent: common.ObjectSerializer.serialize(addEmailIpPoolLockRequest.addLockDetails, "AddLockDetails", model.AddLockDetails.getJsonObj),
314
+ pathParams: pathParams,
315
+ headerParams: headerParams,
316
+ queryParams: queryParams
317
+ });
318
+ try {
319
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
320
+ const sdkResponse = oci_common_2.composeResponse({
321
+ responseObject: {},
322
+ body: yield response.json(),
323
+ bodyKey: "emailIpPool",
324
+ bodyModel: model.EmailIpPool,
325
+ type: "model.EmailIpPool",
326
+ responseHeaders: [
327
+ {
328
+ value: response.headers.get("opc-request-id"),
329
+ key: "opcRequestId",
330
+ dataType: "string"
331
+ },
332
+ {
333
+ value: response.headers.get("etag"),
334
+ key: "etag",
335
+ dataType: "string"
336
+ }
337
+ ]
338
+ });
339
+ return sdkResponse;
340
+ }
341
+ catch (err) {
342
+ throw err;
343
+ }
344
+ });
345
+ }
346
+ /**
347
+ * Add OutboundIps to EmailIpPool.
348
+ * This operation does not retry by default if the user has not defined a retry configuration.
349
+ * @param AddEmailOutboundIpRequest
350
+ * @return AddEmailOutboundIpResponse
351
+ * @throws OciError when an error occurs
352
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/AddEmailOutboundIp.ts.html |here} to see how to use AddEmailOutboundIp API.
353
+ */
354
+ addEmailOutboundIp(addEmailOutboundIpRequest) {
355
+ return __awaiter(this, void 0, void 0, function* () {
356
+ if (this.logger)
357
+ this.logger.debug("Calling operation EmailClient#addEmailOutboundIp.");
358
+ const operationName = "addEmailOutboundIp";
359
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/AddEmailOutboundIp";
360
+ const pathParams = {
361
+ "{emailIpPoolId}": addEmailOutboundIpRequest.emailIpPoolId
362
+ };
363
+ const queryParams = {};
364
+ let headerParams = {
365
+ "Content-Type": common.Constants.APPLICATION_JSON,
366
+ "opc-request-id": addEmailOutboundIpRequest.opcRequestId,
367
+ "if-match": addEmailOutboundIpRequest.ifMatch,
368
+ "opc-retry-token": addEmailOutboundIpRequest.opcRetryToken
369
+ };
370
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
371
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addEmailOutboundIpRequest.retryConfiguration, specRetryConfiguration);
372
+ if (this.logger)
373
+ retrier.logger = this.logger;
374
+ const request = yield oci_common_2.composeRequest({
375
+ baseEndpoint: this._endpoint,
376
+ defaultHeaders: this._defaultHeaders,
377
+ path: "/emailIpPools/{emailIpPoolId}/actions/addEmailOutboundIp",
378
+ method: "POST",
379
+ bodyContent: common.ObjectSerializer.serialize(addEmailOutboundIpRequest.addEmailOutboundIpDetails, "AddEmailOutboundIpDetails", model.AddEmailOutboundIpDetails.getJsonObj),
380
+ pathParams: pathParams,
381
+ headerParams: headerParams,
382
+ queryParams: queryParams
383
+ });
384
+ try {
385
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
386
+ const sdkResponse = oci_common_2.composeResponse({
387
+ responseObject: {},
388
+ responseHeaders: [
389
+ {
390
+ value: response.headers.get("opc-request-id"),
391
+ key: "opcRequestId",
392
+ dataType: "string"
393
+ },
394
+ {
395
+ value: response.headers.get("opc-work-request-id"),
396
+ key: "opcWorkRequestId",
397
+ dataType: "string"
398
+ }
399
+ ]
400
+ });
401
+ return sdkResponse;
402
+ }
403
+ catch (err) {
404
+ throw err;
405
+ }
406
+ });
407
+ }
281
408
  /**
282
409
  * Adds a lock to a resource.
283
410
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -478,6 +605,70 @@ class EmailClient {
478
605
  }
479
606
  });
480
607
  }
608
+ /**
609
+ * Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
610
+ * This operation does not retry by default if the user has not defined a retry configuration.
611
+ * @param ChangeEmailIpPoolCompartmentRequest
612
+ * @return ChangeEmailIpPoolCompartmentResponse
613
+ * @throws OciError when an error occurs
614
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/ChangeEmailIpPoolCompartment.ts.html |here} to see how to use ChangeEmailIpPoolCompartment API.
615
+ */
616
+ changeEmailIpPoolCompartment(changeEmailIpPoolCompartmentRequest) {
617
+ return __awaiter(this, void 0, void 0, function* () {
618
+ if (this.logger)
619
+ this.logger.debug("Calling operation EmailClient#changeEmailIpPoolCompartment.");
620
+ const operationName = "changeEmailIpPoolCompartment";
621
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/ChangeEmailIpPoolCompartment";
622
+ const pathParams = {
623
+ "{emailIpPoolId}": changeEmailIpPoolCompartmentRequest.emailIpPoolId
624
+ };
625
+ const queryParams = {
626
+ "isLockOverride": changeEmailIpPoolCompartmentRequest.isLockOverride
627
+ };
628
+ let headerParams = {
629
+ "Content-Type": common.Constants.APPLICATION_JSON,
630
+ "if-match": changeEmailIpPoolCompartmentRequest.ifMatch,
631
+ "opc-request-id": changeEmailIpPoolCompartmentRequest.opcRequestId,
632
+ "opc-retry-token": changeEmailIpPoolCompartmentRequest.opcRetryToken
633
+ };
634
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
635
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeEmailIpPoolCompartmentRequest.retryConfiguration, specRetryConfiguration);
636
+ if (this.logger)
637
+ retrier.logger = this.logger;
638
+ const request = yield oci_common_2.composeRequest({
639
+ baseEndpoint: this._endpoint,
640
+ defaultHeaders: this._defaultHeaders,
641
+ path: "/emailIpPools/{emailIpPoolId}/actions/changeCompartment",
642
+ method: "POST",
643
+ bodyContent: common.ObjectSerializer.serialize(changeEmailIpPoolCompartmentRequest.changeEmailIpPoolCompartmentDetails, "ChangeEmailIpPoolCompartmentDetails", model.ChangeEmailIpPoolCompartmentDetails.getJsonObj),
644
+ pathParams: pathParams,
645
+ headerParams: headerParams,
646
+ queryParams: queryParams
647
+ });
648
+ try {
649
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
650
+ const sdkResponse = oci_common_2.composeResponse({
651
+ responseObject: {},
652
+ responseHeaders: [
653
+ {
654
+ value: response.headers.get("opc-work-request-id"),
655
+ key: "opcWorkRequestId",
656
+ dataType: "string"
657
+ },
658
+ {
659
+ value: response.headers.get("opc-request-id"),
660
+ key: "opcRequestId",
661
+ dataType: "string"
662
+ }
663
+ ]
664
+ });
665
+ return sdkResponse;
666
+ }
667
+ catch (err) {
668
+ throw err;
669
+ }
670
+ });
671
+ }
481
672
  /**
482
673
  * Moves a sender into a different compartment. When provided, If-Match is checked against ETag values of the resource.
483
674
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -697,6 +888,84 @@ class EmailClient {
697
888
  }
698
889
  });
699
890
  }
891
+ /**
892
+ * Creates a new EmailIpPool.
893
+ * This operation does not retry by default if the user has not defined a retry configuration.
894
+ * @param CreateEmailIpPoolRequest
895
+ * @return CreateEmailIpPoolResponse
896
+ * @throws OciError when an error occurs
897
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/CreateEmailIpPool.ts.html |here} to see how to use CreateEmailIpPool API.
898
+ */
899
+ createEmailIpPool(createEmailIpPoolRequest) {
900
+ return __awaiter(this, void 0, void 0, function* () {
901
+ if (this.logger)
902
+ this.logger.debug("Calling operation EmailClient#createEmailIpPool.");
903
+ const operationName = "createEmailIpPool";
904
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/CreateEmailIpPool";
905
+ const pathParams = {};
906
+ const queryParams = {};
907
+ let headerParams = {
908
+ "Content-Type": common.Constants.APPLICATION_JSON,
909
+ "opc-retry-token": createEmailIpPoolRequest.opcRetryToken,
910
+ "opc-request-id": createEmailIpPoolRequest.opcRequestId
911
+ };
912
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
913
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createEmailIpPoolRequest.retryConfiguration, specRetryConfiguration);
914
+ if (this.logger)
915
+ retrier.logger = this.logger;
916
+ const request = yield oci_common_2.composeRequest({
917
+ baseEndpoint: this._endpoint,
918
+ defaultHeaders: this._defaultHeaders,
919
+ path: "/emailIpPools",
920
+ method: "POST",
921
+ bodyContent: common.ObjectSerializer.serialize(createEmailIpPoolRequest.createEmailIpPoolDetails, "CreateEmailIpPoolDetails", model.CreateEmailIpPoolDetails.getJsonObj),
922
+ pathParams: pathParams,
923
+ headerParams: headerParams,
924
+ queryParams: queryParams
925
+ });
926
+ try {
927
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
928
+ const sdkResponse = oci_common_2.composeResponse({
929
+ responseObject: {},
930
+ body: yield response.json(),
931
+ bodyKey: "emailIpPool",
932
+ bodyModel: model.EmailIpPool,
933
+ type: "model.EmailIpPool",
934
+ responseHeaders: [
935
+ {
936
+ value: response.headers.get("Content-Location"),
937
+ key: "contentLocation",
938
+ dataType: "string"
939
+ },
940
+ {
941
+ value: response.headers.get("etag"),
942
+ key: "etag",
943
+ dataType: "string"
944
+ },
945
+ {
946
+ value: response.headers.get("Location"),
947
+ key: "location",
948
+ dataType: "string"
949
+ },
950
+ {
951
+ value: response.headers.get("opc-request-id"),
952
+ key: "opcRequestId",
953
+ dataType: "string"
954
+ },
955
+ {
956
+ value: response.headers.get("opc-work-request-id"),
957
+ key: "opcWorkRequestId",
958
+ dataType: "string"
959
+ }
960
+ ]
961
+ });
962
+ return sdkResponse;
963
+ }
964
+ catch (err) {
965
+ throw err;
966
+ }
967
+ });
968
+ }
700
969
  /**
701
970
  * Creates a new email return path. Avoid entering confidential information.
702
971
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1026,6 +1295,68 @@ class EmailClient {
1026
1295
  }
1027
1296
  });
1028
1297
  }
1298
+ /**
1299
+ * Deletes an EmailIpPool resource by identifier
1300
+ * This operation does not retry by default if the user has not defined a retry configuration.
1301
+ * @param DeleteEmailIpPoolRequest
1302
+ * @return DeleteEmailIpPoolResponse
1303
+ * @throws OciError when an error occurs
1304
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/DeleteEmailIpPool.ts.html |here} to see how to use DeleteEmailIpPool API.
1305
+ */
1306
+ deleteEmailIpPool(deleteEmailIpPoolRequest) {
1307
+ return __awaiter(this, void 0, void 0, function* () {
1308
+ if (this.logger)
1309
+ this.logger.debug("Calling operation EmailClient#deleteEmailIpPool.");
1310
+ const operationName = "deleteEmailIpPool";
1311
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/DeleteEmailIpPool";
1312
+ const pathParams = {
1313
+ "{emailIpPoolId}": deleteEmailIpPoolRequest.emailIpPoolId
1314
+ };
1315
+ const queryParams = {
1316
+ "isLockOverride": deleteEmailIpPoolRequest.isLockOverride
1317
+ };
1318
+ let headerParams = {
1319
+ "Content-Type": common.Constants.APPLICATION_JSON,
1320
+ "if-match": deleteEmailIpPoolRequest.ifMatch,
1321
+ "opc-request-id": deleteEmailIpPoolRequest.opcRequestId
1322
+ };
1323
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1324
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEmailIpPoolRequest.retryConfiguration, specRetryConfiguration);
1325
+ if (this.logger)
1326
+ retrier.logger = this.logger;
1327
+ const request = yield oci_common_2.composeRequest({
1328
+ baseEndpoint: this._endpoint,
1329
+ defaultHeaders: this._defaultHeaders,
1330
+ path: "/emailIpPools/{emailIpPoolId}",
1331
+ method: "DELETE",
1332
+ pathParams: pathParams,
1333
+ headerParams: headerParams,
1334
+ queryParams: queryParams
1335
+ });
1336
+ try {
1337
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1338
+ const sdkResponse = oci_common_2.composeResponse({
1339
+ responseObject: {},
1340
+ responseHeaders: [
1341
+ {
1342
+ value: response.headers.get("opc-work-request-id"),
1343
+ key: "opcWorkRequestId",
1344
+ dataType: "string"
1345
+ },
1346
+ {
1347
+ value: response.headers.get("opc-request-id"),
1348
+ key: "opcRequestId",
1349
+ dataType: "string"
1350
+ }
1351
+ ]
1352
+ });
1353
+ return sdkResponse;
1354
+ }
1355
+ catch (err) {
1356
+ throw err;
1357
+ }
1358
+ });
1359
+ }
1029
1360
  /**
1030
1361
  * Deletes an email return path.
1031
1362
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1326,35 +1657,98 @@ class EmailClient {
1326
1657
  });
1327
1658
  }
1328
1659
  /**
1329
- * Retrieves the specified email domain.
1660
+ * Retrieves the specified email domain.
1661
+ * This operation does not retry by default if the user has not defined a retry configuration.
1662
+ * @param GetEmailDomainRequest
1663
+ * @return GetEmailDomainResponse
1664
+ * @throws OciError when an error occurs
1665
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/GetEmailDomain.ts.html |here} to see how to use GetEmailDomain API.
1666
+ */
1667
+ getEmailDomain(getEmailDomainRequest) {
1668
+ return __awaiter(this, void 0, void 0, function* () {
1669
+ if (this.logger)
1670
+ this.logger.debug("Calling operation EmailClient#getEmailDomain.");
1671
+ const operationName = "getEmailDomain";
1672
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailDomain/GetEmailDomain";
1673
+ const pathParams = {
1674
+ "{emailDomainId}": getEmailDomainRequest.emailDomainId
1675
+ };
1676
+ const queryParams = {};
1677
+ let headerParams = {
1678
+ "Content-Type": common.Constants.APPLICATION_JSON,
1679
+ "opc-request-id": getEmailDomainRequest.opcRequestId
1680
+ };
1681
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1682
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEmailDomainRequest.retryConfiguration, specRetryConfiguration);
1683
+ if (this.logger)
1684
+ retrier.logger = this.logger;
1685
+ const request = yield oci_common_2.composeRequest({
1686
+ baseEndpoint: this._endpoint,
1687
+ defaultHeaders: this._defaultHeaders,
1688
+ path: "/emailDomains/{emailDomainId}",
1689
+ method: "GET",
1690
+ pathParams: pathParams,
1691
+ headerParams: headerParams,
1692
+ queryParams: queryParams
1693
+ });
1694
+ try {
1695
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1696
+ const sdkResponse = oci_common_2.composeResponse({
1697
+ responseObject: {},
1698
+ body: yield response.json(),
1699
+ bodyKey: "emailDomain",
1700
+ bodyModel: model.EmailDomain,
1701
+ type: "model.EmailDomain",
1702
+ responseHeaders: [
1703
+ {
1704
+ value: response.headers.get("etag"),
1705
+ key: "etag",
1706
+ dataType: "string"
1707
+ },
1708
+ {
1709
+ value: response.headers.get("opc-request-id"),
1710
+ key: "opcRequestId",
1711
+ dataType: "string"
1712
+ }
1713
+ ]
1714
+ });
1715
+ return sdkResponse;
1716
+ }
1717
+ catch (err) {
1718
+ throw err;
1719
+ }
1720
+ });
1721
+ }
1722
+ /**
1723
+ * Retrieves the specified IpPool by identifier
1330
1724
  * This operation does not retry by default if the user has not defined a retry configuration.
1331
- * @param GetEmailDomainRequest
1332
- * @return GetEmailDomainResponse
1725
+ * @param GetEmailIpPoolRequest
1726
+ * @return GetEmailIpPoolResponse
1333
1727
  * @throws OciError when an error occurs
1334
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/GetEmailDomain.ts.html |here} to see how to use GetEmailDomain API.
1728
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/GetEmailIpPool.ts.html |here} to see how to use GetEmailIpPool API.
1335
1729
  */
1336
- getEmailDomain(getEmailDomainRequest) {
1730
+ getEmailIpPool(getEmailIpPoolRequest) {
1337
1731
  return __awaiter(this, void 0, void 0, function* () {
1338
1732
  if (this.logger)
1339
- this.logger.debug("Calling operation EmailClient#getEmailDomain.");
1340
- const operationName = "getEmailDomain";
1341
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailDomain/GetEmailDomain";
1733
+ this.logger.debug("Calling operation EmailClient#getEmailIpPool.");
1734
+ const operationName = "getEmailIpPool";
1735
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/GetEmailIpPool";
1342
1736
  const pathParams = {
1343
- "{emailDomainId}": getEmailDomainRequest.emailDomainId
1737
+ "{emailIpPoolId}": getEmailIpPoolRequest.emailIpPoolId
1344
1738
  };
1345
1739
  const queryParams = {};
1346
1740
  let headerParams = {
1347
1741
  "Content-Type": common.Constants.APPLICATION_JSON,
1348
- "opc-request-id": getEmailDomainRequest.opcRequestId
1742
+ "opc-request-id": getEmailIpPoolRequest.opcRequestId
1349
1743
  };
1350
1744
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1351
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEmailDomainRequest.retryConfiguration, specRetryConfiguration);
1745
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEmailIpPoolRequest.retryConfiguration, specRetryConfiguration);
1352
1746
  if (this.logger)
1353
1747
  retrier.logger = this.logger;
1354
1748
  const request = yield oci_common_2.composeRequest({
1355
1749
  baseEndpoint: this._endpoint,
1356
1750
  defaultHeaders: this._defaultHeaders,
1357
- path: "/emailDomains/{emailDomainId}",
1751
+ path: "/emailIpPools/{emailIpPoolId}",
1358
1752
  method: "GET",
1359
1753
  pathParams: pathParams,
1360
1754
  headerParams: headerParams,
@@ -1365,9 +1759,9 @@ class EmailClient {
1365
1759
  const sdkResponse = oci_common_2.composeResponse({
1366
1760
  responseObject: {},
1367
1761
  body: yield response.json(),
1368
- bodyKey: "emailDomain",
1369
- bodyModel: model.EmailDomain,
1370
- type: "model.EmailDomain",
1762
+ bodyKey: "emailIpPool",
1763
+ bodyModel: model.EmailIpPool,
1764
+ type: "model.EmailIpPool",
1371
1765
  responseHeaders: [
1372
1766
  {
1373
1767
  value: response.headers.get("etag"),
@@ -1777,6 +2171,146 @@ class EmailClient {
1777
2171
  }
1778
2172
  });
1779
2173
  }
2174
+ /**
2175
+ * Returns a list of EmailIpPools.
2176
+ * This operation does not retry by default if the user has not defined a retry configuration.
2177
+ * @param ListEmailIpPoolsRequest
2178
+ * @return ListEmailIpPoolsResponse
2179
+ * @throws OciError when an error occurs
2180
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/ListEmailIpPools.ts.html |here} to see how to use ListEmailIpPools API.
2181
+ */
2182
+ listEmailIpPools(listEmailIpPoolsRequest) {
2183
+ return __awaiter(this, void 0, void 0, function* () {
2184
+ if (this.logger)
2185
+ this.logger.debug("Calling operation EmailClient#listEmailIpPools.");
2186
+ const operationName = "listEmailIpPools";
2187
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPoolCollection/ListEmailIpPools";
2188
+ const pathParams = {};
2189
+ const queryParams = {
2190
+ "compartmentId": listEmailIpPoolsRequest.compartmentId,
2191
+ "id": listEmailIpPoolsRequest.id,
2192
+ "name": listEmailIpPoolsRequest.name,
2193
+ "lifecycleState": listEmailIpPoolsRequest.lifecycleState,
2194
+ "limit": listEmailIpPoolsRequest.limit,
2195
+ "page": listEmailIpPoolsRequest.page,
2196
+ "sortOrder": listEmailIpPoolsRequest.sortOrder,
2197
+ "sortBy": listEmailIpPoolsRequest.sortBy
2198
+ };
2199
+ let headerParams = {
2200
+ "Content-Type": common.Constants.APPLICATION_JSON,
2201
+ "opc-request-id": listEmailIpPoolsRequest.opcRequestId
2202
+ };
2203
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2204
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEmailIpPoolsRequest.retryConfiguration, specRetryConfiguration);
2205
+ if (this.logger)
2206
+ retrier.logger = this.logger;
2207
+ const request = yield oci_common_2.composeRequest({
2208
+ baseEndpoint: this._endpoint,
2209
+ defaultHeaders: this._defaultHeaders,
2210
+ path: "/emailIpPools",
2211
+ method: "GET",
2212
+ pathParams: pathParams,
2213
+ headerParams: headerParams,
2214
+ queryParams: queryParams
2215
+ });
2216
+ try {
2217
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2218
+ const sdkResponse = oci_common_2.composeResponse({
2219
+ responseObject: {},
2220
+ body: yield response.json(),
2221
+ bodyKey: "emailIpPoolCollection",
2222
+ bodyModel: model.EmailIpPoolCollection,
2223
+ type: "model.EmailIpPoolCollection",
2224
+ responseHeaders: [
2225
+ {
2226
+ value: response.headers.get("opc-request-id"),
2227
+ key: "opcRequestId",
2228
+ dataType: "string"
2229
+ },
2230
+ {
2231
+ value: response.headers.get("opc-next-page"),
2232
+ key: "opcNextPage",
2233
+ dataType: "string"
2234
+ }
2235
+ ]
2236
+ });
2237
+ return sdkResponse;
2238
+ }
2239
+ catch (err) {
2240
+ throw err;
2241
+ }
2242
+ });
2243
+ }
2244
+ /**
2245
+ * Returns a list of all Outbound Public IPs assigned for a given tenant.
2246
+ * This operation does not retry by default if the user has not defined a retry configuration.
2247
+ * @param ListEmailOutboundIpsRequest
2248
+ * @return ListEmailOutboundIpsResponse
2249
+ * @throws OciError when an error occurs
2250
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/ListEmailOutboundIps.ts.html |here} to see how to use ListEmailOutboundIps API.
2251
+ */
2252
+ listEmailOutboundIps(listEmailOutboundIpsRequest) {
2253
+ return __awaiter(this, void 0, void 0, function* () {
2254
+ if (this.logger)
2255
+ this.logger.debug("Calling operation EmailClient#listEmailOutboundIps.");
2256
+ const operationName = "listEmailOutboundIps";
2257
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailOutboundIpCollection/ListEmailOutboundIps";
2258
+ const pathParams = {};
2259
+ const queryParams = {
2260
+ "compartmentId": listEmailOutboundIpsRequest.compartmentId,
2261
+ "outboundIp": listEmailOutboundIpsRequest.outboundIp,
2262
+ "limit": listEmailOutboundIpsRequest.limit,
2263
+ "page": listEmailOutboundIpsRequest.page,
2264
+ "sortOrder": listEmailOutboundIpsRequest.sortOrder,
2265
+ "lifecycleState": listEmailOutboundIpsRequest.lifecycleState,
2266
+ "assignmentState": listEmailOutboundIpsRequest.assignmentState,
2267
+ "sortBy": listEmailOutboundIpsRequest.sortBy
2268
+ };
2269
+ let headerParams = {
2270
+ "Content-Type": common.Constants.APPLICATION_JSON,
2271
+ "opc-request-id": listEmailOutboundIpsRequest.opcRequestId
2272
+ };
2273
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2274
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEmailOutboundIpsRequest.retryConfiguration, specRetryConfiguration);
2275
+ if (this.logger)
2276
+ retrier.logger = this.logger;
2277
+ const request = yield oci_common_2.composeRequest({
2278
+ baseEndpoint: this._endpoint,
2279
+ defaultHeaders: this._defaultHeaders,
2280
+ path: "/emailOutboundIps",
2281
+ method: "GET",
2282
+ pathParams: pathParams,
2283
+ headerParams: headerParams,
2284
+ queryParams: queryParams
2285
+ });
2286
+ try {
2287
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2288
+ const sdkResponse = oci_common_2.composeResponse({
2289
+ responseObject: {},
2290
+ body: yield response.json(),
2291
+ bodyKey: "emailOutboundIpCollection",
2292
+ bodyModel: model.EmailOutboundIpCollection,
2293
+ type: "model.EmailOutboundIpCollection",
2294
+ responseHeaders: [
2295
+ {
2296
+ value: response.headers.get("opc-request-id"),
2297
+ key: "opcRequestId",
2298
+ dataType: "string"
2299
+ },
2300
+ {
2301
+ value: response.headers.get("opc-next-page"),
2302
+ key: "opcNextPage",
2303
+ dataType: "string"
2304
+ }
2305
+ ]
2306
+ });
2307
+ return sdkResponse;
2308
+ }
2309
+ catch (err) {
2310
+ throw err;
2311
+ }
2312
+ });
2313
+ }
1780
2314
  /**
1781
2315
  * Lists email return paths in the specified compartment or emaildomain.
1782
2316
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1869,6 +2403,7 @@ class EmailClient {
1869
2403
  "lifecycleState": listSendersRequest.lifecycleState,
1870
2404
  "domain": listSendersRequest.domain,
1871
2405
  "emailAddress": listSendersRequest.emailAddress,
2406
+ "emailIpPoolId": listSendersRequest.emailIpPoolId,
1872
2407
  "page": listSendersRequest.page,
1873
2408
  "limit": listSendersRequest.limit,
1874
2409
  "sortBy": listSendersRequest.sortBy,
@@ -2353,6 +2888,133 @@ class EmailClient {
2353
2888
  }
2354
2889
  });
2355
2890
  }
2891
+ /**
2892
+ * Remove a lock to a resource.
2893
+ * This operation does not retry by default if the user has not defined a retry configuration.
2894
+ * @param RemoveEmailIpPoolLockRequest
2895
+ * @return RemoveEmailIpPoolLockResponse
2896
+ * @throws OciError when an error occurs
2897
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/RemoveEmailIpPoolLock.ts.html |here} to see how to use RemoveEmailIpPoolLock API.
2898
+ */
2899
+ removeEmailIpPoolLock(removeEmailIpPoolLockRequest) {
2900
+ return __awaiter(this, void 0, void 0, function* () {
2901
+ if (this.logger)
2902
+ this.logger.debug("Calling operation EmailClient#removeEmailIpPoolLock.");
2903
+ const operationName = "removeEmailIpPoolLock";
2904
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/RemoveEmailIpPoolLock";
2905
+ const pathParams = {
2906
+ "{emailIpPoolId}": removeEmailIpPoolLockRequest.emailIpPoolId
2907
+ };
2908
+ const queryParams = {};
2909
+ let headerParams = {
2910
+ "Content-Type": common.Constants.APPLICATION_JSON,
2911
+ "opc-request-id": removeEmailIpPoolLockRequest.opcRequestId,
2912
+ "if-match": removeEmailIpPoolLockRequest.ifMatch
2913
+ };
2914
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2915
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeEmailIpPoolLockRequest.retryConfiguration, specRetryConfiguration);
2916
+ if (this.logger)
2917
+ retrier.logger = this.logger;
2918
+ const request = yield oci_common_2.composeRequest({
2919
+ baseEndpoint: this._endpoint,
2920
+ defaultHeaders: this._defaultHeaders,
2921
+ path: "/emailIpPools/{emailIpPoolId}/actions/removeLock",
2922
+ method: "POST",
2923
+ bodyContent: common.ObjectSerializer.serialize(removeEmailIpPoolLockRequest.removeLockDetails, "RemoveLockDetails", model.RemoveLockDetails.getJsonObj),
2924
+ pathParams: pathParams,
2925
+ headerParams: headerParams,
2926
+ queryParams: queryParams
2927
+ });
2928
+ try {
2929
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2930
+ const sdkResponse = oci_common_2.composeResponse({
2931
+ responseObject: {},
2932
+ body: yield response.json(),
2933
+ bodyKey: "emailIpPool",
2934
+ bodyModel: model.EmailIpPool,
2935
+ type: "model.EmailIpPool",
2936
+ responseHeaders: [
2937
+ {
2938
+ value: response.headers.get("opc-request-id"),
2939
+ key: "opcRequestId",
2940
+ dataType: "string"
2941
+ },
2942
+ {
2943
+ value: response.headers.get("etag"),
2944
+ key: "etag",
2945
+ dataType: "string"
2946
+ }
2947
+ ]
2948
+ });
2949
+ return sdkResponse;
2950
+ }
2951
+ catch (err) {
2952
+ throw err;
2953
+ }
2954
+ });
2955
+ }
2956
+ /**
2957
+ * Remove OutboundIps from EmailIpPool.
2958
+ * This operation does not retry by default if the user has not defined a retry configuration.
2959
+ * @param RemoveEmailOutboundIpRequest
2960
+ * @return RemoveEmailOutboundIpResponse
2961
+ * @throws OciError when an error occurs
2962
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/RemoveEmailOutboundIp.ts.html |here} to see how to use RemoveEmailOutboundIp API.
2963
+ */
2964
+ removeEmailOutboundIp(removeEmailOutboundIpRequest) {
2965
+ return __awaiter(this, void 0, void 0, function* () {
2966
+ if (this.logger)
2967
+ this.logger.debug("Calling operation EmailClient#removeEmailOutboundIp.");
2968
+ const operationName = "removeEmailOutboundIp";
2969
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/RemoveEmailOutboundIp";
2970
+ const pathParams = {
2971
+ "{emailIpPoolId}": removeEmailOutboundIpRequest.emailIpPoolId
2972
+ };
2973
+ const queryParams = {};
2974
+ let headerParams = {
2975
+ "Content-Type": common.Constants.APPLICATION_JSON,
2976
+ "opc-request-id": removeEmailOutboundIpRequest.opcRequestId,
2977
+ "if-match": removeEmailOutboundIpRequest.ifMatch,
2978
+ "opc-retry-token": removeEmailOutboundIpRequest.opcRetryToken
2979
+ };
2980
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2981
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeEmailOutboundIpRequest.retryConfiguration, specRetryConfiguration);
2982
+ if (this.logger)
2983
+ retrier.logger = this.logger;
2984
+ const request = yield oci_common_2.composeRequest({
2985
+ baseEndpoint: this._endpoint,
2986
+ defaultHeaders: this._defaultHeaders,
2987
+ path: "/emailIpPools/{emailIpPoolId}/actions/removeEmailOutboundIp",
2988
+ method: "POST",
2989
+ bodyContent: common.ObjectSerializer.serialize(removeEmailOutboundIpRequest.removeEmailOutboundIpDetails, "RemoveEmailOutboundIpDetails", model.RemoveEmailOutboundIpDetails.getJsonObj),
2990
+ pathParams: pathParams,
2991
+ headerParams: headerParams,
2992
+ queryParams: queryParams
2993
+ });
2994
+ try {
2995
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2996
+ const sdkResponse = oci_common_2.composeResponse({
2997
+ responseObject: {},
2998
+ responseHeaders: [
2999
+ {
3000
+ value: response.headers.get("opc-request-id"),
3001
+ key: "opcRequestId",
3002
+ dataType: "string"
3003
+ },
3004
+ {
3005
+ value: response.headers.get("opc-work-request-id"),
3006
+ key: "opcWorkRequestId",
3007
+ dataType: "string"
3008
+ }
3009
+ ]
3010
+ });
3011
+ return sdkResponse;
3012
+ }
3013
+ catch (err) {
3014
+ throw err;
3015
+ }
3016
+ });
3017
+ }
2356
3018
  /**
2357
3019
  * Remove a lock to a resource.
2358
3020
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -2607,6 +3269,69 @@ class EmailClient {
2607
3269
  }
2608
3270
  });
2609
3271
  }
3272
+ /**
3273
+ * Updates the EmailIpPool
3274
+ * This operation does not retry by default if the user has not defined a retry configuration.
3275
+ * @param UpdateEmailIpPoolRequest
3276
+ * @return UpdateEmailIpPoolResponse
3277
+ * @throws OciError when an error occurs
3278
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/email/UpdateEmailIpPool.ts.html |here} to see how to use UpdateEmailIpPool API.
3279
+ */
3280
+ updateEmailIpPool(updateEmailIpPoolRequest) {
3281
+ return __awaiter(this, void 0, void 0, function* () {
3282
+ if (this.logger)
3283
+ this.logger.debug("Calling operation EmailClient#updateEmailIpPool.");
3284
+ const operationName = "updateEmailIpPool";
3285
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailIpPool/UpdateEmailIpPool";
3286
+ const pathParams = {
3287
+ "{emailIpPoolId}": updateEmailIpPoolRequest.emailIpPoolId
3288
+ };
3289
+ const queryParams = {
3290
+ "isLockOverride": updateEmailIpPoolRequest.isLockOverride
3291
+ };
3292
+ let headerParams = {
3293
+ "Content-Type": common.Constants.APPLICATION_JSON,
3294
+ "if-match": updateEmailIpPoolRequest.ifMatch,
3295
+ "opc-request-id": updateEmailIpPoolRequest.opcRequestId
3296
+ };
3297
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3298
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEmailIpPoolRequest.retryConfiguration, specRetryConfiguration);
3299
+ if (this.logger)
3300
+ retrier.logger = this.logger;
3301
+ const request = yield oci_common_2.composeRequest({
3302
+ baseEndpoint: this._endpoint,
3303
+ defaultHeaders: this._defaultHeaders,
3304
+ path: "/emailIpPools/{emailIpPoolId}",
3305
+ method: "PUT",
3306
+ bodyContent: common.ObjectSerializer.serialize(updateEmailIpPoolRequest.updateEmailIpPoolDetails, "UpdateEmailIpPoolDetails", model.UpdateEmailIpPoolDetails.getJsonObj),
3307
+ pathParams: pathParams,
3308
+ headerParams: headerParams,
3309
+ queryParams: queryParams
3310
+ });
3311
+ try {
3312
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3313
+ const sdkResponse = oci_common_2.composeResponse({
3314
+ responseObject: {},
3315
+ responseHeaders: [
3316
+ {
3317
+ value: response.headers.get("opc-work-request-id"),
3318
+ key: "opcWorkRequestId",
3319
+ dataType: "string"
3320
+ },
3321
+ {
3322
+ value: response.headers.get("opc-request-id"),
3323
+ key: "opcRequestId",
3324
+ dataType: "string"
3325
+ }
3326
+ ]
3327
+ });
3328
+ return sdkResponse;
3329
+ }
3330
+ catch (err) {
3331
+ throw err;
3332
+ }
3333
+ });
3334
+ }
2610
3335
  /**
2611
3336
  * Modifies an email return path.
2612
3337
  * This operation does not retry by default if the user has not defined a retry configuration.