oci-core 2.142.0 → 2.142.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +175 -0
- package/lib/client.js +858 -30
- package/lib/client.js.map +1 -1
- package/lib/model/add-drg-nat-rule-details.d.ts +69 -0
- package/lib/model/add-drg-nat-rule-details.js +36 -0
- package/lib/model/add-drg-nat-rule-details.js.map +1 -0
- package/lib/model/add-drg-nat-rules-details.d.ts +35 -0
- package/lib/model/add-drg-nat-rules-details.js +68 -0
- package/lib/model/add-drg-nat-rules-details.js.map +1 -0
- package/lib/model/change-drg-nat-policy-compartment-details.d.ts +33 -0
- package/lib/model/change-drg-nat-policy-compartment-details.js +36 -0
- package/lib/model/change-drg-nat-policy-compartment-details.js.map +1 -0
- package/lib/model/create-drg-attachment-details.d.ts +12 -0
- package/lib/model/create-drg-attachment-details.js.map +1 -1
- package/lib/model/create-drg-nat-policy-details.d.ts +62 -0
- package/lib/model/create-drg-nat-policy-details.js +36 -0
- package/lib/model/create-drg-nat-policy-details.js.map +1 -0
- package/lib/model/drg-attachment.d.ts +12 -0
- package/lib/model/drg-attachment.js.map +1 -1
- package/lib/model/drg-nat-policy.d.ts +100 -0
- package/lib/model/drg-nat-policy.js +50 -0
- package/lib/model/drg-nat-policy.js.map +1 -0
- package/lib/model/drg-nat-rule.d.ts +78 -0
- package/lib/model/drg-nat-rule.js +36 -0
- package/lib/model/drg-nat-rule.js.map +1 -0
- package/lib/model/index.d.ts +20 -0
- package/lib/model/index.js +35 -15
- package/lib/model/index.js.map +1 -1
- package/lib/model/remove-drg-nat-rules-details.d.ts +34 -0
- package/lib/model/remove-drg-nat-rules-details.js +36 -0
- package/lib/model/remove-drg-nat-rules-details.js.map +1 -0
- package/lib/model/update-drg-attachment-details.d.ts +12 -0
- package/lib/model/update-drg-attachment-details.js.map +1 -1
- package/lib/model/update-drg-nat-policy-details.d.ts +57 -0
- package/lib/model/update-drg-nat-policy-details.js +36 -0
- package/lib/model/update-drg-nat-policy-details.js.map +1 -0
- package/lib/model/update-drg-nat-rule-details.d.ts +74 -0
- package/lib/model/update-drg-nat-rule-details.js +36 -0
- package/lib/model/update-drg-nat-rule-details.js.map +1 -0
- package/lib/model/update-drg-nat-rules-details.d.ts +35 -0
- package/lib/model/update-drg-nat-rules-details.js +68 -0
- package/lib/model/update-drg-nat-rules-details.js.map +1 -0
- package/lib/request/add-drg-nat-rules-request.d.ts +49 -0
- package/lib/request/add-drg-nat-rules-request.js +15 -0
- package/lib/request/add-drg-nat-rules-request.js.map +1 -0
- package/lib/request/change-drg-nat-policy-compartment-request.d.ts +49 -0
- package/lib/request/change-drg-nat-policy-compartment-request.js +15 -0
- package/lib/request/change-drg-nat-policy-compartment-request.js.map +1 -0
- package/lib/request/create-drg-nat-policy-request.d.ts +38 -0
- package/lib/request/create-drg-nat-policy-request.js +15 -0
- package/lib/request/create-drg-nat-policy-request.js.map +1 -0
- package/lib/request/delete-drg-nat-policy-request.d.ts +35 -0
- package/lib/request/delete-drg-nat-policy-request.js +15 -0
- package/lib/request/delete-drg-nat-policy-request.js.map +1 -0
- package/lib/request/get-drg-nat-policy-request.d.ts +28 -0
- package/lib/request/get-drg-nat-policy-request.js +15 -0
- package/lib/request/get-drg-nat-policy-request.js.map +1 -0
- package/lib/request/index.d.ts +22 -0
- package/lib/request/index.js +5 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-drg-attachments-request.d.ts +4 -0
- package/lib/request/list-drg-attachments-request.js.map +1 -1
- package/lib/request/list-drg-nat-policies-request.d.ts +77 -0
- package/lib/request/list-drg-nat-policies-request.js +29 -0
- package/lib/request/list-drg-nat-policies-request.js.map +1 -0
- package/lib/request/list-drg-nat-rules-request.d.ts +53 -0
- package/lib/request/list-drg-nat-rules-request.js +23 -0
- package/lib/request/list-drg-nat-rules-request.js.map +1 -0
- package/lib/request/remove-drg-nat-policy-request.d.ts +29 -0
- package/lib/request/remove-drg-nat-policy-request.js +15 -0
- package/lib/request/remove-drg-nat-policy-request.js.map +1 -0
- package/lib/request/remove-drg-nat-rules-request.d.ts +50 -0
- package/lib/request/remove-drg-nat-rules-request.js +15 -0
- package/lib/request/remove-drg-nat-rules-request.js.map +1 -0
- package/lib/request/update-drg-nat-policy-request.d.ts +40 -0
- package/lib/request/update-drg-nat-policy-request.js +15 -0
- package/lib/request/update-drg-nat-policy-request.js.map +1 -0
- package/lib/request/update-drg-nat-rules-request.d.ts +50 -0
- package/lib/request/update-drg-nat-rules-request.js +15 -0
- package/lib/request/update-drg-nat-rules-request.js.map +1 -0
- package/lib/response/add-drg-nat-rules-response.d.ts +27 -0
- package/lib/response/add-drg-nat-rules-response.js +15 -0
- package/lib/response/add-drg-nat-rules-response.js.map +1 -0
- package/lib/response/change-drg-nat-policy-compartment-response.d.ts +20 -0
- package/lib/response/change-drg-nat-policy-compartment-response.js +15 -0
- package/lib/response/change-drg-nat-policy-compartment-response.js.map +1 -0
- package/lib/response/create-drg-nat-policy-response.d.ts +40 -0
- package/lib/response/create-drg-nat-policy-response.js +15 -0
- package/lib/response/create-drg-nat-policy-response.js.map +1 -0
- package/lib/response/delete-drg-nat-policy-response.d.ts +27 -0
- package/lib/response/delete-drg-nat-policy-response.js +15 -0
- package/lib/response/delete-drg-nat-policy-response.js.map +1 -0
- package/lib/response/get-drg-nat-policy-response.d.ts +30 -0
- package/lib/response/get-drg-nat-policy-response.js +15 -0
- package/lib/response/get-drg-nat-policy-response.js.map +1 -0
- package/lib/response/index.d.ts +22 -0
- package/lib/response/list-drg-nat-policies-response.d.ts +32 -0
- package/lib/response/list-drg-nat-policies-response.js +15 -0
- package/lib/response/list-drg-nat-policies-response.js.map +1 -0
- package/lib/response/list-drg-nat-rules-response.d.ts +32 -0
- package/lib/response/list-drg-nat-rules-response.js +15 -0
- package/lib/response/list-drg-nat-rules-response.js.map +1 -0
- package/lib/response/remove-drg-nat-policy-response.d.ts +30 -0
- package/lib/response/remove-drg-nat-policy-response.js +15 -0
- package/lib/response/remove-drg-nat-policy-response.js.map +1 -0
- package/lib/response/remove-drg-nat-rules-response.d.ts +27 -0
- package/lib/response/remove-drg-nat-rules-response.js +15 -0
- package/lib/response/remove-drg-nat-rules-response.js.map +1 -0
- package/lib/response/update-drg-nat-policy-response.d.ts +30 -0
- package/lib/response/update-drg-nat-policy-response.js +15 -0
- package/lib/response/update-drg-nat-policy-response.js.map +1 -0
- package/lib/response/update-drg-nat-rules-response.d.ts +27 -0
- package/lib/response/update-drg-nat-rules-response.js +15 -0
- package/lib/response/update-drg-nat-rules-response.js.map +1 -0
- package/lib/virtualnetwork-waiter.d.ts +48 -0
- package/lib/virtualnetwork-waiter.js +72 -0
- package/lib/virtualnetwork-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -17753,6 +17753,72 @@ class VirtualNetworkClient {
|
|
|
17753
17753
|
this.shutdownCircuitBreaker();
|
|
17754
17754
|
this.closeProvider();
|
|
17755
17755
|
}
|
|
17756
|
+
/**
|
|
17757
|
+
* Adds DRG NAT rules to the specified DRG NAT policy.
|
|
17758
|
+
*
|
|
17759
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
17760
|
+
* @param AddDrgNatRulesRequest
|
|
17761
|
+
* @return AddDrgNatRulesResponse
|
|
17762
|
+
* @throws OciError when an error occurs
|
|
17763
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/AddDrgNatRules.ts.html |here} to see how to use AddDrgNatRules API.
|
|
17764
|
+
*/
|
|
17765
|
+
addDrgNatRules(addDrgNatRulesRequest) {
|
|
17766
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17767
|
+
if (this.logger)
|
|
17768
|
+
this.logger.debug("Calling operation VirtualNetworkClient#addDrgNatRules.");
|
|
17769
|
+
const operationName = "addDrgNatRules";
|
|
17770
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/AddDrgNatRules";
|
|
17771
|
+
const pathParams = {
|
|
17772
|
+
"{drgNatPolicyId}": addDrgNatRulesRequest.drgNatPolicyId
|
|
17773
|
+
};
|
|
17774
|
+
const queryParams = {};
|
|
17775
|
+
let headerParams = {
|
|
17776
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
17777
|
+
"opc-retry-token": addDrgNatRulesRequest.opcRetryToken,
|
|
17778
|
+
"opc-request-id": addDrgNatRulesRequest.opcRequestId,
|
|
17779
|
+
"if-match": addDrgNatRulesRequest.ifMatch
|
|
17780
|
+
};
|
|
17781
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
17782
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
17783
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
17784
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
17785
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addDrgNatRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
17786
|
+
if (this.logger)
|
|
17787
|
+
retrier.logger = this.logger;
|
|
17788
|
+
const request = yield oci_common_2.composeRequest({
|
|
17789
|
+
baseEndpoint: endpoint,
|
|
17790
|
+
defaultHeaders: this._defaultHeaders,
|
|
17791
|
+
path: "/drgNatPolicies/{drgNatPolicyId}/actions/addDrgNatRules",
|
|
17792
|
+
method: "POST",
|
|
17793
|
+
bodyContent: common.ObjectSerializer.serialize(addDrgNatRulesRequest.addDrgNatRulesDetails, "AddDrgNatRulesDetails", model.AddDrgNatRulesDetails.getJsonObj),
|
|
17794
|
+
pathParams: pathParams,
|
|
17795
|
+
headerParams: headerParams,
|
|
17796
|
+
queryParams: queryParams
|
|
17797
|
+
});
|
|
17798
|
+
try {
|
|
17799
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
17800
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
17801
|
+
responseObject: {},
|
|
17802
|
+
responseHeaders: [
|
|
17803
|
+
{
|
|
17804
|
+
value: response.headers.get("opc-work-request-id"),
|
|
17805
|
+
key: "opcWorkRequestId",
|
|
17806
|
+
dataType: "string"
|
|
17807
|
+
},
|
|
17808
|
+
{
|
|
17809
|
+
value: response.headers.get("opc-request-id"),
|
|
17810
|
+
key: "opcRequestId",
|
|
17811
|
+
dataType: "string"
|
|
17812
|
+
}
|
|
17813
|
+
]
|
|
17814
|
+
});
|
|
17815
|
+
return sdkResponse;
|
|
17816
|
+
}
|
|
17817
|
+
catch (err) {
|
|
17818
|
+
throw err;
|
|
17819
|
+
}
|
|
17820
|
+
});
|
|
17821
|
+
}
|
|
17756
17822
|
/**
|
|
17757
17823
|
* Adds one or more route distribution statements to the specified route distribution.
|
|
17758
17824
|
*
|
|
@@ -19569,6 +19635,69 @@ class VirtualNetworkClient {
|
|
|
19569
19635
|
}
|
|
19570
19636
|
});
|
|
19571
19637
|
}
|
|
19638
|
+
/**
|
|
19639
|
+
* Moves a DrgNatPolicy into a different compartment within the same tenancy. For information
|
|
19640
|
+
* about moving resources between compartments, see
|
|
19641
|
+
* [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
19642
|
+
*
|
|
19643
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
19644
|
+
* @param ChangeDrgNatPolicyCompartmentRequest
|
|
19645
|
+
* @return ChangeDrgNatPolicyCompartmentResponse
|
|
19646
|
+
* @throws OciError when an error occurs
|
|
19647
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeDrgNatPolicyCompartment.ts.html |here} to see how to use ChangeDrgNatPolicyCompartment API.
|
|
19648
|
+
*/
|
|
19649
|
+
changeDrgNatPolicyCompartment(changeDrgNatPolicyCompartmentRequest) {
|
|
19650
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19651
|
+
if (this.logger)
|
|
19652
|
+
this.logger.debug("Calling operation VirtualNetworkClient#changeDrgNatPolicyCompartment.");
|
|
19653
|
+
const operationName = "changeDrgNatPolicyCompartment";
|
|
19654
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/ChangeDrgNatPolicyCompartment";
|
|
19655
|
+
const pathParams = {
|
|
19656
|
+
"{drgNatPolicyId}": changeDrgNatPolicyCompartmentRequest.drgNatPolicyId
|
|
19657
|
+
};
|
|
19658
|
+
const queryParams = {};
|
|
19659
|
+
let headerParams = {
|
|
19660
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
19661
|
+
"if-match": changeDrgNatPolicyCompartmentRequest.ifMatch,
|
|
19662
|
+
"opc-request-id": changeDrgNatPolicyCompartmentRequest.opcRequestId,
|
|
19663
|
+
"opc-retry-token": changeDrgNatPolicyCompartmentRequest.opcRetryToken
|
|
19664
|
+
};
|
|
19665
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
19666
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
19667
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
19668
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
19669
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDrgNatPolicyCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
19670
|
+
if (this.logger)
|
|
19671
|
+
retrier.logger = this.logger;
|
|
19672
|
+
const request = yield oci_common_2.composeRequest({
|
|
19673
|
+
baseEndpoint: endpoint,
|
|
19674
|
+
defaultHeaders: this._defaultHeaders,
|
|
19675
|
+
path: "/drgNatPolicies/{drgNatPolicyId}/actions/changeCompartment",
|
|
19676
|
+
method: "POST",
|
|
19677
|
+
bodyContent: common.ObjectSerializer.serialize(changeDrgNatPolicyCompartmentRequest.changeDrgNatPolicyCompartmentDetails, "ChangeDrgNatPolicyCompartmentDetails", model.ChangeDrgNatPolicyCompartmentDetails.getJsonObj),
|
|
19678
|
+
pathParams: pathParams,
|
|
19679
|
+
headerParams: headerParams,
|
|
19680
|
+
queryParams: queryParams
|
|
19681
|
+
});
|
|
19682
|
+
try {
|
|
19683
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
19684
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
19685
|
+
responseObject: {},
|
|
19686
|
+
responseHeaders: [
|
|
19687
|
+
{
|
|
19688
|
+
value: response.headers.get("opc-request-id"),
|
|
19689
|
+
key: "opcRequestId",
|
|
19690
|
+
dataType: "string"
|
|
19691
|
+
}
|
|
19692
|
+
]
|
|
19693
|
+
});
|
|
19694
|
+
return sdkResponse;
|
|
19695
|
+
}
|
|
19696
|
+
catch (err) {
|
|
19697
|
+
throw err;
|
|
19698
|
+
}
|
|
19699
|
+
});
|
|
19700
|
+
}
|
|
19572
19701
|
/**
|
|
19573
19702
|
* Moves an IPSec connection into a different compartment within the same tenancy. For information
|
|
19574
19703
|
* about moving resources between compartments, see
|
|
@@ -21468,6 +21597,84 @@ class VirtualNetworkClient {
|
|
|
21468
21597
|
}
|
|
21469
21598
|
});
|
|
21470
21599
|
}
|
|
21600
|
+
/**
|
|
21601
|
+
* Creates a new DRG NAT policy. Assign the DRG NAT policy to a DRG attachment
|
|
21602
|
+
* using the `UpdateDrgAttachment` or `CreateDrgAttachment` operations.
|
|
21603
|
+
*
|
|
21604
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
21605
|
+
* @param CreateDrgNatPolicyRequest
|
|
21606
|
+
* @return CreateDrgNatPolicyResponse
|
|
21607
|
+
* @throws OciError when an error occurs
|
|
21608
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/CreateDrgNatPolicy.ts.html |here} to see how to use CreateDrgNatPolicy API.
|
|
21609
|
+
*/
|
|
21610
|
+
createDrgNatPolicy(createDrgNatPolicyRequest) {
|
|
21611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21612
|
+
if (this.logger)
|
|
21613
|
+
this.logger.debug("Calling operation VirtualNetworkClient#createDrgNatPolicy.");
|
|
21614
|
+
const operationName = "createDrgNatPolicy";
|
|
21615
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/CreateDrgNatPolicy";
|
|
21616
|
+
const pathParams = {};
|
|
21617
|
+
const queryParams = {};
|
|
21618
|
+
let headerParams = {
|
|
21619
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
21620
|
+
"opc-retry-token": createDrgNatPolicyRequest.opcRetryToken,
|
|
21621
|
+
"opc-request-id": createDrgNatPolicyRequest.opcRequestId
|
|
21622
|
+
};
|
|
21623
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
21624
|
+
const requiredParams = new Set([]);
|
|
21625
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
21626
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
21627
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDrgNatPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
21628
|
+
if (this.logger)
|
|
21629
|
+
retrier.logger = this.logger;
|
|
21630
|
+
const request = yield oci_common_2.composeRequest({
|
|
21631
|
+
baseEndpoint: endpoint,
|
|
21632
|
+
defaultHeaders: this._defaultHeaders,
|
|
21633
|
+
path: "/drgNatPolicies",
|
|
21634
|
+
method: "POST",
|
|
21635
|
+
bodyContent: common.ObjectSerializer.serialize(createDrgNatPolicyRequest.createDrgNatPolicyDetails, "CreateDrgNatPolicyDetails", model.CreateDrgNatPolicyDetails.getJsonObj),
|
|
21636
|
+
pathParams: pathParams,
|
|
21637
|
+
headerParams: headerParams,
|
|
21638
|
+
queryParams: queryParams
|
|
21639
|
+
});
|
|
21640
|
+
try {
|
|
21641
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
21642
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
21643
|
+
responseObject: {},
|
|
21644
|
+
body: yield response.json(),
|
|
21645
|
+
bodyKey: "drgNatPolicy",
|
|
21646
|
+
bodyModel: model.DrgNatPolicy,
|
|
21647
|
+
type: "model.DrgNatPolicy",
|
|
21648
|
+
responseHeaders: [
|
|
21649
|
+
{
|
|
21650
|
+
value: response.headers.get("etag"),
|
|
21651
|
+
key: "etag",
|
|
21652
|
+
dataType: "string"
|
|
21653
|
+
},
|
|
21654
|
+
{
|
|
21655
|
+
value: response.headers.get("opc-request-id"),
|
|
21656
|
+
key: "opcRequestId",
|
|
21657
|
+
dataType: "string"
|
|
21658
|
+
},
|
|
21659
|
+
{
|
|
21660
|
+
value: response.headers.get("location"),
|
|
21661
|
+
key: "location",
|
|
21662
|
+
dataType: "string"
|
|
21663
|
+
},
|
|
21664
|
+
{
|
|
21665
|
+
value: response.headers.get("content-location"),
|
|
21666
|
+
key: "contentLocation",
|
|
21667
|
+
dataType: "string"
|
|
21668
|
+
}
|
|
21669
|
+
]
|
|
21670
|
+
});
|
|
21671
|
+
return sdkResponse;
|
|
21672
|
+
}
|
|
21673
|
+
catch (err) {
|
|
21674
|
+
throw err;
|
|
21675
|
+
}
|
|
21676
|
+
});
|
|
21677
|
+
}
|
|
21471
21678
|
/**
|
|
21472
21679
|
* Creates a new route distribution for the specified DRG.
|
|
21473
21680
|
* Assign the route distribution as an import distribution to a DRG route table using the `UpdateDrgRouteTable` or `CreateDrgRouteTable` operations.
|
|
@@ -23540,6 +23747,70 @@ class VirtualNetworkClient {
|
|
|
23540
23747
|
}
|
|
23541
23748
|
});
|
|
23542
23749
|
}
|
|
23750
|
+
/**
|
|
23751
|
+
* Deletes the specified DRG NAT policy.
|
|
23752
|
+
*
|
|
23753
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
23754
|
+
* @param DeleteDrgNatPolicyRequest
|
|
23755
|
+
* @return DeleteDrgNatPolicyResponse
|
|
23756
|
+
* @throws OciError when an error occurs
|
|
23757
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/DeleteDrgNatPolicy.ts.html |here} to see how to use DeleteDrgNatPolicy API.
|
|
23758
|
+
*/
|
|
23759
|
+
deleteDrgNatPolicy(deleteDrgNatPolicyRequest) {
|
|
23760
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23761
|
+
if (this.logger)
|
|
23762
|
+
this.logger.debug("Calling operation VirtualNetworkClient#deleteDrgNatPolicy.");
|
|
23763
|
+
const operationName = "deleteDrgNatPolicy";
|
|
23764
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/DeleteDrgNatPolicy";
|
|
23765
|
+
const pathParams = {
|
|
23766
|
+
"{drgNatPolicyId}": deleteDrgNatPolicyRequest.drgNatPolicyId
|
|
23767
|
+
};
|
|
23768
|
+
const queryParams = {};
|
|
23769
|
+
let headerParams = {
|
|
23770
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
23771
|
+
"if-match": deleteDrgNatPolicyRequest.ifMatch,
|
|
23772
|
+
"opc-request-id": deleteDrgNatPolicyRequest.opcRequestId
|
|
23773
|
+
};
|
|
23774
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
23775
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
23776
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
23777
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
23778
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDrgNatPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
23779
|
+
if (this.logger)
|
|
23780
|
+
retrier.logger = this.logger;
|
|
23781
|
+
const request = yield oci_common_2.composeRequest({
|
|
23782
|
+
baseEndpoint: endpoint,
|
|
23783
|
+
defaultHeaders: this._defaultHeaders,
|
|
23784
|
+
path: "/drgNatPolicies/{drgNatPolicyId}",
|
|
23785
|
+
method: "DELETE",
|
|
23786
|
+
pathParams: pathParams,
|
|
23787
|
+
headerParams: headerParams,
|
|
23788
|
+
queryParams: queryParams
|
|
23789
|
+
});
|
|
23790
|
+
try {
|
|
23791
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
23792
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
23793
|
+
responseObject: {},
|
|
23794
|
+
responseHeaders: [
|
|
23795
|
+
{
|
|
23796
|
+
value: response.headers.get("opc-work-request-id"),
|
|
23797
|
+
key: "opcWorkRequestId",
|
|
23798
|
+
dataType: "string"
|
|
23799
|
+
},
|
|
23800
|
+
{
|
|
23801
|
+
value: response.headers.get("opc-request-id"),
|
|
23802
|
+
key: "opcRequestId",
|
|
23803
|
+
dataType: "string"
|
|
23804
|
+
}
|
|
23805
|
+
]
|
|
23806
|
+
});
|
|
23807
|
+
return sdkResponse;
|
|
23808
|
+
}
|
|
23809
|
+
catch (err) {
|
|
23810
|
+
throw err;
|
|
23811
|
+
}
|
|
23812
|
+
});
|
|
23813
|
+
}
|
|
23543
23814
|
/**
|
|
23544
23815
|
* Deletes the specified route distribution. You can't delete a route distribution currently in use by a DRG attachment or DRG route table.
|
|
23545
23816
|
* <p>
|
|
@@ -25898,40 +26169,38 @@ class VirtualNetworkClient {
|
|
|
25898
26169
|
});
|
|
25899
26170
|
}
|
|
25900
26171
|
/**
|
|
25901
|
-
* Gets the
|
|
25902
|
-
* [Redundancy Remedies](https://docs.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm).
|
|
25903
|
-
*
|
|
26172
|
+
* Gets the specified DRG NAT policy's information.
|
|
25904
26173
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
25905
|
-
* @param
|
|
25906
|
-
* @return
|
|
26174
|
+
* @param GetDrgNatPolicyRequest
|
|
26175
|
+
* @return GetDrgNatPolicyResponse
|
|
25907
26176
|
* @throws OciError when an error occurs
|
|
25908
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/
|
|
26177
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetDrgNatPolicy.ts.html |here} to see how to use GetDrgNatPolicy API.
|
|
25909
26178
|
*/
|
|
25910
|
-
|
|
26179
|
+
getDrgNatPolicy(getDrgNatPolicyRequest) {
|
|
25911
26180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25912
26181
|
if (this.logger)
|
|
25913
|
-
this.logger.debug("Calling operation VirtualNetworkClient#
|
|
25914
|
-
const operationName = "
|
|
25915
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
|
26182
|
+
this.logger.debug("Calling operation VirtualNetworkClient#getDrgNatPolicy.");
|
|
26183
|
+
const operationName = "getDrgNatPolicy";
|
|
26184
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/GetDrgNatPolicy";
|
|
25916
26185
|
const pathParams = {
|
|
25917
|
-
"{
|
|
26186
|
+
"{drgNatPolicyId}": getDrgNatPolicyRequest.drgNatPolicyId
|
|
25918
26187
|
};
|
|
25919
26188
|
const queryParams = {};
|
|
25920
26189
|
let headerParams = {
|
|
25921
26190
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
25922
|
-
"opc-request-id":
|
|
26191
|
+
"opc-request-id": getDrgNatPolicyRequest.opcRequestId
|
|
25923
26192
|
};
|
|
25924
26193
|
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
25925
|
-
const requiredParams = new Set(["
|
|
26194
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
25926
26195
|
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
25927
26196
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
25928
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
26197
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDrgNatPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
25929
26198
|
if (this.logger)
|
|
25930
26199
|
retrier.logger = this.logger;
|
|
25931
26200
|
const request = yield oci_common_2.composeRequest({
|
|
25932
26201
|
baseEndpoint: endpoint,
|
|
25933
26202
|
defaultHeaders: this._defaultHeaders,
|
|
25934
|
-
path: "/
|
|
26203
|
+
path: "/drgNatPolicies/{drgNatPolicyId}",
|
|
25935
26204
|
method: "GET",
|
|
25936
26205
|
pathParams: pathParams,
|
|
25937
26206
|
headerParams: headerParams,
|
|
@@ -25942,10 +26211,15 @@ class VirtualNetworkClient {
|
|
|
25942
26211
|
const sdkResponse = oci_common_2.composeResponse({
|
|
25943
26212
|
responseObject: {},
|
|
25944
26213
|
body: yield response.json(),
|
|
25945
|
-
bodyKey: "
|
|
25946
|
-
bodyModel: model.
|
|
25947
|
-
type: "model.
|
|
26214
|
+
bodyKey: "drgNatPolicy",
|
|
26215
|
+
bodyModel: model.DrgNatPolicy,
|
|
26216
|
+
type: "model.DrgNatPolicy",
|
|
25948
26217
|
responseHeaders: [
|
|
26218
|
+
{
|
|
26219
|
+
value: response.headers.get("etag"),
|
|
26220
|
+
key: "etag",
|
|
26221
|
+
dataType: "string"
|
|
26222
|
+
},
|
|
25949
26223
|
{
|
|
25950
26224
|
value: response.headers.get("opc-request-id"),
|
|
25951
26225
|
key: "opcRequestId",
|
|
@@ -25961,26 +26235,89 @@ class VirtualNetworkClient {
|
|
|
25961
26235
|
});
|
|
25962
26236
|
}
|
|
25963
26237
|
/**
|
|
25964
|
-
* Gets the specified
|
|
25965
|
-
*
|
|
25966
|
-
*
|
|
25967
|
-
* @
|
|
26238
|
+
* Gets the redundancy status for the specified DRG. For more information, see
|
|
26239
|
+
* [Redundancy Remedies](https://docs.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm).
|
|
26240
|
+
*
|
|
26241
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
26242
|
+
* @param GetDrgRedundancyStatusRequest
|
|
26243
|
+
* @return GetDrgRedundancyStatusResponse
|
|
25968
26244
|
* @throws OciError when an error occurs
|
|
25969
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/
|
|
26245
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetDrgRedundancyStatus.ts.html |here} to see how to use GetDrgRedundancyStatus API.
|
|
25970
26246
|
*/
|
|
25971
|
-
|
|
26247
|
+
getDrgRedundancyStatus(getDrgRedundancyStatusRequest) {
|
|
25972
26248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25973
26249
|
if (this.logger)
|
|
25974
|
-
this.logger.debug("Calling operation VirtualNetworkClient#
|
|
25975
|
-
const operationName = "
|
|
25976
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
|
26250
|
+
this.logger.debug("Calling operation VirtualNetworkClient#getDrgRedundancyStatus.");
|
|
26251
|
+
const operationName = "getDrgRedundancyStatus";
|
|
26252
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRedundancyStatus/GetDrgRedundancyStatus";
|
|
25977
26253
|
const pathParams = {
|
|
25978
|
-
"{
|
|
26254
|
+
"{drgId}": getDrgRedundancyStatusRequest.drgId
|
|
25979
26255
|
};
|
|
25980
26256
|
const queryParams = {};
|
|
25981
26257
|
let headerParams = {
|
|
25982
|
-
"Content-Type": common.Constants.APPLICATION_JSON
|
|
25983
|
-
|
|
26258
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
26259
|
+
"opc-request-id": getDrgRedundancyStatusRequest.opcRequestId
|
|
26260
|
+
};
|
|
26261
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
26262
|
+
const requiredParams = new Set(["drgId"]);
|
|
26263
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
26264
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
26265
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDrgRedundancyStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
26266
|
+
if (this.logger)
|
|
26267
|
+
retrier.logger = this.logger;
|
|
26268
|
+
const request = yield oci_common_2.composeRequest({
|
|
26269
|
+
baseEndpoint: endpoint,
|
|
26270
|
+
defaultHeaders: this._defaultHeaders,
|
|
26271
|
+
path: "/drgs/{drgId}/redundancyStatus",
|
|
26272
|
+
method: "GET",
|
|
26273
|
+
pathParams: pathParams,
|
|
26274
|
+
headerParams: headerParams,
|
|
26275
|
+
queryParams: queryParams
|
|
26276
|
+
});
|
|
26277
|
+
try {
|
|
26278
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
26279
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
26280
|
+
responseObject: {},
|
|
26281
|
+
body: yield response.json(),
|
|
26282
|
+
bodyKey: "drgRedundancyStatus",
|
|
26283
|
+
bodyModel: model.DrgRedundancyStatus,
|
|
26284
|
+
type: "model.DrgRedundancyStatus",
|
|
26285
|
+
responseHeaders: [
|
|
26286
|
+
{
|
|
26287
|
+
value: response.headers.get("opc-request-id"),
|
|
26288
|
+
key: "opcRequestId",
|
|
26289
|
+
dataType: "string"
|
|
26290
|
+
}
|
|
26291
|
+
]
|
|
26292
|
+
});
|
|
26293
|
+
return sdkResponse;
|
|
26294
|
+
}
|
|
26295
|
+
catch (err) {
|
|
26296
|
+
throw err;
|
|
26297
|
+
}
|
|
26298
|
+
});
|
|
26299
|
+
}
|
|
26300
|
+
/**
|
|
26301
|
+
* Gets the specified route distribution's information.
|
|
26302
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
26303
|
+
* @param GetDrgRouteDistributionRequest
|
|
26304
|
+
* @return GetDrgRouteDistributionResponse
|
|
26305
|
+
* @throws OciError when an error occurs
|
|
26306
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetDrgRouteDistribution.ts.html |here} to see how to use GetDrgRouteDistribution API.
|
|
26307
|
+
*/
|
|
26308
|
+
getDrgRouteDistribution(getDrgRouteDistributionRequest) {
|
|
26309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26310
|
+
if (this.logger)
|
|
26311
|
+
this.logger.debug("Calling operation VirtualNetworkClient#getDrgRouteDistribution.");
|
|
26312
|
+
const operationName = "getDrgRouteDistribution";
|
|
26313
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistribution/GetDrgRouteDistribution";
|
|
26314
|
+
const pathParams = {
|
|
26315
|
+
"{drgRouteDistributionId}": getDrgRouteDistributionRequest.drgRouteDistributionId
|
|
26316
|
+
};
|
|
26317
|
+
const queryParams = {};
|
|
26318
|
+
let headerParams = {
|
|
26319
|
+
"Content-Type": common.Constants.APPLICATION_JSON
|
|
26320
|
+
};
|
|
25984
26321
|
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
25985
26322
|
const requiredParams = new Set(["drgRouteDistributionId"]);
|
|
25986
26323
|
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
@@ -30250,6 +30587,7 @@ class VirtualNetworkClient {
|
|
|
30250
30587
|
"drgId": listDrgAttachmentsRequest.drgId,
|
|
30251
30588
|
"limit": listDrgAttachmentsRequest.limit,
|
|
30252
30589
|
"page": listDrgAttachmentsRequest.page,
|
|
30590
|
+
"drgNatPolicyId": listDrgAttachmentsRequest.drgNatPolicyId,
|
|
30253
30591
|
"networkId": listDrgAttachmentsRequest.networkId,
|
|
30254
30592
|
"attachmentType": listDrgAttachmentsRequest.attachmentType,
|
|
30255
30593
|
"drgRouteTableId": listDrgAttachmentsRequest.drgRouteTableId,
|
|
@@ -30345,6 +30683,228 @@ class VirtualNetworkClient {
|
|
|
30345
30683
|
listDrgAttachmentsResponseIterator(request) {
|
|
30346
30684
|
return oci_common_1.paginateResponses(request, req => this.listDrgAttachments(req));
|
|
30347
30685
|
}
|
|
30686
|
+
/**
|
|
30687
|
+
* The list of DRG NAT policies in the compartment.
|
|
30688
|
+
*
|
|
30689
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
30690
|
+
* @param ListDrgNatPoliciesRequest
|
|
30691
|
+
* @return ListDrgNatPoliciesResponse
|
|
30692
|
+
* @throws OciError when an error occurs
|
|
30693
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListDrgNatPolicies.ts.html |here} to see how to use ListDrgNatPolicies API.
|
|
30694
|
+
*/
|
|
30695
|
+
listDrgNatPolicies(listDrgNatPoliciesRequest) {
|
|
30696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30697
|
+
if (this.logger)
|
|
30698
|
+
this.logger.debug("Calling operation VirtualNetworkClient#listDrgNatPolicies.");
|
|
30699
|
+
const operationName = "listDrgNatPolicies";
|
|
30700
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/ListDrgNatPolicies";
|
|
30701
|
+
const pathParams = {};
|
|
30702
|
+
const queryParams = {
|
|
30703
|
+
"compartmentId": listDrgNatPoliciesRequest.compartmentId,
|
|
30704
|
+
"limit": listDrgNatPoliciesRequest.limit,
|
|
30705
|
+
"page": listDrgNatPoliciesRequest.page,
|
|
30706
|
+
"sortBy": listDrgNatPoliciesRequest.sortBy,
|
|
30707
|
+
"sortOrder": listDrgNatPoliciesRequest.sortOrder,
|
|
30708
|
+
"displayName": listDrgNatPoliciesRequest.displayName
|
|
30709
|
+
};
|
|
30710
|
+
let headerParams = {
|
|
30711
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
30712
|
+
"opc-request-id": listDrgNatPoliciesRequest.opcRequestId
|
|
30713
|
+
};
|
|
30714
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
30715
|
+
const requiredParams = new Set(["compartmentId"]);
|
|
30716
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
30717
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
30718
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDrgNatPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
30719
|
+
if (this.logger)
|
|
30720
|
+
retrier.logger = this.logger;
|
|
30721
|
+
const request = yield oci_common_2.composeRequest({
|
|
30722
|
+
baseEndpoint: endpoint,
|
|
30723
|
+
defaultHeaders: this._defaultHeaders,
|
|
30724
|
+
path: "/drgNatPolicies",
|
|
30725
|
+
method: "GET",
|
|
30726
|
+
pathParams: pathParams,
|
|
30727
|
+
headerParams: headerParams,
|
|
30728
|
+
queryParams: queryParams
|
|
30729
|
+
});
|
|
30730
|
+
try {
|
|
30731
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
30732
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
30733
|
+
responseObject: {},
|
|
30734
|
+
body: yield response.json(),
|
|
30735
|
+
bodyKey: "items",
|
|
30736
|
+
bodyModel: model.DrgNatPolicy,
|
|
30737
|
+
type: "Array<model.DrgNatPolicy>",
|
|
30738
|
+
responseHeaders: [
|
|
30739
|
+
{
|
|
30740
|
+
value: response.headers.get("opc-next-page"),
|
|
30741
|
+
key: "opcNextPage",
|
|
30742
|
+
dataType: "string"
|
|
30743
|
+
},
|
|
30744
|
+
{
|
|
30745
|
+
value: response.headers.get("opc-request-id"),
|
|
30746
|
+
key: "opcRequestId",
|
|
30747
|
+
dataType: "string"
|
|
30748
|
+
}
|
|
30749
|
+
]
|
|
30750
|
+
});
|
|
30751
|
+
return sdkResponse;
|
|
30752
|
+
}
|
|
30753
|
+
catch (err) {
|
|
30754
|
+
throw err;
|
|
30755
|
+
}
|
|
30756
|
+
});
|
|
30757
|
+
}
|
|
30758
|
+
/**
|
|
30759
|
+
* NOTE: This function is deprecated in favor of listDrgNatPoliciesRecordIterator function.
|
|
30760
|
+
* Creates a new async iterator which will iterate over the models.DrgNatPolicy objects
|
|
30761
|
+
* contained in responses from the listDrgNatPolicies operation. This iterator will fetch more data from the
|
|
30762
|
+
* server as needed.
|
|
30763
|
+
*
|
|
30764
|
+
* @param request a request which can be sent to the service operation
|
|
30765
|
+
*/
|
|
30766
|
+
listAllDrgNatPolicies(request) {
|
|
30767
|
+
return oci_common_1.paginateRecords(request, req => this.listDrgNatPolicies(req));
|
|
30768
|
+
}
|
|
30769
|
+
/**
|
|
30770
|
+
* NOTE: This function is deprecated in favor of listDrgNatPoliciesResponseIterator function.
|
|
30771
|
+
* Creates a new async iterator which will iterate over the responses received from the listDrgNatPolicies operation. This iterator
|
|
30772
|
+
* will fetch more data from the server as needed.
|
|
30773
|
+
*
|
|
30774
|
+
* @param request a request which can be sent to the service operation
|
|
30775
|
+
*/
|
|
30776
|
+
listAllDrgNatPoliciesResponses(request) {
|
|
30777
|
+
return oci_common_1.paginateResponses(request, req => this.listDrgNatPolicies(req));
|
|
30778
|
+
}
|
|
30779
|
+
/**
|
|
30780
|
+
* Creates a new async iterator which will iterate over the models.DrgNatPolicy objects
|
|
30781
|
+
* contained in responses from the listDrgNatPolicies operation. This iterator will fetch more data from the
|
|
30782
|
+
* server as needed.
|
|
30783
|
+
*
|
|
30784
|
+
* @param request a request which can be sent to the service operation
|
|
30785
|
+
*/
|
|
30786
|
+
listDrgNatPoliciesRecordIterator(request) {
|
|
30787
|
+
return oci_common_1.paginateRecords(request, req => this.listDrgNatPolicies(req));
|
|
30788
|
+
}
|
|
30789
|
+
/**
|
|
30790
|
+
* Creates a new async iterator which will iterate over the responses received from the listDrgNatPolicies operation. This iterator
|
|
30791
|
+
* will fetch more data from the server as needed.
|
|
30792
|
+
*
|
|
30793
|
+
* @param request a request which can be sent to the service operation
|
|
30794
|
+
*/
|
|
30795
|
+
listDrgNatPoliciesResponseIterator(request) {
|
|
30796
|
+
return oci_common_1.paginateResponses(request, req => this.listDrgNatPolicies(req));
|
|
30797
|
+
}
|
|
30798
|
+
/**
|
|
30799
|
+
* Lists the rules for the specified DRG NAT policy.
|
|
30800
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
30801
|
+
* @param ListDrgNatRulesRequest
|
|
30802
|
+
* @return ListDrgNatRulesResponse
|
|
30803
|
+
* @throws OciError when an error occurs
|
|
30804
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListDrgNatRules.ts.html |here} to see how to use ListDrgNatRules API.
|
|
30805
|
+
*/
|
|
30806
|
+
listDrgNatRules(listDrgNatRulesRequest) {
|
|
30807
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30808
|
+
if (this.logger)
|
|
30809
|
+
this.logger.debug("Calling operation VirtualNetworkClient#listDrgNatRules.");
|
|
30810
|
+
const operationName = "listDrgNatRules";
|
|
30811
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/ListDrgNatRules";
|
|
30812
|
+
const pathParams = {
|
|
30813
|
+
"{drgNatPolicyId}": listDrgNatRulesRequest.drgNatPolicyId
|
|
30814
|
+
};
|
|
30815
|
+
const queryParams = {
|
|
30816
|
+
"limit": listDrgNatRulesRequest.limit,
|
|
30817
|
+
"page": listDrgNatRulesRequest.page,
|
|
30818
|
+
"sortBy": listDrgNatRulesRequest.sortBy
|
|
30819
|
+
};
|
|
30820
|
+
let headerParams = {
|
|
30821
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
30822
|
+
"opc-request-id": listDrgNatRulesRequest.opcRequestId
|
|
30823
|
+
};
|
|
30824
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
30825
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
30826
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
30827
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
30828
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDrgNatRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
30829
|
+
if (this.logger)
|
|
30830
|
+
retrier.logger = this.logger;
|
|
30831
|
+
const request = yield oci_common_2.composeRequest({
|
|
30832
|
+
baseEndpoint: endpoint,
|
|
30833
|
+
defaultHeaders: this._defaultHeaders,
|
|
30834
|
+
path: "/drgNatPolicies/{drgNatPolicyId}/drgNatRules",
|
|
30835
|
+
method: "GET",
|
|
30836
|
+
pathParams: pathParams,
|
|
30837
|
+
headerParams: headerParams,
|
|
30838
|
+
queryParams: queryParams
|
|
30839
|
+
});
|
|
30840
|
+
try {
|
|
30841
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
30842
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
30843
|
+
responseObject: {},
|
|
30844
|
+
body: yield response.json(),
|
|
30845
|
+
bodyKey: "items",
|
|
30846
|
+
bodyModel: model.DrgNatRule,
|
|
30847
|
+
type: "Array<model.DrgNatRule>",
|
|
30848
|
+
responseHeaders: [
|
|
30849
|
+
{
|
|
30850
|
+
value: response.headers.get("opc-next-page"),
|
|
30851
|
+
key: "opcNextPage",
|
|
30852
|
+
dataType: "string"
|
|
30853
|
+
},
|
|
30854
|
+
{
|
|
30855
|
+
value: response.headers.get("opc-request-id"),
|
|
30856
|
+
key: "opcRequestId",
|
|
30857
|
+
dataType: "string"
|
|
30858
|
+
}
|
|
30859
|
+
]
|
|
30860
|
+
});
|
|
30861
|
+
return sdkResponse;
|
|
30862
|
+
}
|
|
30863
|
+
catch (err) {
|
|
30864
|
+
throw err;
|
|
30865
|
+
}
|
|
30866
|
+
});
|
|
30867
|
+
}
|
|
30868
|
+
/**
|
|
30869
|
+
* NOTE: This function is deprecated in favor of listDrgNatRulesRecordIterator function.
|
|
30870
|
+
* Creates a new async iterator which will iterate over the models.DrgNatRule objects
|
|
30871
|
+
* contained in responses from the listDrgNatRules operation. This iterator will fetch more data from the
|
|
30872
|
+
* server as needed.
|
|
30873
|
+
*
|
|
30874
|
+
* @param request a request which can be sent to the service operation
|
|
30875
|
+
*/
|
|
30876
|
+
listAllDrgNatRules(request) {
|
|
30877
|
+
return oci_common_1.paginateRecords(request, req => this.listDrgNatRules(req));
|
|
30878
|
+
}
|
|
30879
|
+
/**
|
|
30880
|
+
* NOTE: This function is deprecated in favor of listDrgNatRulesResponseIterator function.
|
|
30881
|
+
* Creates a new async iterator which will iterate over the responses received from the listDrgNatRules operation. This iterator
|
|
30882
|
+
* will fetch more data from the server as needed.
|
|
30883
|
+
*
|
|
30884
|
+
* @param request a request which can be sent to the service operation
|
|
30885
|
+
*/
|
|
30886
|
+
listAllDrgNatRulesResponses(request) {
|
|
30887
|
+
return oci_common_1.paginateResponses(request, req => this.listDrgNatRules(req));
|
|
30888
|
+
}
|
|
30889
|
+
/**
|
|
30890
|
+
* Creates a new async iterator which will iterate over the models.DrgNatRule objects
|
|
30891
|
+
* contained in responses from the listDrgNatRules operation. This iterator will fetch more data from the
|
|
30892
|
+
* server as needed.
|
|
30893
|
+
*
|
|
30894
|
+
* @param request a request which can be sent to the service operation
|
|
30895
|
+
*/
|
|
30896
|
+
listDrgNatRulesRecordIterator(request) {
|
|
30897
|
+
return oci_common_1.paginateRecords(request, req => this.listDrgNatRules(req));
|
|
30898
|
+
}
|
|
30899
|
+
/**
|
|
30900
|
+
* Creates a new async iterator which will iterate over the responses received from the listDrgNatRules operation. This iterator
|
|
30901
|
+
* will fetch more data from the server as needed.
|
|
30902
|
+
*
|
|
30903
|
+
* @param request a request which can be sent to the service operation
|
|
30904
|
+
*/
|
|
30905
|
+
listDrgNatRulesResponseIterator(request) {
|
|
30906
|
+
return oci_common_1.paginateResponses(request, req => this.listDrgNatRules(req));
|
|
30907
|
+
}
|
|
30348
30908
|
/**
|
|
30349
30909
|
* Lists the statements for the specified route distribution.
|
|
30350
30910
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -34695,6 +35255,139 @@ class VirtualNetworkClient {
|
|
|
34695
35255
|
}
|
|
34696
35256
|
});
|
|
34697
35257
|
}
|
|
35258
|
+
/**
|
|
35259
|
+
* Dissociates the DRG NAT policy from the DRG attachment so no DRG NAT rules are advertised to it.
|
|
35260
|
+
*
|
|
35261
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
35262
|
+
* @param RemoveDrgNatPolicyRequest
|
|
35263
|
+
* @return RemoveDrgNatPolicyResponse
|
|
35264
|
+
* @throws OciError when an error occurs
|
|
35265
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/RemoveDrgNatPolicy.ts.html |here} to see how to use RemoveDrgNatPolicy API.
|
|
35266
|
+
*/
|
|
35267
|
+
removeDrgNatPolicy(removeDrgNatPolicyRequest) {
|
|
35268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35269
|
+
if (this.logger)
|
|
35270
|
+
this.logger.debug("Calling operation VirtualNetworkClient#removeDrgNatPolicy.");
|
|
35271
|
+
const operationName = "removeDrgNatPolicy";
|
|
35272
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/RemoveDrgNatPolicy";
|
|
35273
|
+
const pathParams = {
|
|
35274
|
+
"{drgAttachmentId}": removeDrgNatPolicyRequest.drgAttachmentId
|
|
35275
|
+
};
|
|
35276
|
+
const queryParams = {};
|
|
35277
|
+
let headerParams = {
|
|
35278
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
35279
|
+
"if-match": removeDrgNatPolicyRequest.ifMatch
|
|
35280
|
+
};
|
|
35281
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
35282
|
+
const requiredParams = new Set(["drgAttachmentId"]);
|
|
35283
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
35284
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
35285
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeDrgNatPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
35286
|
+
if (this.logger)
|
|
35287
|
+
retrier.logger = this.logger;
|
|
35288
|
+
const request = yield oci_common_2.composeRequest({
|
|
35289
|
+
baseEndpoint: endpoint,
|
|
35290
|
+
defaultHeaders: this._defaultHeaders,
|
|
35291
|
+
path: "/drgAttachments/{drgAttachmentId}/actions/removeDrgNatPolicy",
|
|
35292
|
+
method: "POST",
|
|
35293
|
+
pathParams: pathParams,
|
|
35294
|
+
headerParams: headerParams,
|
|
35295
|
+
queryParams: queryParams
|
|
35296
|
+
});
|
|
35297
|
+
try {
|
|
35298
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
35299
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
35300
|
+
responseObject: {},
|
|
35301
|
+
body: yield response.json(),
|
|
35302
|
+
bodyKey: "drgAttachment",
|
|
35303
|
+
bodyModel: model.DrgAttachment,
|
|
35304
|
+
type: "model.DrgAttachment",
|
|
35305
|
+
responseHeaders: [
|
|
35306
|
+
{
|
|
35307
|
+
value: response.headers.get("etag"),
|
|
35308
|
+
key: "etag",
|
|
35309
|
+
dataType: "string"
|
|
35310
|
+
},
|
|
35311
|
+
{
|
|
35312
|
+
value: response.headers.get("opc-request-id"),
|
|
35313
|
+
key: "opcRequestId",
|
|
35314
|
+
dataType: "string"
|
|
35315
|
+
}
|
|
35316
|
+
]
|
|
35317
|
+
});
|
|
35318
|
+
return sdkResponse;
|
|
35319
|
+
}
|
|
35320
|
+
catch (err) {
|
|
35321
|
+
throw err;
|
|
35322
|
+
}
|
|
35323
|
+
});
|
|
35324
|
+
}
|
|
35325
|
+
/**
|
|
35326
|
+
* Request with DRG NAT rules to remove from the DRG NAT policy.
|
|
35327
|
+
*
|
|
35328
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
35329
|
+
* @param RemoveDrgNatRulesRequest
|
|
35330
|
+
* @return RemoveDrgNatRulesResponse
|
|
35331
|
+
* @throws OciError when an error occurs
|
|
35332
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/RemoveDrgNatRules.ts.html |here} to see how to use RemoveDrgNatRules API.
|
|
35333
|
+
*/
|
|
35334
|
+
removeDrgNatRules(removeDrgNatRulesRequest) {
|
|
35335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35336
|
+
if (this.logger)
|
|
35337
|
+
this.logger.debug("Calling operation VirtualNetworkClient#removeDrgNatRules.");
|
|
35338
|
+
const operationName = "removeDrgNatRules";
|
|
35339
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/RemoveDrgNatRules";
|
|
35340
|
+
const pathParams = {
|
|
35341
|
+
"{drgNatPolicyId}": removeDrgNatRulesRequest.drgNatPolicyId
|
|
35342
|
+
};
|
|
35343
|
+
const queryParams = {};
|
|
35344
|
+
let headerParams = {
|
|
35345
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
35346
|
+
"if-match": removeDrgNatRulesRequest.ifMatch,
|
|
35347
|
+
"opc-request-id": removeDrgNatRulesRequest.opcRequestId,
|
|
35348
|
+
"opc-retry-token": removeDrgNatRulesRequest.opcRetryToken
|
|
35349
|
+
};
|
|
35350
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
35351
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
35352
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
35353
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
35354
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeDrgNatRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
35355
|
+
if (this.logger)
|
|
35356
|
+
retrier.logger = this.logger;
|
|
35357
|
+
const request = yield oci_common_2.composeRequest({
|
|
35358
|
+
baseEndpoint: endpoint,
|
|
35359
|
+
defaultHeaders: this._defaultHeaders,
|
|
35360
|
+
path: "/drgNatPolicies/{drgNatPolicyId}/actions/removeDrgNatRules",
|
|
35361
|
+
method: "POST",
|
|
35362
|
+
bodyContent: common.ObjectSerializer.serialize(removeDrgNatRulesRequest.removeDrgNatRulesDetails, "RemoveDrgNatRulesDetails", model.RemoveDrgNatRulesDetails.getJsonObj),
|
|
35363
|
+
pathParams: pathParams,
|
|
35364
|
+
headerParams: headerParams,
|
|
35365
|
+
queryParams: queryParams
|
|
35366
|
+
});
|
|
35367
|
+
try {
|
|
35368
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
35369
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
35370
|
+
responseObject: {},
|
|
35371
|
+
responseHeaders: [
|
|
35372
|
+
{
|
|
35373
|
+
value: response.headers.get("opc-work-request-id"),
|
|
35374
|
+
key: "opcWorkRequestId",
|
|
35375
|
+
dataType: "string"
|
|
35376
|
+
},
|
|
35377
|
+
{
|
|
35378
|
+
value: response.headers.get("opc-request-id"),
|
|
35379
|
+
key: "opcRequestId",
|
|
35380
|
+
dataType: "string"
|
|
35381
|
+
}
|
|
35382
|
+
]
|
|
35383
|
+
});
|
|
35384
|
+
return sdkResponse;
|
|
35385
|
+
}
|
|
35386
|
+
catch (err) {
|
|
35387
|
+
throw err;
|
|
35388
|
+
}
|
|
35389
|
+
});
|
|
35390
|
+
}
|
|
34698
35391
|
/**
|
|
34699
35392
|
* Removes one or more route distribution statements from the specified route distribution's map.
|
|
34700
35393
|
*
|
|
@@ -36166,6 +36859,141 @@ class VirtualNetworkClient {
|
|
|
36166
36859
|
}
|
|
36167
36860
|
});
|
|
36168
36861
|
}
|
|
36862
|
+
/**
|
|
36863
|
+
* Updates the specified DRG NAT policy
|
|
36864
|
+
*
|
|
36865
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
36866
|
+
* @param UpdateDrgNatPolicyRequest
|
|
36867
|
+
* @return UpdateDrgNatPolicyResponse
|
|
36868
|
+
* @throws OciError when an error occurs
|
|
36869
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateDrgNatPolicy.ts.html |here} to see how to use UpdateDrgNatPolicy API.
|
|
36870
|
+
*/
|
|
36871
|
+
updateDrgNatPolicy(updateDrgNatPolicyRequest) {
|
|
36872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36873
|
+
if (this.logger)
|
|
36874
|
+
this.logger.debug("Calling operation VirtualNetworkClient#updateDrgNatPolicy.");
|
|
36875
|
+
const operationName = "updateDrgNatPolicy";
|
|
36876
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/UpdateDrgNatPolicy";
|
|
36877
|
+
const pathParams = {
|
|
36878
|
+
"{drgNatPolicyId}": updateDrgNatPolicyRequest.drgNatPolicyId
|
|
36879
|
+
};
|
|
36880
|
+
const queryParams = {};
|
|
36881
|
+
let headerParams = {
|
|
36882
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
36883
|
+
"if-match": updateDrgNatPolicyRequest.ifMatch,
|
|
36884
|
+
"opc-request-id": updateDrgNatPolicyRequest.opcRequestId
|
|
36885
|
+
};
|
|
36886
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
36887
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
36888
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
36889
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
36890
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDrgNatPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
36891
|
+
if (this.logger)
|
|
36892
|
+
retrier.logger = this.logger;
|
|
36893
|
+
const request = yield oci_common_2.composeRequest({
|
|
36894
|
+
baseEndpoint: endpoint,
|
|
36895
|
+
defaultHeaders: this._defaultHeaders,
|
|
36896
|
+
path: "/drgNatPolicies/{drgNatPolicyId}",
|
|
36897
|
+
method: "PUT",
|
|
36898
|
+
bodyContent: common.ObjectSerializer.serialize(updateDrgNatPolicyRequest.updateDrgNatPolicyDetails, "UpdateDrgNatPolicyDetails", model.UpdateDrgNatPolicyDetails.getJsonObj),
|
|
36899
|
+
pathParams: pathParams,
|
|
36900
|
+
headerParams: headerParams,
|
|
36901
|
+
queryParams: queryParams
|
|
36902
|
+
});
|
|
36903
|
+
try {
|
|
36904
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
36905
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
36906
|
+
responseObject: {},
|
|
36907
|
+
body: yield response.json(),
|
|
36908
|
+
bodyKey: "drgNatPolicy",
|
|
36909
|
+
bodyModel: model.DrgNatPolicy,
|
|
36910
|
+
type: "model.DrgNatPolicy",
|
|
36911
|
+
responseHeaders: [
|
|
36912
|
+
{
|
|
36913
|
+
value: response.headers.get("etag"),
|
|
36914
|
+
key: "etag",
|
|
36915
|
+
dataType: "string"
|
|
36916
|
+
},
|
|
36917
|
+
{
|
|
36918
|
+
value: response.headers.get("opc-request-id"),
|
|
36919
|
+
key: "opcRequestId",
|
|
36920
|
+
dataType: "string"
|
|
36921
|
+
}
|
|
36922
|
+
]
|
|
36923
|
+
});
|
|
36924
|
+
return sdkResponse;
|
|
36925
|
+
}
|
|
36926
|
+
catch (err) {
|
|
36927
|
+
throw err;
|
|
36928
|
+
}
|
|
36929
|
+
});
|
|
36930
|
+
}
|
|
36931
|
+
/**
|
|
36932
|
+
* Updates DRG NAT rules in the specified DRG NAT policy.
|
|
36933
|
+
*
|
|
36934
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
36935
|
+
* @param UpdateDrgNatRulesRequest
|
|
36936
|
+
* @return UpdateDrgNatRulesResponse
|
|
36937
|
+
* @throws OciError when an error occurs
|
|
36938
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateDrgNatRules.ts.html |here} to see how to use UpdateDrgNatRules API.
|
|
36939
|
+
*/
|
|
36940
|
+
updateDrgNatRules(updateDrgNatRulesRequest) {
|
|
36941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36942
|
+
if (this.logger)
|
|
36943
|
+
this.logger.debug("Calling operation VirtualNetworkClient#updateDrgNatRules.");
|
|
36944
|
+
const operationName = "updateDrgNatRules";
|
|
36945
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/UpdateDrgNatRules";
|
|
36946
|
+
const pathParams = {
|
|
36947
|
+
"{drgNatPolicyId}": updateDrgNatRulesRequest.drgNatPolicyId
|
|
36948
|
+
};
|
|
36949
|
+
const queryParams = {};
|
|
36950
|
+
let headerParams = {
|
|
36951
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
36952
|
+
"if-match": updateDrgNatRulesRequest.ifMatch,
|
|
36953
|
+
"opc-request-id": updateDrgNatRulesRequest.opcRequestId,
|
|
36954
|
+
"opc-retry-token": updateDrgNatRulesRequest.opcRetryToken
|
|
36955
|
+
};
|
|
36956
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
36957
|
+
const requiredParams = new Set(["drgNatPolicyId"]);
|
|
36958
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
36959
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
36960
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDrgNatRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
36961
|
+
if (this.logger)
|
|
36962
|
+
retrier.logger = this.logger;
|
|
36963
|
+
const request = yield oci_common_2.composeRequest({
|
|
36964
|
+
baseEndpoint: endpoint,
|
|
36965
|
+
defaultHeaders: this._defaultHeaders,
|
|
36966
|
+
path: "/drgNatPolicies/{drgNatPolicyId}/actions/updateDrgNatRules",
|
|
36967
|
+
method: "POST",
|
|
36968
|
+
bodyContent: common.ObjectSerializer.serialize(updateDrgNatRulesRequest.updateDrgNatRulesDetails, "UpdateDrgNatRulesDetails", model.UpdateDrgNatRulesDetails.getJsonObj),
|
|
36969
|
+
pathParams: pathParams,
|
|
36970
|
+
headerParams: headerParams,
|
|
36971
|
+
queryParams: queryParams
|
|
36972
|
+
});
|
|
36973
|
+
try {
|
|
36974
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
36975
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
36976
|
+
responseObject: {},
|
|
36977
|
+
responseHeaders: [
|
|
36978
|
+
{
|
|
36979
|
+
value: response.headers.get("opc-work-request-id"),
|
|
36980
|
+
key: "opcWorkRequestId",
|
|
36981
|
+
dataType: "string"
|
|
36982
|
+
},
|
|
36983
|
+
{
|
|
36984
|
+
value: response.headers.get("opc-request-id"),
|
|
36985
|
+
key: "opcRequestId",
|
|
36986
|
+
dataType: "string"
|
|
36987
|
+
}
|
|
36988
|
+
]
|
|
36989
|
+
});
|
|
36990
|
+
return sdkResponse;
|
|
36991
|
+
}
|
|
36992
|
+
catch (err) {
|
|
36993
|
+
throw err;
|
|
36994
|
+
}
|
|
36995
|
+
});
|
|
36996
|
+
}
|
|
36169
36997
|
/**
|
|
36170
36998
|
* Updates the specified route distribution
|
|
36171
36999
|
*
|