oci-core 2.100.2 → 2.100.3

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 (98) hide show
  1. package/lib/client.d.ts +97 -0
  2. package/lib/client.js +566 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/byoasn-byoip-range.d.ts +47 -0
  5. package/lib/model/byoasn-byoip-range.js +36 -0
  6. package/lib/model/byoasn-byoip-range.js.map +1 -0
  7. package/lib/model/byoasn-collection.d.ts +33 -0
  8. package/lib/model/byoasn-collection.js +68 -0
  9. package/lib/model/byoasn-collection.js.map +1 -0
  10. package/lib/model/byoasn-summary.d.ts +90 -0
  11. package/lib/model/byoasn-summary.js +36 -0
  12. package/lib/model/byoasn-summary.js.map +1 -0
  13. package/lib/model/byoasn.d.ts +115 -0
  14. package/lib/model/byoasn.js +81 -0
  15. package/lib/model/byoasn.js.map +1 -0
  16. package/lib/model/byoip-range-origin-asn.d.ts +40 -0
  17. package/lib/model/byoip-range-origin-asn.js +36 -0
  18. package/lib/model/byoip-range-origin-asn.js.map +1 -0
  19. package/lib/model/byoip-range.d.ts +1 -0
  20. package/lib/model/byoip-range.js +5 -1
  21. package/lib/model/byoip-range.js.map +1 -1
  22. package/lib/model/change-byoasn-compartment-details.d.ts +33 -0
  23. package/lib/model/change-byoasn-compartment-details.js +36 -0
  24. package/lib/model/change-byoasn-compartment-details.js.map +1 -0
  25. package/lib/model/create-byoasn-details.d.ts +66 -0
  26. package/lib/model/create-byoasn-details.js +36 -0
  27. package/lib/model/create-byoasn-details.js.map +1 -0
  28. package/lib/model/index.d.ts +18 -0
  29. package/lib/model/index.js +31 -13
  30. package/lib/model/index.js.map +1 -1
  31. package/lib/model/set-origin-asn-details.d.ts +36 -0
  32. package/lib/model/set-origin-asn-details.js +36 -0
  33. package/lib/model/set-origin-asn-details.js.map +1 -0
  34. package/lib/model/update-byoasn-details.d.ts +56 -0
  35. package/lib/model/update-byoasn-details.js +36 -0
  36. package/lib/model/update-byoasn-details.js.map +1 -0
  37. package/lib/request/change-byoasn-compartment-request.d.ts +49 -0
  38. package/lib/request/change-byoasn-compartment-request.js +15 -0
  39. package/lib/request/change-byoasn-compartment-request.js.map +1 -0
  40. package/lib/request/create-byoasn-request.d.ts +38 -0
  41. package/lib/request/create-byoasn-request.js +15 -0
  42. package/lib/request/create-byoasn-request.js.map +1 -0
  43. package/lib/request/delete-byoasn-request.d.ts +35 -0
  44. package/lib/request/delete-byoasn-request.js +15 -0
  45. package/lib/request/delete-byoasn-request.js.map +1 -0
  46. package/lib/request/get-byoasn-request.d.ts +28 -0
  47. package/lib/request/get-byoasn-request.js +15 -0
  48. package/lib/request/get-byoasn-request.js.map +1 -0
  49. package/lib/request/index.d.ts +18 -0
  50. package/lib/request/index.js +4 -2
  51. package/lib/request/index.js.map +1 -1
  52. package/lib/request/list-byoasns-request.d.ts +75 -0
  53. package/lib/request/list-byoasns-request.js +29 -0
  54. package/lib/request/list-byoasns-request.js.map +1 -0
  55. package/lib/request/set-origin-asn-request.d.ts +49 -0
  56. package/lib/request/set-origin-asn-request.js +15 -0
  57. package/lib/request/set-origin-asn-request.js.map +1 -0
  58. package/lib/request/set-origin-asn-to-oracle-request.d.ts +35 -0
  59. package/lib/request/set-origin-asn-to-oracle-request.js +15 -0
  60. package/lib/request/set-origin-asn-to-oracle-request.js.map +1 -0
  61. package/lib/request/update-byoasn-request.d.ts +40 -0
  62. package/lib/request/update-byoasn-request.js +15 -0
  63. package/lib/request/update-byoasn-request.js.map +1 -0
  64. package/lib/request/validate-byoasn-request.d.ts +44 -0
  65. package/lib/request/validate-byoasn-request.js +15 -0
  66. package/lib/request/validate-byoasn-request.js.map +1 -0
  67. package/lib/response/change-byoasn-compartment-response.d.ts +20 -0
  68. package/lib/response/change-byoasn-compartment-response.js +15 -0
  69. package/lib/response/change-byoasn-compartment-response.js.map +1 -0
  70. package/lib/response/create-byoasn-response.d.ts +30 -0
  71. package/lib/response/create-byoasn-response.js +15 -0
  72. package/lib/response/create-byoasn-response.js.map +1 -0
  73. package/lib/response/delete-byoasn-response.d.ts +20 -0
  74. package/lib/response/delete-byoasn-response.js +15 -0
  75. package/lib/response/delete-byoasn-response.js.map +1 -0
  76. package/lib/response/get-byoasn-response.d.ts +30 -0
  77. package/lib/response/get-byoasn-response.js +15 -0
  78. package/lib/response/get-byoasn-response.js.map +1 -0
  79. package/lib/response/index.d.ts +18 -0
  80. package/lib/response/list-byoasns-response.d.ts +32 -0
  81. package/lib/response/list-byoasns-response.js +15 -0
  82. package/lib/response/list-byoasns-response.js.map +1 -0
  83. package/lib/response/set-origin-asn-response.d.ts +27 -0
  84. package/lib/response/set-origin-asn-response.js +15 -0
  85. package/lib/response/set-origin-asn-response.js.map +1 -0
  86. package/lib/response/set-origin-asn-to-oracle-response.d.ts +20 -0
  87. package/lib/response/set-origin-asn-to-oracle-response.js +15 -0
  88. package/lib/response/set-origin-asn-to-oracle-response.js.map +1 -0
  89. package/lib/response/update-byoasn-response.d.ts +30 -0
  90. package/lib/response/update-byoasn-response.js +15 -0
  91. package/lib/response/update-byoasn-response.js.map +1 -0
  92. package/lib/response/validate-byoasn-response.d.ts +27 -0
  93. package/lib/response/validate-byoasn-response.js +15 -0
  94. package/lib/response/validate-byoasn-response.js.map +1 -0
  95. package/lib/virtualnetwork-waiter.d.ts +28 -0
  96. package/lib/virtualnetwork-waiter.js +42 -0
  97. package/lib/virtualnetwork-waiter.js.map +1 -1
  98. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -15840,6 +15840,66 @@ class VirtualNetworkClient {
15840
15840
  }
15841
15841
  });
15842
15842
  }
15843
+ /**
15844
+ * Moves a BYOASN Resource to a different compartment. For information
15845
+ * about moving resources between compartments, see
15846
+ * [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
15847
+ *
15848
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
15849
+ * @param ChangeByoasnCompartmentRequest
15850
+ * @return ChangeByoasnCompartmentResponse
15851
+ * @throws OciError when an error occurs
15852
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeByoasnCompartment.ts.html |here} to see how to use ChangeByoasnCompartment API.
15853
+ */
15854
+ changeByoasnCompartment(changeByoasnCompartmentRequest) {
15855
+ return __awaiter(this, void 0, void 0, function* () {
15856
+ if (this.logger)
15857
+ this.logger.debug("Calling operation VirtualNetworkClient#changeByoasnCompartment.");
15858
+ const operationName = "changeByoasnCompartment";
15859
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Byoasn/ChangeByoasnCompartment";
15860
+ const pathParams = {
15861
+ "{byoasnId}": changeByoasnCompartmentRequest.byoasnId
15862
+ };
15863
+ const queryParams = {};
15864
+ let headerParams = {
15865
+ "Content-Type": common.Constants.APPLICATION_JSON,
15866
+ "opc-request-id": changeByoasnCompartmentRequest.opcRequestId,
15867
+ "opc-retry-token": changeByoasnCompartmentRequest.opcRetryToken,
15868
+ "if-match": changeByoasnCompartmentRequest.ifMatch
15869
+ };
15870
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
15871
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeByoasnCompartmentRequest.retryConfiguration, specRetryConfiguration);
15872
+ if (this.logger)
15873
+ retrier.logger = this.logger;
15874
+ const request = yield oci_common_2.composeRequest({
15875
+ baseEndpoint: this._endpoint,
15876
+ defaultHeaders: this._defaultHeaders,
15877
+ path: "/byoasns/{byoasnId}/actions/changeCompartment",
15878
+ method: "POST",
15879
+ bodyContent: common.ObjectSerializer.serialize(changeByoasnCompartmentRequest.changeByoasnCompartmentDetails, "ChangeByoasnCompartmentDetails", model.ChangeByoasnCompartmentDetails.getJsonObj),
15880
+ pathParams: pathParams,
15881
+ headerParams: headerParams,
15882
+ queryParams: queryParams
15883
+ });
15884
+ try {
15885
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
15886
+ const sdkResponse = oci_common_2.composeResponse({
15887
+ responseObject: {},
15888
+ responseHeaders: [
15889
+ {
15890
+ value: response.headers.get("opc-request-id"),
15891
+ key: "opcRequestId",
15892
+ dataType: "string"
15893
+ }
15894
+ ]
15895
+ });
15896
+ return sdkResponse;
15897
+ }
15898
+ catch (err) {
15899
+ throw err;
15900
+ }
15901
+ });
15902
+ }
15843
15903
  /**
15844
15904
  * Moves a BYOIP CIDR block to a different compartment. For information
15845
15905
  * about moving resources between compartments, see
@@ -17456,6 +17516,70 @@ class VirtualNetworkClient {
17456
17516
  }
17457
17517
  });
17458
17518
  }
17519
+ /**
17520
+ * Creates a BYOASN Resource
17521
+ *
17522
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
17523
+ * @param CreateByoasnRequest
17524
+ * @return CreateByoasnResponse
17525
+ * @throws OciError when an error occurs
17526
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/CreateByoasn.ts.html |here} to see how to use CreateByoasn API.
17527
+ */
17528
+ createByoasn(createByoasnRequest) {
17529
+ return __awaiter(this, void 0, void 0, function* () {
17530
+ if (this.logger)
17531
+ this.logger.debug("Calling operation VirtualNetworkClient#createByoasn.");
17532
+ const operationName = "createByoasn";
17533
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Byoasn/CreateByoasn";
17534
+ const pathParams = {};
17535
+ const queryParams = {};
17536
+ let headerParams = {
17537
+ "Content-Type": common.Constants.APPLICATION_JSON,
17538
+ "opc-request-id": createByoasnRequest.opcRequestId,
17539
+ "opc-retry-token": createByoasnRequest.opcRetryToken
17540
+ };
17541
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
17542
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createByoasnRequest.retryConfiguration, specRetryConfiguration);
17543
+ if (this.logger)
17544
+ retrier.logger = this.logger;
17545
+ const request = yield oci_common_2.composeRequest({
17546
+ baseEndpoint: this._endpoint,
17547
+ defaultHeaders: this._defaultHeaders,
17548
+ path: "/byoasns",
17549
+ method: "POST",
17550
+ bodyContent: common.ObjectSerializer.serialize(createByoasnRequest.createByoasnDetails, "CreateByoasnDetails", model.CreateByoasnDetails.getJsonObj),
17551
+ pathParams: pathParams,
17552
+ headerParams: headerParams,
17553
+ queryParams: queryParams
17554
+ });
17555
+ try {
17556
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
17557
+ const sdkResponse = oci_common_2.composeResponse({
17558
+ responseObject: {},
17559
+ body: yield response.json(),
17560
+ bodyKey: "byoasn",
17561
+ bodyModel: model.Byoasn,
17562
+ type: "model.Byoasn",
17563
+ responseHeaders: [
17564
+ {
17565
+ value: response.headers.get("etag"),
17566
+ key: "etag",
17567
+ dataType: "string"
17568
+ },
17569
+ {
17570
+ value: response.headers.get("opc-request-id"),
17571
+ key: "opcRequestId",
17572
+ dataType: "string"
17573
+ }
17574
+ ]
17575
+ });
17576
+ return sdkResponse;
17577
+ }
17578
+ catch (err) {
17579
+ throw err;
17580
+ }
17581
+ });
17582
+ }
17459
17583
  /**
17460
17584
  * Creates a subrange of the BYOIP CIDR block.
17461
17585
  *
@@ -19508,6 +19632,65 @@ class VirtualNetworkClient {
19508
19632
  }
19509
19633
  });
19510
19634
  }
19635
+ /**
19636
+ * Deletes the specified `Byoasn` resource.
19637
+ * The resource must be in one of the following states: CREATING, ACTIVE or FAILED.
19638
+ * It must not be in use by any of the byoipRanges or deletion will fail.
19639
+ * You must specify the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
19640
+ *
19641
+ * This operation does not retry by default if the user has not defined a retry configuration.
19642
+ * @param DeleteByoasnRequest
19643
+ * @return DeleteByoasnResponse
19644
+ * @throws OciError when an error occurs
19645
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/DeleteByoasn.ts.html |here} to see how to use DeleteByoasn API.
19646
+ */
19647
+ deleteByoasn(deleteByoasnRequest) {
19648
+ return __awaiter(this, void 0, void 0, function* () {
19649
+ if (this.logger)
19650
+ this.logger.debug("Calling operation VirtualNetworkClient#deleteByoasn.");
19651
+ const operationName = "deleteByoasn";
19652
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Byoasn/DeleteByoasn";
19653
+ const pathParams = {
19654
+ "{byoasnId}": deleteByoasnRequest.byoasnId
19655
+ };
19656
+ const queryParams = {};
19657
+ let headerParams = {
19658
+ "Content-Type": common.Constants.APPLICATION_JSON,
19659
+ "opc-request-id": deleteByoasnRequest.opcRequestId,
19660
+ "if-match": deleteByoasnRequest.ifMatch
19661
+ };
19662
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
19663
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteByoasnRequest.retryConfiguration, specRetryConfiguration);
19664
+ if (this.logger)
19665
+ retrier.logger = this.logger;
19666
+ const request = yield oci_common_2.composeRequest({
19667
+ baseEndpoint: this._endpoint,
19668
+ defaultHeaders: this._defaultHeaders,
19669
+ path: "/byoasns/{byoasnId}",
19670
+ method: "DELETE",
19671
+ pathParams: pathParams,
19672
+ headerParams: headerParams,
19673
+ queryParams: queryParams
19674
+ });
19675
+ try {
19676
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
19677
+ const sdkResponse = oci_common_2.composeResponse({
19678
+ responseObject: {},
19679
+ responseHeaders: [
19680
+ {
19681
+ value: response.headers.get("opc-request-id"),
19682
+ key: "opcRequestId",
19683
+ dataType: "string"
19684
+ }
19685
+ ]
19686
+ });
19687
+ return sdkResponse;
19688
+ }
19689
+ catch (err) {
19690
+ throw err;
19691
+ }
19692
+ });
19693
+ }
19511
19694
  /**
19512
19695
  * Deletes the specified `ByoipRange` resource.
19513
19696
  * The resource must be in one of the following states: CREATING, PROVISIONED, ACTIVE, or FAILED.
@@ -21397,6 +21580,70 @@ class VirtualNetworkClient {
21397
21580
  }
21398
21581
  });
21399
21582
  }
21583
+ /**
21584
+ * Gets the `Byoasn` resource. You must specify the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
21585
+ *
21586
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
21587
+ * @param GetByoasnRequest
21588
+ * @return GetByoasnResponse
21589
+ * @throws OciError when an error occurs
21590
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetByoasn.ts.html |here} to see how to use GetByoasn API.
21591
+ */
21592
+ getByoasn(getByoasnRequest) {
21593
+ return __awaiter(this, void 0, void 0, function* () {
21594
+ if (this.logger)
21595
+ this.logger.debug("Calling operation VirtualNetworkClient#getByoasn.");
21596
+ const operationName = "getByoasn";
21597
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Byoasn/GetByoasn";
21598
+ const pathParams = {
21599
+ "{byoasnId}": getByoasnRequest.byoasnId
21600
+ };
21601
+ const queryParams = {};
21602
+ let headerParams = {
21603
+ "Content-Type": common.Constants.APPLICATION_JSON,
21604
+ "opc-request-id": getByoasnRequest.opcRequestId
21605
+ };
21606
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
21607
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getByoasnRequest.retryConfiguration, specRetryConfiguration);
21608
+ if (this.logger)
21609
+ retrier.logger = this.logger;
21610
+ const request = yield oci_common_2.composeRequest({
21611
+ baseEndpoint: this._endpoint,
21612
+ defaultHeaders: this._defaultHeaders,
21613
+ path: "/byoasns/{byoasnId}",
21614
+ method: "GET",
21615
+ pathParams: pathParams,
21616
+ headerParams: headerParams,
21617
+ queryParams: queryParams
21618
+ });
21619
+ try {
21620
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
21621
+ const sdkResponse = oci_common_2.composeResponse({
21622
+ responseObject: {},
21623
+ body: yield response.json(),
21624
+ bodyKey: "byoasn",
21625
+ bodyModel: model.Byoasn,
21626
+ type: "model.Byoasn",
21627
+ responseHeaders: [
21628
+ {
21629
+ value: response.headers.get("etag"),
21630
+ key: "etag",
21631
+ dataType: "string"
21632
+ },
21633
+ {
21634
+ value: response.headers.get("opc-request-id"),
21635
+ key: "opcRequestId",
21636
+ dataType: "string"
21637
+ }
21638
+ ]
21639
+ });
21640
+ return sdkResponse;
21641
+ }
21642
+ catch (err) {
21643
+ throw err;
21644
+ }
21645
+ });
21646
+ }
21400
21647
  /**
21401
21648
  * Gets the `ByoipRange` resource. You must specify the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
21402
21649
  *
@@ -25090,6 +25337,77 @@ class VirtualNetworkClient {
25090
25337
  }
25091
25338
  });
25092
25339
  }
25340
+ /**
25341
+ * Lists the `Byoasn` resources in the specified compartment.
25342
+ * You can filter the list using query parameters.
25343
+ *
25344
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
25345
+ * @param ListByoasnsRequest
25346
+ * @return ListByoasnsResponse
25347
+ * @throws OciError when an error occurs
25348
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListByoasns.ts.html |here} to see how to use ListByoasns API.
25349
+ */
25350
+ listByoasns(listByoasnsRequest) {
25351
+ return __awaiter(this, void 0, void 0, function* () {
25352
+ if (this.logger)
25353
+ this.logger.debug("Calling operation VirtualNetworkClient#listByoasns.");
25354
+ const operationName = "listByoasns";
25355
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Byoasn/ListByoasns";
25356
+ const pathParams = {};
25357
+ const queryParams = {
25358
+ "limit": listByoasnsRequest.limit,
25359
+ "page": listByoasnsRequest.page,
25360
+ "displayName": listByoasnsRequest.displayName,
25361
+ "lifecycleState": listByoasnsRequest.lifecycleState,
25362
+ "sortBy": listByoasnsRequest.sortBy,
25363
+ "sortOrder": listByoasnsRequest.sortOrder,
25364
+ "compartmentId": listByoasnsRequest.compartmentId
25365
+ };
25366
+ let headerParams = {
25367
+ "Content-Type": common.Constants.APPLICATION_JSON,
25368
+ "opc-request-id": listByoasnsRequest.opcRequestId
25369
+ };
25370
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
25371
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listByoasnsRequest.retryConfiguration, specRetryConfiguration);
25372
+ if (this.logger)
25373
+ retrier.logger = this.logger;
25374
+ const request = yield oci_common_2.composeRequest({
25375
+ baseEndpoint: this._endpoint,
25376
+ defaultHeaders: this._defaultHeaders,
25377
+ path: "/byoasns",
25378
+ method: "GET",
25379
+ pathParams: pathParams,
25380
+ headerParams: headerParams,
25381
+ queryParams: queryParams
25382
+ });
25383
+ try {
25384
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
25385
+ const sdkResponse = oci_common_2.composeResponse({
25386
+ responseObject: {},
25387
+ body: yield response.json(),
25388
+ bodyKey: "byoasnCollection",
25389
+ bodyModel: model.ByoasnCollection,
25390
+ type: "model.ByoasnCollection",
25391
+ responseHeaders: [
25392
+ {
25393
+ value: response.headers.get("opc-next-page"),
25394
+ key: "opcNextPage",
25395
+ dataType: "string"
25396
+ },
25397
+ {
25398
+ value: response.headers.get("opc-request-id"),
25399
+ key: "opcRequestId",
25400
+ dataType: "string"
25401
+ }
25402
+ ]
25403
+ });
25404
+ return sdkResponse;
25405
+ }
25406
+ catch (err) {
25407
+ throw err;
25408
+ }
25409
+ });
25410
+ }
25093
25411
  /**
25094
25412
  * Lists the subranges of a BYOIP CIDR block currently allocated to an IP pool.
25095
25413
  * Each `ByoipAllocatedRange` object also lists the IP pool where it is allocated.
@@ -30684,6 +31002,191 @@ class VirtualNetworkClient {
30684
31002
  }
30685
31003
  });
30686
31004
  }
31005
+ /**
31006
+ * Update BYOIP's origin ASN to byoasn.
31007
+ *
31008
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
31009
+ * @param SetOriginAsnRequest
31010
+ * @return SetOriginAsnResponse
31011
+ * @throws OciError when an error occurs
31012
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/SetOriginAsn.ts.html |here} to see how to use SetOriginAsn API.
31013
+ */
31014
+ setOriginAsn(setOriginAsnRequest) {
31015
+ return __awaiter(this, void 0, void 0, function* () {
31016
+ if (this.logger)
31017
+ this.logger.debug("Calling operation VirtualNetworkClient#setOriginAsn.");
31018
+ const operationName = "setOriginAsn";
31019
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/SetOriginAsn";
31020
+ const pathParams = {
31021
+ "{byoipRangeId}": setOriginAsnRequest.byoipRangeId
31022
+ };
31023
+ const queryParams = {};
31024
+ let headerParams = {
31025
+ "Content-Type": common.Constants.APPLICATION_JSON,
31026
+ "opc-request-id": setOriginAsnRequest.opcRequestId,
31027
+ "opc-retry-token": setOriginAsnRequest.opcRetryToken,
31028
+ "if-match": setOriginAsnRequest.ifMatch
31029
+ };
31030
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
31031
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, setOriginAsnRequest.retryConfiguration, specRetryConfiguration);
31032
+ if (this.logger)
31033
+ retrier.logger = this.logger;
31034
+ const request = yield oci_common_2.composeRequest({
31035
+ baseEndpoint: this._endpoint,
31036
+ defaultHeaders: this._defaultHeaders,
31037
+ path: "/byoipRanges/{byoipRangeId}/actions/setOrigin/byoasn",
31038
+ method: "POST",
31039
+ bodyContent: common.ObjectSerializer.serialize(setOriginAsnRequest.setOriginAsnDetails, "SetOriginAsnDetails", model.SetOriginAsnDetails.getJsonObj),
31040
+ pathParams: pathParams,
31041
+ headerParams: headerParams,
31042
+ queryParams: queryParams
31043
+ });
31044
+ try {
31045
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
31046
+ const sdkResponse = oci_common_2.composeResponse({
31047
+ responseObject: {},
31048
+ responseHeaders: [
31049
+ {
31050
+ value: response.headers.get("opc-work-request-id"),
31051
+ key: "opcWorkRequestId",
31052
+ dataType: "string"
31053
+ },
31054
+ {
31055
+ value: response.headers.get("opc-request-id"),
31056
+ key: "opcRequestId",
31057
+ dataType: "string"
31058
+ }
31059
+ ]
31060
+ });
31061
+ return sdkResponse;
31062
+ }
31063
+ catch (err) {
31064
+ throw err;
31065
+ }
31066
+ });
31067
+ }
31068
+ /**
31069
+ * Update prefix's origin ASN to OCI
31070
+ *
31071
+ * This operation does not retry by default if the user has not defined a retry configuration.
31072
+ * @param SetOriginAsnToOracleRequest
31073
+ * @return SetOriginAsnToOracleResponse
31074
+ * @throws OciError when an error occurs
31075
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/SetOriginAsnToOracle.ts.html |here} to see how to use SetOriginAsnToOracle API.
31076
+ */
31077
+ setOriginAsnToOracle(setOriginAsnToOracleRequest) {
31078
+ return __awaiter(this, void 0, void 0, function* () {
31079
+ if (this.logger)
31080
+ this.logger.debug("Calling operation VirtualNetworkClient#setOriginAsnToOracle.");
31081
+ const operationName = "setOriginAsnToOracle";
31082
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/SetOriginAsnToOracle";
31083
+ const pathParams = {
31084
+ "{byoipRangeId}": setOriginAsnToOracleRequest.byoipRangeId
31085
+ };
31086
+ const queryParams = {};
31087
+ let headerParams = {
31088
+ "Content-Type": common.Constants.APPLICATION_JSON,
31089
+ "opc-request-id": setOriginAsnToOracleRequest.opcRequestId,
31090
+ "if-match": setOriginAsnToOracleRequest.ifMatch
31091
+ };
31092
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
31093
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, setOriginAsnToOracleRequest.retryConfiguration, specRetryConfiguration);
31094
+ if (this.logger)
31095
+ retrier.logger = this.logger;
31096
+ const request = yield oci_common_2.composeRequest({
31097
+ baseEndpoint: this._endpoint,
31098
+ defaultHeaders: this._defaultHeaders,
31099
+ path: "/byoipRanges/{byoipRangeId}/actions/setOrigin/oracleAsn",
31100
+ method: "POST",
31101
+ pathParams: pathParams,
31102
+ headerParams: headerParams,
31103
+ queryParams: queryParams
31104
+ });
31105
+ try {
31106
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
31107
+ const sdkResponse = oci_common_2.composeResponse({
31108
+ responseObject: {},
31109
+ responseHeaders: [
31110
+ {
31111
+ value: response.headers.get("opc-request-id"),
31112
+ key: "opcRequestId",
31113
+ dataType: "string"
31114
+ }
31115
+ ]
31116
+ });
31117
+ return sdkResponse;
31118
+ }
31119
+ catch (err) {
31120
+ throw err;
31121
+ }
31122
+ });
31123
+ }
31124
+ /**
31125
+ * Updates the tags or display name associated with the specified BYOASN Resource.
31126
+ *
31127
+ * This operation does not retry by default if the user has not defined a retry configuration.
31128
+ * @param UpdateByoasnRequest
31129
+ * @return UpdateByoasnResponse
31130
+ * @throws OciError when an error occurs
31131
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateByoasn.ts.html |here} to see how to use UpdateByoasn API.
31132
+ */
31133
+ updateByoasn(updateByoasnRequest) {
31134
+ return __awaiter(this, void 0, void 0, function* () {
31135
+ if (this.logger)
31136
+ this.logger.debug("Calling operation VirtualNetworkClient#updateByoasn.");
31137
+ const operationName = "updateByoasn";
31138
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Byoasn/UpdateByoasn";
31139
+ const pathParams = {
31140
+ "{byoasnId}": updateByoasnRequest.byoasnId
31141
+ };
31142
+ const queryParams = {};
31143
+ let headerParams = {
31144
+ "Content-Type": common.Constants.APPLICATION_JSON,
31145
+ "opc-request-id": updateByoasnRequest.opcRequestId,
31146
+ "if-match": updateByoasnRequest.ifMatch
31147
+ };
31148
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
31149
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateByoasnRequest.retryConfiguration, specRetryConfiguration);
31150
+ if (this.logger)
31151
+ retrier.logger = this.logger;
31152
+ const request = yield oci_common_2.composeRequest({
31153
+ baseEndpoint: this._endpoint,
31154
+ defaultHeaders: this._defaultHeaders,
31155
+ path: "/byoasns/{byoasnId}",
31156
+ method: "PUT",
31157
+ bodyContent: common.ObjectSerializer.serialize(updateByoasnRequest.updateByoasnDetails, "UpdateByoasnDetails", model.UpdateByoasnDetails.getJsonObj),
31158
+ pathParams: pathParams,
31159
+ headerParams: headerParams,
31160
+ queryParams: queryParams
31161
+ });
31162
+ try {
31163
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
31164
+ const sdkResponse = oci_common_2.composeResponse({
31165
+ responseObject: {},
31166
+ body: yield response.json(),
31167
+ bodyKey: "byoasn",
31168
+ bodyModel: model.Byoasn,
31169
+ type: "model.Byoasn",
31170
+ responseHeaders: [
31171
+ {
31172
+ value: response.headers.get("etag"),
31173
+ key: "etag",
31174
+ dataType: "string"
31175
+ },
31176
+ {
31177
+ value: response.headers.get("opc-request-id"),
31178
+ key: "opcRequestId",
31179
+ dataType: "string"
31180
+ }
31181
+ ]
31182
+ });
31183
+ return sdkResponse;
31184
+ }
31185
+ catch (err) {
31186
+ throw err;
31187
+ }
31188
+ });
31189
+ }
30687
31190
  /**
30688
31191
  * Updates the tags or display name associated to the specified BYOIP CIDR block.
30689
31192
  *
@@ -33146,6 +33649,69 @@ class VirtualNetworkClient {
33146
33649
  }
33147
33650
  });
33148
33651
  }
33652
+ /**
33653
+ * Submits the BYOASN for validation. Please do not submit to Oracle for validation if the information for the BYOASN is not already modified in the Regional Internet Registry.
33654
+ * See [To import a BYOASN](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOASN.htm) for details.
33655
+ *
33656
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
33657
+ * @param ValidateByoasnRequest
33658
+ * @return ValidateByoasnResponse
33659
+ * @throws OciError when an error occurs
33660
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ValidateByoasn.ts.html |here} to see how to use ValidateByoasn API.
33661
+ */
33662
+ validateByoasn(validateByoasnRequest) {
33663
+ return __awaiter(this, void 0, void 0, function* () {
33664
+ if (this.logger)
33665
+ this.logger.debug("Calling operation VirtualNetworkClient#validateByoasn.");
33666
+ const operationName = "validateByoasn";
33667
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Byoasn/ValidateByoasn";
33668
+ const pathParams = {
33669
+ "{byoasnId}": validateByoasnRequest.byoasnId
33670
+ };
33671
+ const queryParams = {};
33672
+ let headerParams = {
33673
+ "Content-Type": common.Constants.APPLICATION_JSON,
33674
+ "opc-request-id": validateByoasnRequest.opcRequestId,
33675
+ "if-match": validateByoasnRequest.ifMatch,
33676
+ "opc-retry-token": validateByoasnRequest.opcRetryToken
33677
+ };
33678
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
33679
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateByoasnRequest.retryConfiguration, specRetryConfiguration);
33680
+ if (this.logger)
33681
+ retrier.logger = this.logger;
33682
+ const request = yield oci_common_2.composeRequest({
33683
+ baseEndpoint: this._endpoint,
33684
+ defaultHeaders: this._defaultHeaders,
33685
+ path: "/byoasns/{byoasnId}/actions/validate",
33686
+ method: "POST",
33687
+ pathParams: pathParams,
33688
+ headerParams: headerParams,
33689
+ queryParams: queryParams
33690
+ });
33691
+ try {
33692
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
33693
+ const sdkResponse = oci_common_2.composeResponse({
33694
+ responseObject: {},
33695
+ responseHeaders: [
33696
+ {
33697
+ value: response.headers.get("opc-request-id"),
33698
+ key: "opcRequestId",
33699
+ dataType: "string"
33700
+ },
33701
+ {
33702
+ value: response.headers.get("opc-work-request-id"),
33703
+ key: "opcWorkRequestId",
33704
+ dataType: "string"
33705
+ }
33706
+ ]
33707
+ });
33708
+ return sdkResponse;
33709
+ }
33710
+ catch (err) {
33711
+ throw err;
33712
+ }
33713
+ });
33714
+ }
33149
33715
  /**
33150
33716
  * Submits the BYOIP CIDR block you are importing for validation. Do not submit to Oracle for validation if you have not already
33151
33717
  * modified the information for the BYOIP CIDR block with your Regional Internet Registry. See [To import a CIDR block](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details.