oci-dns 2.95.1 → 2.96.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 (70) hide show
  1. package/lib/client.d.ts +33 -0
  2. package/lib/client.js +182 -1
  3. package/lib/client.js.map +1 -1
  4. package/lib/dns-waiter.d.ts +90 -0
  5. package/lib/dns-waiter.js +168 -0
  6. package/lib/dns-waiter.js.map +1 -1
  7. package/lib/model/create-zone-details.d.ts +29 -0
  8. package/lib/model/create-zone-details.js.map +1 -1
  9. package/lib/model/dnssec-config.d.ts +37 -0
  10. package/lib/model/dnssec-config.js +73 -0
  11. package/lib/model/dnssec-config.js.map +1 -0
  12. package/lib/model/dnssec-digest-type.d.ts +30 -0
  13. package/lib/model/dnssec-digest-type.js +41 -0
  14. package/lib/model/dnssec-digest-type.js.map +1 -0
  15. package/lib/model/dnssec-key-version-ds-data.d.ts +36 -0
  16. package/lib/model/dnssec-key-version-ds-data.js +31 -0
  17. package/lib/model/dnssec-key-version-ds-data.js.map +1 -0
  18. package/lib/model/dnssec-signing-algorithm.d.ts +30 -0
  19. package/lib/model/dnssec-signing-algorithm.js +41 -0
  20. package/lib/model/dnssec-signing-algorithm.js.map +1 -0
  21. package/lib/model/index.d.ts +18 -0
  22. package/lib/model/index.js +20 -2
  23. package/lib/model/index.js.map +1 -1
  24. package/lib/model/ksk-dnssec-key-version.d.ts +125 -0
  25. package/lib/model/ksk-dnssec-key-version.js +63 -0
  26. package/lib/model/ksk-dnssec-key-version.js.map +1 -0
  27. package/lib/model/promote-zone-dnssec-key-version-details.d.ts +29 -0
  28. package/lib/model/promote-zone-dnssec-key-version-details.js +31 -0
  29. package/lib/model/promote-zone-dnssec-key-version-details.js.map +1 -0
  30. package/lib/model/stage-zone-dnssec-key-version-details.d.ts +29 -0
  31. package/lib/model/stage-zone-dnssec-key-version-details.js +31 -0
  32. package/lib/model/stage-zone-dnssec-key-version-details.js.map +1 -0
  33. package/lib/model/update-zone-details.d.ts +29 -0
  34. package/lib/model/update-zone-details.js.map +1 -1
  35. package/lib/model/zone-dnssec-state.d.ts +31 -0
  36. package/lib/model/zone-dnssec-state.js +42 -0
  37. package/lib/model/zone-dnssec-state.js.map +1 -0
  38. package/lib/model/zone-summary.d.ts +30 -0
  39. package/lib/model/zone-summary.js +30 -2
  40. package/lib/model/zone-summary.js.map +1 -1
  41. package/lib/model/zone.d.ts +30 -0
  42. package/lib/model/zone.js +6 -0
  43. package/lib/model/zone.js.map +1 -1
  44. package/lib/model/zsk-dnssec-key-version.d.ts +119 -0
  45. package/lib/model/zsk-dnssec-key-version.js +31 -0
  46. package/lib/model/zsk-dnssec-key-version.js.map +1 -0
  47. package/lib/request/index.d.ts +4 -0
  48. package/lib/request/list-zones-request.d.ts +5 -0
  49. package/lib/request/list-zones-request.js.map +1 -1
  50. package/lib/request/promote-zone-dnssec-key-version-request.d.ts +67 -0
  51. package/lib/request/promote-zone-dnssec-key-version-request.js +15 -0
  52. package/lib/request/promote-zone-dnssec-key-version-request.js.map +1 -0
  53. package/lib/request/stage-zone-dnssec-key-version-request.d.ts +67 -0
  54. package/lib/request/stage-zone-dnssec-key-version-request.js +15 -0
  55. package/lib/request/stage-zone-dnssec-key-version-request.js.map +1 -0
  56. package/lib/response/change-steering-policy-compartment-response.d.ts +6 -0
  57. package/lib/response/create-steering-policy-attachment-response.d.ts +6 -0
  58. package/lib/response/create-steering-policy-response.d.ts +6 -0
  59. package/lib/response/delete-steering-policy-attachment-response.d.ts +6 -0
  60. package/lib/response/delete-steering-policy-response.d.ts +6 -0
  61. package/lib/response/index.d.ts +4 -0
  62. package/lib/response/promote-zone-dnssec-key-version-response.d.ts +26 -0
  63. package/lib/response/promote-zone-dnssec-key-version-response.js +15 -0
  64. package/lib/response/promote-zone-dnssec-key-version-response.js.map +1 -0
  65. package/lib/response/stage-zone-dnssec-key-version-response.d.ts +26 -0
  66. package/lib/response/stage-zone-dnssec-key-version-response.js +15 -0
  67. package/lib/response/stage-zone-dnssec-key-version-response.js.map +1 -0
  68. package/lib/response/update-steering-policy-attachment-response.d.ts +6 -0
  69. package/lib/response/update-steering-policy-response.d.ts +6 -0
  70. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -968,6 +968,39 @@ export declare class DnsClient {
968
968
  * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dns/PatchZoneRecords.ts.html |here} to see how to use PatchZoneRecords API.
969
969
  */
970
970
  patchZoneRecords(patchZoneRecordsRequest: requests.PatchZoneRecordsRequest): Promise<responses.PatchZoneRecordsResponse>;
971
+ /**
972
+ * Promotes a specified `DnssecKeyVersion` on the zone.
973
+ * <p>
974
+ If the `DnssecKeyVersion` identified in the request body is a key signing key (KSK) that is replacing
975
+ * another `DnssecKeyVersion`, then the old `DnssecKeyVersion` is scheduled for removal from the zone.
976
+ * <p>
977
+ For key signing keys (KSKs), you must create the DS record with the new key information **before** promoting
978
+ * the new key to establish a chain of trust. To avoid a service disruption, remove the old DS record as soon
979
+ * as its TTL (time to live) expires.
980
+ * <p>
981
+ For more information, see [DNSSEC](https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm).
982
+ *
983
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
984
+ * @param PromoteZoneDnssecKeyVersionRequest
985
+ * @return PromoteZoneDnssecKeyVersionResponse
986
+ * @throws OciError when an error occurs
987
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dns/PromoteZoneDnssecKeyVersion.ts.html |here} to see how to use PromoteZoneDnssecKeyVersion API.
988
+ */
989
+ promoteZoneDnssecKeyVersion(promoteZoneDnssecKeyVersionRequest: requests.PromoteZoneDnssecKeyVersionRequest): Promise<responses.PromoteZoneDnssecKeyVersionResponse>;
990
+ /**
991
+ * Stages a new `DnssecKeyVersion` on the zone. Staging is a process that generates a new \"successor\" key version
992
+ * that replaces an existing \"predecessor\" key version.
993
+ * **Note:** A new key-signing key (KSK) version is inert until you update the parent zone DS records.
994
+ * <p>
995
+ For more information, see the [DNSSEC](https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm) documentation.
996
+ *
997
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
998
+ * @param StageZoneDnssecKeyVersionRequest
999
+ * @return StageZoneDnssecKeyVersionResponse
1000
+ * @throws OciError when an error occurs
1001
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dns/StageZoneDnssecKeyVersion.ts.html |here} to see how to use StageZoneDnssecKeyVersion API.
1002
+ */
1003
+ stageZoneDnssecKeyVersion(stageZoneDnssecKeyVersionRequest: requests.StageZoneDnssecKeyVersionRequest): Promise<responses.StageZoneDnssecKeyVersionResponse>;
971
1004
  /**
972
1005
  * Replaces records in the specified zone at a domain with the records specified in the request body.
973
1006
  * <p>
package/lib/client.js CHANGED
@@ -318,6 +318,11 @@ class DnsClient {
318
318
  value: response.headers.get("opc-request-id"),
319
319
  key: "opcRequestId",
320
320
  dataType: "string"
321
+ },
322
+ {
323
+ value: response.headers.get("opc-work-request-id"),
324
+ key: "opcWorkRequestId",
325
+ dataType: "string"
321
326
  }
322
327
  ]
323
328
  });
@@ -667,6 +672,11 @@ class DnsClient {
667
672
  value: response.headers.get("opc-request-id"),
668
673
  key: "opcRequestId",
669
674
  dataType: "string"
675
+ },
676
+ {
677
+ value: response.headers.get("opc-work-request-id"),
678
+ key: "opcWorkRequestId",
679
+ dataType: "string"
670
680
  }
671
681
  ]
672
682
  });
@@ -743,6 +753,11 @@ class DnsClient {
743
753
  value: response.headers.get("opc-request-id"),
744
754
  key: "opcRequestId",
745
755
  dataType: "string"
756
+ },
757
+ {
758
+ value: response.headers.get("opc-work-request-id"),
759
+ key: "opcWorkRequestId",
760
+ dataType: "string"
746
761
  }
747
762
  ]
748
763
  });
@@ -1315,6 +1330,11 @@ class DnsClient {
1315
1330
  value: response.headers.get("opc-request-id"),
1316
1331
  key: "opcRequestId",
1317
1332
  dataType: "string"
1333
+ },
1334
+ {
1335
+ value: response.headers.get("opc-work-request-id"),
1336
+ key: "opcWorkRequestId",
1337
+ dataType: "string"
1318
1338
  }
1319
1339
  ]
1320
1340
  });
@@ -1375,6 +1395,11 @@ class DnsClient {
1375
1395
  value: response.headers.get("opc-request-id"),
1376
1396
  key: "opcRequestId",
1377
1397
  dataType: "string"
1398
+ },
1399
+ {
1400
+ value: response.headers.get("opc-work-request-id"),
1401
+ key: "opcWorkRequestId",
1402
+ dataType: "string"
1378
1403
  }
1379
1404
  ]
1380
1405
  });
@@ -3387,7 +3412,8 @@ class DnsClient {
3387
3412
  "sortOrder": listZonesRequest.sortOrder,
3388
3413
  "scope": listZonesRequest.scope,
3389
3414
  "viewId": listZonesRequest.viewId,
3390
- "tsigKeyId": listZonesRequest.tsigKeyId
3415
+ "tsigKeyId": listZonesRequest.tsigKeyId,
3416
+ "dnssecState": listZonesRequest.dnssecState
3391
3417
  };
3392
3418
  let headerParams = {
3393
3419
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3738,6 +3764,151 @@ class DnsClient {
3738
3764
  }
3739
3765
  });
3740
3766
  }
3767
+ /**
3768
+ * Promotes a specified `DnssecKeyVersion` on the zone.
3769
+ * <p>
3770
+ If the `DnssecKeyVersion` identified in the request body is a key signing key (KSK) that is replacing
3771
+ * another `DnssecKeyVersion`, then the old `DnssecKeyVersion` is scheduled for removal from the zone.
3772
+ * <p>
3773
+ For key signing keys (KSKs), you must create the DS record with the new key information **before** promoting
3774
+ * the new key to establish a chain of trust. To avoid a service disruption, remove the old DS record as soon
3775
+ * as its TTL (time to live) expires.
3776
+ * <p>
3777
+ For more information, see [DNSSEC](https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm).
3778
+ *
3779
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3780
+ * @param PromoteZoneDnssecKeyVersionRequest
3781
+ * @return PromoteZoneDnssecKeyVersionResponse
3782
+ * @throws OciError when an error occurs
3783
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dns/PromoteZoneDnssecKeyVersion.ts.html |here} to see how to use PromoteZoneDnssecKeyVersion API.
3784
+ */
3785
+ promoteZoneDnssecKeyVersion(promoteZoneDnssecKeyVersionRequest) {
3786
+ return __awaiter(this, void 0, void 0, function* () {
3787
+ if (this.logger)
3788
+ this.logger.debug("Calling operation DnsClient#promoteZoneDnssecKeyVersion.");
3789
+ const operationName = "promoteZoneDnssecKeyVersion";
3790
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/dns/20180115/Zone/PromoteZoneDnssecKeyVersion";
3791
+ const pathParams = {
3792
+ "{zoneId}": promoteZoneDnssecKeyVersionRequest.zoneId
3793
+ };
3794
+ const queryParams = {
3795
+ "scope": promoteZoneDnssecKeyVersionRequest.scope
3796
+ };
3797
+ let headerParams = {
3798
+ "Content-Type": common.Constants.APPLICATION_JSON,
3799
+ "If-Match": promoteZoneDnssecKeyVersionRequest.ifMatch,
3800
+ "If-Unmodified-Since": promoteZoneDnssecKeyVersionRequest.ifUnmodifiedSince,
3801
+ "opc-retry-token": promoteZoneDnssecKeyVersionRequest.opcRetryToken,
3802
+ "opc-request-id": promoteZoneDnssecKeyVersionRequest.opcRequestId
3803
+ };
3804
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3805
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, promoteZoneDnssecKeyVersionRequest.retryConfiguration, specRetryConfiguration);
3806
+ if (this.logger)
3807
+ retrier.logger = this.logger;
3808
+ const request = yield oci_common_2.composeRequest({
3809
+ baseEndpoint: this._endpoint,
3810
+ defaultHeaders: this._defaultHeaders,
3811
+ path: "/zones/{zoneId}/actions/promoteDnssecKeyVersion",
3812
+ method: "POST",
3813
+ bodyContent: common.ObjectSerializer.serialize(promoteZoneDnssecKeyVersionRequest.promoteZoneDnssecKeyVersionDetails, "PromoteZoneDnssecKeyVersionDetails", model.PromoteZoneDnssecKeyVersionDetails.getJsonObj),
3814
+ pathParams: pathParams,
3815
+ headerParams: headerParams,
3816
+ queryParams: queryParams
3817
+ });
3818
+ try {
3819
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3820
+ const sdkResponse = oci_common_2.composeResponse({
3821
+ responseObject: {},
3822
+ responseHeaders: [
3823
+ {
3824
+ value: response.headers.get("opc-request-id"),
3825
+ key: "opcRequestId",
3826
+ dataType: "string"
3827
+ },
3828
+ {
3829
+ value: response.headers.get("opc-work-request-id"),
3830
+ key: "opcWorkRequestId",
3831
+ dataType: "string"
3832
+ }
3833
+ ]
3834
+ });
3835
+ return sdkResponse;
3836
+ }
3837
+ catch (err) {
3838
+ throw err;
3839
+ }
3840
+ });
3841
+ }
3842
+ /**
3843
+ * Stages a new `DnssecKeyVersion` on the zone. Staging is a process that generates a new \"successor\" key version
3844
+ * that replaces an existing \"predecessor\" key version.
3845
+ * **Note:** A new key-signing key (KSK) version is inert until you update the parent zone DS records.
3846
+ * <p>
3847
+ For more information, see the [DNSSEC](https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm) documentation.
3848
+ *
3849
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3850
+ * @param StageZoneDnssecKeyVersionRequest
3851
+ * @return StageZoneDnssecKeyVersionResponse
3852
+ * @throws OciError when an error occurs
3853
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dns/StageZoneDnssecKeyVersion.ts.html |here} to see how to use StageZoneDnssecKeyVersion API.
3854
+ */
3855
+ stageZoneDnssecKeyVersion(stageZoneDnssecKeyVersionRequest) {
3856
+ return __awaiter(this, void 0, void 0, function* () {
3857
+ if (this.logger)
3858
+ this.logger.debug("Calling operation DnsClient#stageZoneDnssecKeyVersion.");
3859
+ const operationName = "stageZoneDnssecKeyVersion";
3860
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/dns/20180115/Zone/StageZoneDnssecKeyVersion";
3861
+ const pathParams = {
3862
+ "{zoneId}": stageZoneDnssecKeyVersionRequest.zoneId
3863
+ };
3864
+ const queryParams = {
3865
+ "scope": stageZoneDnssecKeyVersionRequest.scope
3866
+ };
3867
+ let headerParams = {
3868
+ "Content-Type": common.Constants.APPLICATION_JSON,
3869
+ "If-Match": stageZoneDnssecKeyVersionRequest.ifMatch,
3870
+ "If-Unmodified-Since": stageZoneDnssecKeyVersionRequest.ifUnmodifiedSince,
3871
+ "opc-retry-token": stageZoneDnssecKeyVersionRequest.opcRetryToken,
3872
+ "opc-request-id": stageZoneDnssecKeyVersionRequest.opcRequestId
3873
+ };
3874
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3875
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stageZoneDnssecKeyVersionRequest.retryConfiguration, specRetryConfiguration);
3876
+ if (this.logger)
3877
+ retrier.logger = this.logger;
3878
+ const request = yield oci_common_2.composeRequest({
3879
+ baseEndpoint: this._endpoint,
3880
+ defaultHeaders: this._defaultHeaders,
3881
+ path: "/zones/{zoneId}/actions/stageDnssecKeyVersion",
3882
+ method: "POST",
3883
+ bodyContent: common.ObjectSerializer.serialize(stageZoneDnssecKeyVersionRequest.stageZoneDnssecKeyVersionDetails, "StageZoneDnssecKeyVersionDetails", model.StageZoneDnssecKeyVersionDetails.getJsonObj),
3884
+ pathParams: pathParams,
3885
+ headerParams: headerParams,
3886
+ queryParams: queryParams
3887
+ });
3888
+ try {
3889
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3890
+ const sdkResponse = oci_common_2.composeResponse({
3891
+ responseObject: {},
3892
+ responseHeaders: [
3893
+ {
3894
+ value: response.headers.get("opc-request-id"),
3895
+ key: "opcRequestId",
3896
+ dataType: "string"
3897
+ },
3898
+ {
3899
+ value: response.headers.get("opc-work-request-id"),
3900
+ key: "opcWorkRequestId",
3901
+ dataType: "string"
3902
+ }
3903
+ ]
3904
+ });
3905
+ return sdkResponse;
3906
+ }
3907
+ catch (err) {
3908
+ throw err;
3909
+ }
3910
+ });
3911
+ }
3741
3912
  /**
3742
3913
  * Replaces records in the specified zone at a domain with the records specified in the request body.
3743
3914
  * <p>
@@ -4115,6 +4286,11 @@ class DnsClient {
4115
4286
  key: "opcRequestId",
4116
4287
  dataType: "string"
4117
4288
  },
4289
+ {
4290
+ value: response.headers.get("opc-work-request-id"),
4291
+ key: "opcWorkRequestId",
4292
+ dataType: "string"
4293
+ },
4118
4294
  {
4119
4295
  value: response.headers.get("ETag"),
4120
4296
  key: "eTag",
@@ -4184,6 +4360,11 @@ class DnsClient {
4184
4360
  key: "opcRequestId",
4185
4361
  dataType: "string"
4186
4362
  },
4363
+ {
4364
+ value: response.headers.get("opc-work-request-id"),
4365
+ key: "opcWorkRequestId",
4366
+ dataType: "string"
4367
+ },
4187
4368
  {
4188
4369
  value: response.headers.get("ETag"),
4189
4370
  key: "eTag",