oci-networkfirewall 2.109.0 → 2.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +58 -1
- package/lib/client.js +402 -1
- package/lib/client.js.map +1 -1
- package/lib/model/create-nat-rule-details.d.ts +34 -0
- package/lib/model/create-nat-rule-details.js +74 -0
- package/lib/model/create-nat-rule-details.js.map +1 -0
- package/lib/model/create-nat-v4-rule-details.d.ts +33 -0
- package/lib/model/create-nat-v4-rule-details.js +62 -0
- package/lib/model/create-nat-v4-rule-details.js.map +1 -0
- package/lib/model/create-network-firewall-details.d.ts +2 -0
- package/lib/model/create-network-firewall-details.js +30 -2
- package/lib/model/create-network-firewall-details.js.map +1 -1
- package/lib/model/index.d.ts +28 -0
- package/lib/model/index.js +31 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/lifecycle-state.d.ts +0 -2
- package/lib/model/lifecycle-state.js +0 -2
- package/lib/model/lifecycle-state.js.map +1 -1
- package/lib/model/nat-configuration-request.d.ts +25 -0
- package/lib/model/nat-configuration-request.js +29 -0
- package/lib/model/nat-configuration-request.js.map +1 -0
- package/lib/model/nat-configuration-response.d.ts +29 -0
- package/lib/model/nat-configuration-response.js +29 -0
- package/lib/model/nat-configuration-response.js.map +1 -0
- package/lib/model/nat-rule-collection.d.ts +26 -0
- package/lib/model/nat-rule-collection.js +61 -0
- package/lib/model/nat-rule-collection.js.map +1 -0
- package/lib/model/nat-rule-match-criteria.d.ts +33 -0
- package/lib/model/nat-rule-match-criteria.js +29 -0
- package/lib/model/nat-rule-match-criteria.js.map +1 -0
- package/lib/model/nat-rule-summary.d.ts +40 -0
- package/lib/model/nat-rule-summary.js +68 -0
- package/lib/model/nat-rule-summary.js.map +1 -0
- package/lib/model/nat-rule.d.ts +41 -0
- package/lib/model/nat-rule.js +74 -0
- package/lib/model/nat-rule.js.map +1 -0
- package/lib/model/nat-type.d.ts +29 -0
- package/lib/model/nat-type.js +40 -0
- package/lib/model/nat-type.js.map +1 -0
- package/lib/model/nat-v4-action-type.d.ts +30 -0
- package/lib/model/nat-v4-action-type.js +41 -0
- package/lib/model/nat-v4-action-type.js.map +1 -0
- package/lib/model/nat-v4-nat-rule.d.ts +33 -0
- package/lib/model/nat-v4-nat-rule.js +58 -0
- package/lib/model/nat-v4-nat-rule.js.map +1 -0
- package/lib/model/nat-v4-nat-summary.d.ts +33 -0
- package/lib/model/nat-v4-nat-summary.js +60 -0
- package/lib/model/nat-v4-nat-summary.js.map +1 -0
- package/lib/model/network-firewall-summary.d.ts +1 -0
- package/lib/model/network-firewall-summary.js +30 -2
- package/lib/model/network-firewall-summary.js.map +1 -1
- package/lib/model/network-firewall.d.ts +1 -0
- package/lib/model/network-firewall.js +30 -2
- package/lib/model/network-firewall.js.map +1 -1
- package/lib/model/update-nat-rule-details.d.ts +30 -0
- package/lib/model/update-nat-rule-details.js +74 -0
- package/lib/model/update-nat-rule-details.js.map +1 -0
- package/lib/model/update-nat-v4-rule-details.d.ts +33 -0
- package/lib/model/update-nat-v4-rule-details.js +62 -0
- package/lib/model/update-nat-v4-rule-details.js.map +1 -0
- package/lib/model/update-network-firewall-details.d.ts +2 -0
- package/lib/model/update-network-firewall-details.js +30 -2
- package/lib/model/update-network-firewall-details.js.map +1 -1
- package/lib/request/bulk-upload-nat-rules-request.d.ts +50 -0
- package/lib/request/bulk-upload-nat-rules-request.js +15 -0
- package/lib/request/bulk-upload-nat-rules-request.js.map +1 -0
- package/lib/request/create-nat-rule-request.d.ts +40 -0
- package/lib/request/create-nat-rule-request.js +15 -0
- package/lib/request/create-nat-rule-request.js.map +1 -0
- package/lib/request/delete-nat-rule-request.d.ts +39 -0
- package/lib/request/delete-nat-rule-request.js +15 -0
- package/lib/request/delete-nat-rule-request.js.map +1 -0
- package/lib/request/get-nat-rule-request.d.ts +30 -0
- package/lib/request/get-nat-rule-request.js +15 -0
- package/lib/request/get-nat-rule-request.js.map +1 -0
- package/lib/request/index.d.ts +12 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-nat-rules-request.d.ts +58 -0
- package/lib/request/list-nat-rules-request.js +24 -0
- package/lib/request/list-nat-rules-request.js.map +1 -0
- package/lib/request/update-nat-rule-request.d.ts +44 -0
- package/lib/request/update-nat-rule-request.js +15 -0
- package/lib/request/update-nat-rule-request.js.map +1 -0
- package/lib/response/bulk-upload-nat-rules-response.d.ts +25 -0
- package/lib/response/bulk-upload-nat-rules-response.js +15 -0
- package/lib/response/bulk-upload-nat-rules-response.js.map +1 -0
- package/lib/response/create-nat-rule-response.d.ts +30 -0
- package/lib/response/create-nat-rule-response.js +15 -0
- package/lib/response/create-nat-rule-response.js.map +1 -0
- package/lib/response/delete-nat-rule-response.d.ts +20 -0
- package/lib/response/delete-nat-rule-response.js +15 -0
- package/lib/response/delete-nat-rule-response.js.map +1 -0
- package/lib/response/get-nat-rule-response.d.ts +30 -0
- package/lib/response/get-nat-rule-response.js +15 -0
- package/lib/response/get-nat-rule-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -0
- package/lib/response/list-nat-rules-response.d.ts +46 -0
- package/lib/response/list-nat-rules-response.js +15 -0
- package/lib/response/list-nat-rules-response.js.map +1 -0
- package/lib/response/update-nat-rule-response.d.ts +30 -0
- package/lib/response/update-nat-rule-response.js +15 -0
- package/lib/response/update-nat-rule-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -163,6 +163,16 @@ export declare class NetworkFirewallClient {
|
|
|
163
163
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/BulkUploadMappedSecrets.ts.html |here} to see how to use BulkUploadMappedSecrets API.
|
|
164
164
|
*/
|
|
165
165
|
bulkUploadMappedSecrets(bulkUploadMappedSecretsRequest: requests.BulkUploadMappedSecretsRequest): Promise<responses.BulkUploadMappedSecretsResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Creates a new NAT Rule at bulk for the Network Firewall Policy.
|
|
168
|
+
*
|
|
169
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
170
|
+
* @param BulkUploadNatRulesRequest
|
|
171
|
+
* @return BulkUploadNatRulesResponse
|
|
172
|
+
* @throws OciError when an error occurs
|
|
173
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/BulkUploadNatRules.ts.html |here} to see how to use BulkUploadNatRules API.
|
|
174
|
+
*/
|
|
175
|
+
bulkUploadNatRules(bulkUploadNatRulesRequest: requests.BulkUploadNatRulesRequest): Promise<responses.BulkUploadNatRulesResponse>;
|
|
166
176
|
/**
|
|
167
177
|
* Creates a new Security Rule at bulk for the Network Firewall Policy.
|
|
168
178
|
*
|
|
@@ -241,7 +251,7 @@ export declare class NetworkFirewallClient {
|
|
|
241
251
|
*/
|
|
242
252
|
changeNetworkFirewallPolicyCompartment(changeNetworkFirewallPolicyCompartmentRequest: requests.ChangeNetworkFirewallPolicyCompartmentRequest): Promise<responses.ChangeNetworkFirewallPolicyCompartmentResponse>;
|
|
243
253
|
/**
|
|
244
|
-
*
|
|
254
|
+
* Clones a NetworkFirewallPolicy resource from an existing Network Firewall Policy. When provided, If-Match is checked against ETag values of the resource.
|
|
245
255
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
246
256
|
* @param CloneNetworkFirewallPolicyRequest
|
|
247
257
|
* @return CloneNetworkFirewallPolicyResponse
|
|
@@ -309,6 +319,16 @@ export declare class NetworkFirewallClient {
|
|
|
309
319
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/CreateMappedSecret.ts.html |here} to see how to use CreateMappedSecret API.
|
|
310
320
|
*/
|
|
311
321
|
createMappedSecret(createMappedSecretRequest: requests.CreateMappedSecretRequest): Promise<responses.CreateMappedSecretResponse>;
|
|
322
|
+
/**
|
|
323
|
+
* Creates a new NAT Rule for the Network Firewall Policy.
|
|
324
|
+
*
|
|
325
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
326
|
+
* @param CreateNatRuleRequest
|
|
327
|
+
* @return CreateNatRuleResponse
|
|
328
|
+
* @throws OciError when an error occurs
|
|
329
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/CreateNatRule.ts.html |here} to see how to use CreateNatRule API.
|
|
330
|
+
*/
|
|
331
|
+
createNatRule(createNatRuleRequest: requests.CreateNatRuleRequest): Promise<responses.CreateNatRuleResponse>;
|
|
312
332
|
/**
|
|
313
333
|
* Creates a new NetworkFirewall.
|
|
314
334
|
*
|
|
@@ -433,6 +453,15 @@ export declare class NetworkFirewallClient {
|
|
|
433
453
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/DeleteMappedSecret.ts.html |here} to see how to use DeleteMappedSecret API.
|
|
434
454
|
*/
|
|
435
455
|
deleteMappedSecret(deleteMappedSecretRequest: requests.DeleteMappedSecretRequest): Promise<responses.DeleteMappedSecretResponse>;
|
|
456
|
+
/**
|
|
457
|
+
* Deletes a NAT Rule resource with the given identifier.
|
|
458
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
459
|
+
* @param DeleteNatRuleRequest
|
|
460
|
+
* @return DeleteNatRuleResponse
|
|
461
|
+
* @throws OciError when an error occurs
|
|
462
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/DeleteNatRule.ts.html |here} to see how to use DeleteNatRule API.
|
|
463
|
+
*/
|
|
464
|
+
deleteNatRule(deleteNatRuleRequest: requests.DeleteNatRuleRequest): Promise<responses.DeleteNatRuleResponse>;
|
|
436
465
|
/**
|
|
437
466
|
* Deletes a NetworkFirewall resource by identifier
|
|
438
467
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -550,6 +579,15 @@ export declare class NetworkFirewallClient {
|
|
|
550
579
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/GetMappedSecret.ts.html |here} to see how to use GetMappedSecret API.
|
|
551
580
|
*/
|
|
552
581
|
getMappedSecret(getMappedSecretRequest: requests.GetMappedSecretRequest): Promise<responses.GetMappedSecretResponse>;
|
|
582
|
+
/**
|
|
583
|
+
* Get NAT Rule by the given name in the context of network firewall policy.
|
|
584
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
585
|
+
* @param GetNatRuleRequest
|
|
586
|
+
* @return GetNatRuleResponse
|
|
587
|
+
* @throws OciError when an error occurs
|
|
588
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/GetNatRule.ts.html |here} to see how to use GetNatRule API.
|
|
589
|
+
*/
|
|
590
|
+
getNatRule(getNatRuleRequest: requests.GetNatRuleRequest): Promise<responses.GetNatRuleResponse>;
|
|
553
591
|
/**
|
|
554
592
|
* Gets a NetworkFirewall by identifier
|
|
555
593
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -682,6 +720,16 @@ export declare class NetworkFirewallClient {
|
|
|
682
720
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/ListMappedSecrets.ts.html |here} to see how to use ListMappedSecrets API.
|
|
683
721
|
*/
|
|
684
722
|
listMappedSecrets(listMappedSecretsRequest: requests.ListMappedSecretsRequest): Promise<responses.ListMappedSecretsResponse>;
|
|
723
|
+
/**
|
|
724
|
+
* Returns a list of NAT Rules for the Network Firewall Policy.
|
|
725
|
+
*
|
|
726
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
727
|
+
* @param ListNatRulesRequest
|
|
728
|
+
* @return ListNatRulesResponse
|
|
729
|
+
* @throws OciError when an error occurs
|
|
730
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/ListNatRules.ts.html |here} to see how to use ListNatRules API.
|
|
731
|
+
*/
|
|
732
|
+
listNatRules(listNatRulesRequest: requests.ListNatRulesRequest): Promise<responses.ListNatRulesResponse>;
|
|
685
733
|
/**
|
|
686
734
|
* Returns a list of Network Firewall Policies.
|
|
687
735
|
*
|
|
@@ -845,6 +893,15 @@ export declare class NetworkFirewallClient {
|
|
|
845
893
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/UpdateMappedSecret.ts.html |here} to see how to use UpdateMappedSecret API.
|
|
846
894
|
*/
|
|
847
895
|
updateMappedSecret(updateMappedSecretRequest: requests.UpdateMappedSecretRequest): Promise<responses.UpdateMappedSecretResponse>;
|
|
896
|
+
/**
|
|
897
|
+
* Updates the NAT Rule with the given name in the network firewall policy.
|
|
898
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
899
|
+
* @param UpdateNatRuleRequest
|
|
900
|
+
* @return UpdateNatRuleResponse
|
|
901
|
+
* @throws OciError when an error occurs
|
|
902
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/UpdateNatRule.ts.html |here} to see how to use UpdateNatRule API.
|
|
903
|
+
*/
|
|
904
|
+
updateNatRule(updateNatRuleRequest: requests.UpdateNatRuleRequest): Promise<responses.UpdateNatRuleResponse>;
|
|
848
905
|
/**
|
|
849
906
|
* Updates the NetworkFirewall
|
|
850
907
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
package/lib/client.js
CHANGED
|
@@ -656,6 +656,69 @@ class NetworkFirewallClient {
|
|
|
656
656
|
}
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
+
/**
|
|
660
|
+
* Creates a new NAT Rule at bulk for the Network Firewall Policy.
|
|
661
|
+
*
|
|
662
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
663
|
+
* @param BulkUploadNatRulesRequest
|
|
664
|
+
* @return BulkUploadNatRulesResponse
|
|
665
|
+
* @throws OciError when an error occurs
|
|
666
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/BulkUploadNatRules.ts.html |here} to see how to use BulkUploadNatRules API.
|
|
667
|
+
*/
|
|
668
|
+
bulkUploadNatRules(bulkUploadNatRulesRequest) {
|
|
669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
670
|
+
if (this.logger)
|
|
671
|
+
this.logger.debug("Calling operation NetworkFirewallClient#bulkUploadNatRules.");
|
|
672
|
+
const operationName = "bulkUploadNatRules";
|
|
673
|
+
const apiReferenceLink = "";
|
|
674
|
+
const pathParams = {
|
|
675
|
+
"{networkFirewallPolicyId}": bulkUploadNatRulesRequest.networkFirewallPolicyId
|
|
676
|
+
};
|
|
677
|
+
const queryParams = {};
|
|
678
|
+
let headerParams = {
|
|
679
|
+
"opc-retry-token": bulkUploadNatRulesRequest.opcRetryToken,
|
|
680
|
+
"opc-request-id": bulkUploadNatRulesRequest.opcRequestId,
|
|
681
|
+
"if-match": bulkUploadNatRulesRequest.ifMatch
|
|
682
|
+
};
|
|
683
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
684
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkUploadNatRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
685
|
+
if (this.logger)
|
|
686
|
+
retrier.logger = this.logger;
|
|
687
|
+
const request = yield oci_common_1.composeRequest({
|
|
688
|
+
baseEndpoint: this._endpoint,
|
|
689
|
+
defaultHeaders: this._defaultHeaders,
|
|
690
|
+
path: "/networkFirewallPolicies/{networkFirewallPolicyId}/natRules/actions/bulkUpload",
|
|
691
|
+
method: "POST",
|
|
692
|
+
bodyContent: bulkUploadNatRulesRequest.bulkUploadNatRulesDetails,
|
|
693
|
+
pathParams: pathParams,
|
|
694
|
+
headerParams: headerParams,
|
|
695
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
696
|
+
queryParams: queryParams
|
|
697
|
+
});
|
|
698
|
+
try {
|
|
699
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
700
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
701
|
+
responseObject: {},
|
|
702
|
+
responseHeaders: [
|
|
703
|
+
{
|
|
704
|
+
value: response.headers.get("opc-work-request-id"),
|
|
705
|
+
key: "opcWorkRequestId",
|
|
706
|
+
dataType: "string"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
value: response.headers.get("opc-request-id"),
|
|
710
|
+
key: "opcRequestId",
|
|
711
|
+
dataType: "string"
|
|
712
|
+
}
|
|
713
|
+
]
|
|
714
|
+
});
|
|
715
|
+
return sdkResponse;
|
|
716
|
+
}
|
|
717
|
+
catch (err) {
|
|
718
|
+
throw err;
|
|
719
|
+
}
|
|
720
|
+
});
|
|
721
|
+
}
|
|
659
722
|
/**
|
|
660
723
|
* Creates a new Security Rule at bulk for the Network Firewall Policy.
|
|
661
724
|
*
|
|
@@ -1146,7 +1209,7 @@ class NetworkFirewallClient {
|
|
|
1146
1209
|
});
|
|
1147
1210
|
}
|
|
1148
1211
|
/**
|
|
1149
|
-
*
|
|
1212
|
+
* Clones a NetworkFirewallPolicy resource from an existing Network Firewall Policy. When provided, If-Match is checked against ETag values of the resource.
|
|
1150
1213
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1151
1214
|
* @param CloneNetworkFirewallPolicyRequest
|
|
1152
1215
|
* @return CloneNetworkFirewallPolicyResponse
|
|
@@ -1612,6 +1675,72 @@ class NetworkFirewallClient {
|
|
|
1612
1675
|
}
|
|
1613
1676
|
});
|
|
1614
1677
|
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Creates a new NAT Rule for the Network Firewall Policy.
|
|
1680
|
+
*
|
|
1681
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1682
|
+
* @param CreateNatRuleRequest
|
|
1683
|
+
* @return CreateNatRuleResponse
|
|
1684
|
+
* @throws OciError when an error occurs
|
|
1685
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/CreateNatRule.ts.html |here} to see how to use CreateNatRule API.
|
|
1686
|
+
*/
|
|
1687
|
+
createNatRule(createNatRuleRequest) {
|
|
1688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1689
|
+
if (this.logger)
|
|
1690
|
+
this.logger.debug("Calling operation NetworkFirewallClient#createNatRule.");
|
|
1691
|
+
const operationName = "createNatRule";
|
|
1692
|
+
const apiReferenceLink = "";
|
|
1693
|
+
const pathParams = {
|
|
1694
|
+
"{networkFirewallPolicyId}": createNatRuleRequest.networkFirewallPolicyId
|
|
1695
|
+
};
|
|
1696
|
+
const queryParams = {};
|
|
1697
|
+
let headerParams = {
|
|
1698
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1699
|
+
"opc-retry-token": createNatRuleRequest.opcRetryToken,
|
|
1700
|
+
"opc-request-id": createNatRuleRequest.opcRequestId
|
|
1701
|
+
};
|
|
1702
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1703
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createNatRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1704
|
+
if (this.logger)
|
|
1705
|
+
retrier.logger = this.logger;
|
|
1706
|
+
const request = yield oci_common_1.composeRequest({
|
|
1707
|
+
baseEndpoint: this._endpoint,
|
|
1708
|
+
defaultHeaders: this._defaultHeaders,
|
|
1709
|
+
path: "/networkFirewallPolicies/{networkFirewallPolicyId}/natRules",
|
|
1710
|
+
method: "POST",
|
|
1711
|
+
bodyContent: common.ObjectSerializer.serialize(createNatRuleRequest.createNatRuleDetails, "CreateNatRuleDetails", model.CreateNatRuleDetails.getJsonObj),
|
|
1712
|
+
pathParams: pathParams,
|
|
1713
|
+
headerParams: headerParams,
|
|
1714
|
+
queryParams: queryParams
|
|
1715
|
+
});
|
|
1716
|
+
try {
|
|
1717
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1718
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1719
|
+
responseObject: {},
|
|
1720
|
+
body: yield response.json(),
|
|
1721
|
+
bodyKey: "natRule",
|
|
1722
|
+
bodyModel: model.NatRule,
|
|
1723
|
+
type: "model.NatRule",
|
|
1724
|
+
responseHeaders: [
|
|
1725
|
+
{
|
|
1726
|
+
value: response.headers.get("etag"),
|
|
1727
|
+
key: "etag",
|
|
1728
|
+
dataType: "string"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
value: response.headers.get("opc-request-id"),
|
|
1732
|
+
key: "opcRequestId",
|
|
1733
|
+
dataType: "string"
|
|
1734
|
+
}
|
|
1735
|
+
]
|
|
1736
|
+
});
|
|
1737
|
+
return sdkResponse;
|
|
1738
|
+
}
|
|
1739
|
+
catch (err) {
|
|
1740
|
+
throw err;
|
|
1741
|
+
}
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1615
1744
|
/**
|
|
1616
1745
|
* Creates a new NetworkFirewall.
|
|
1617
1746
|
*
|
|
@@ -2416,6 +2545,62 @@ class NetworkFirewallClient {
|
|
|
2416
2545
|
}
|
|
2417
2546
|
});
|
|
2418
2547
|
}
|
|
2548
|
+
/**
|
|
2549
|
+
* Deletes a NAT Rule resource with the given identifier.
|
|
2550
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2551
|
+
* @param DeleteNatRuleRequest
|
|
2552
|
+
* @return DeleteNatRuleResponse
|
|
2553
|
+
* @throws OciError when an error occurs
|
|
2554
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/DeleteNatRule.ts.html |here} to see how to use DeleteNatRule API.
|
|
2555
|
+
*/
|
|
2556
|
+
deleteNatRule(deleteNatRuleRequest) {
|
|
2557
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2558
|
+
if (this.logger)
|
|
2559
|
+
this.logger.debug("Calling operation NetworkFirewallClient#deleteNatRule.");
|
|
2560
|
+
const operationName = "deleteNatRule";
|
|
2561
|
+
const apiReferenceLink = "";
|
|
2562
|
+
const pathParams = {
|
|
2563
|
+
"{networkFirewallPolicyId}": deleteNatRuleRequest.networkFirewallPolicyId,
|
|
2564
|
+
"{natRuleName}": deleteNatRuleRequest.natRuleName
|
|
2565
|
+
};
|
|
2566
|
+
const queryParams = {};
|
|
2567
|
+
let headerParams = {
|
|
2568
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2569
|
+
"if-match": deleteNatRuleRequest.ifMatch,
|
|
2570
|
+
"opc-request-id": deleteNatRuleRequest.opcRequestId
|
|
2571
|
+
};
|
|
2572
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2573
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteNatRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
2574
|
+
if (this.logger)
|
|
2575
|
+
retrier.logger = this.logger;
|
|
2576
|
+
const request = yield oci_common_1.composeRequest({
|
|
2577
|
+
baseEndpoint: this._endpoint,
|
|
2578
|
+
defaultHeaders: this._defaultHeaders,
|
|
2579
|
+
path: "/networkFirewallPolicies/{networkFirewallPolicyId}/natRules/{natRuleName}",
|
|
2580
|
+
method: "DELETE",
|
|
2581
|
+
pathParams: pathParams,
|
|
2582
|
+
headerParams: headerParams,
|
|
2583
|
+
queryParams: queryParams
|
|
2584
|
+
});
|
|
2585
|
+
try {
|
|
2586
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2587
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2588
|
+
responseObject: {},
|
|
2589
|
+
responseHeaders: [
|
|
2590
|
+
{
|
|
2591
|
+
value: response.headers.get("opc-request-id"),
|
|
2592
|
+
key: "opcRequestId",
|
|
2593
|
+
dataType: "string"
|
|
2594
|
+
}
|
|
2595
|
+
]
|
|
2596
|
+
});
|
|
2597
|
+
return sdkResponse;
|
|
2598
|
+
}
|
|
2599
|
+
catch (err) {
|
|
2600
|
+
throw err;
|
|
2601
|
+
}
|
|
2602
|
+
});
|
|
2603
|
+
}
|
|
2419
2604
|
/**
|
|
2420
2605
|
* Deletes a NetworkFirewall resource by identifier
|
|
2421
2606
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -3209,6 +3394,70 @@ class NetworkFirewallClient {
|
|
|
3209
3394
|
}
|
|
3210
3395
|
});
|
|
3211
3396
|
}
|
|
3397
|
+
/**
|
|
3398
|
+
* Get NAT Rule by the given name in the context of network firewall policy.
|
|
3399
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3400
|
+
* @param GetNatRuleRequest
|
|
3401
|
+
* @return GetNatRuleResponse
|
|
3402
|
+
* @throws OciError when an error occurs
|
|
3403
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/GetNatRule.ts.html |here} to see how to use GetNatRule API.
|
|
3404
|
+
*/
|
|
3405
|
+
getNatRule(getNatRuleRequest) {
|
|
3406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3407
|
+
if (this.logger)
|
|
3408
|
+
this.logger.debug("Calling operation NetworkFirewallClient#getNatRule.");
|
|
3409
|
+
const operationName = "getNatRule";
|
|
3410
|
+
const apiReferenceLink = "";
|
|
3411
|
+
const pathParams = {
|
|
3412
|
+
"{networkFirewallPolicyId}": getNatRuleRequest.networkFirewallPolicyId,
|
|
3413
|
+
"{natRuleName}": getNatRuleRequest.natRuleName
|
|
3414
|
+
};
|
|
3415
|
+
const queryParams = {};
|
|
3416
|
+
let headerParams = {
|
|
3417
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3418
|
+
"opc-request-id": getNatRuleRequest.opcRequestId
|
|
3419
|
+
};
|
|
3420
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3421
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNatRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
3422
|
+
if (this.logger)
|
|
3423
|
+
retrier.logger = this.logger;
|
|
3424
|
+
const request = yield oci_common_1.composeRequest({
|
|
3425
|
+
baseEndpoint: this._endpoint,
|
|
3426
|
+
defaultHeaders: this._defaultHeaders,
|
|
3427
|
+
path: "/networkFirewallPolicies/{networkFirewallPolicyId}/natRules/{natRuleName}",
|
|
3428
|
+
method: "GET",
|
|
3429
|
+
pathParams: pathParams,
|
|
3430
|
+
headerParams: headerParams,
|
|
3431
|
+
queryParams: queryParams
|
|
3432
|
+
});
|
|
3433
|
+
try {
|
|
3434
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3435
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3436
|
+
responseObject: {},
|
|
3437
|
+
body: yield response.json(),
|
|
3438
|
+
bodyKey: "natRule",
|
|
3439
|
+
bodyModel: model.NatRule,
|
|
3440
|
+
type: "model.NatRule",
|
|
3441
|
+
responseHeaders: [
|
|
3442
|
+
{
|
|
3443
|
+
value: response.headers.get("etag"),
|
|
3444
|
+
key: "etag",
|
|
3445
|
+
dataType: "string"
|
|
3446
|
+
},
|
|
3447
|
+
{
|
|
3448
|
+
value: response.headers.get("opc-request-id"),
|
|
3449
|
+
key: "opcRequestId",
|
|
3450
|
+
dataType: "string"
|
|
3451
|
+
}
|
|
3452
|
+
]
|
|
3453
|
+
});
|
|
3454
|
+
return sdkResponse;
|
|
3455
|
+
}
|
|
3456
|
+
catch (err) {
|
|
3457
|
+
throw err;
|
|
3458
|
+
}
|
|
3459
|
+
});
|
|
3460
|
+
}
|
|
3212
3461
|
/**
|
|
3213
3462
|
* Gets a NetworkFirewall by identifier
|
|
3214
3463
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -4237,6 +4486,92 @@ class NetworkFirewallClient {
|
|
|
4237
4486
|
}
|
|
4238
4487
|
});
|
|
4239
4488
|
}
|
|
4489
|
+
/**
|
|
4490
|
+
* Returns a list of NAT Rules for the Network Firewall Policy.
|
|
4491
|
+
*
|
|
4492
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4493
|
+
* @param ListNatRulesRequest
|
|
4494
|
+
* @return ListNatRulesResponse
|
|
4495
|
+
* @throws OciError when an error occurs
|
|
4496
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/ListNatRules.ts.html |here} to see how to use ListNatRules API.
|
|
4497
|
+
*/
|
|
4498
|
+
listNatRules(listNatRulesRequest) {
|
|
4499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4500
|
+
if (this.logger)
|
|
4501
|
+
this.logger.debug("Calling operation NetworkFirewallClient#listNatRules.");
|
|
4502
|
+
const operationName = "listNatRules";
|
|
4503
|
+
const apiReferenceLink = "";
|
|
4504
|
+
const pathParams = {
|
|
4505
|
+
"{networkFirewallPolicyId}": listNatRulesRequest.networkFirewallPolicyId
|
|
4506
|
+
};
|
|
4507
|
+
const queryParams = {
|
|
4508
|
+
"limit": listNatRulesRequest.limit,
|
|
4509
|
+
"page": listNatRulesRequest.page,
|
|
4510
|
+
"sortOrder": listNatRulesRequest.sortOrder,
|
|
4511
|
+
"sortBy": listNatRulesRequest.sortBy,
|
|
4512
|
+
"displayName": listNatRulesRequest.displayName,
|
|
4513
|
+
"natRulePriorityOrder": listNatRulesRequest.natRulePriorityOrder
|
|
4514
|
+
};
|
|
4515
|
+
let headerParams = {
|
|
4516
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4517
|
+
"opc-request-id": listNatRulesRequest.opcRequestId
|
|
4518
|
+
};
|
|
4519
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4520
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listNatRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
4521
|
+
if (this.logger)
|
|
4522
|
+
retrier.logger = this.logger;
|
|
4523
|
+
const request = yield oci_common_1.composeRequest({
|
|
4524
|
+
baseEndpoint: this._endpoint,
|
|
4525
|
+
defaultHeaders: this._defaultHeaders,
|
|
4526
|
+
path: "/networkFirewallPolicies/{networkFirewallPolicyId}/natRules",
|
|
4527
|
+
method: "GET",
|
|
4528
|
+
pathParams: pathParams,
|
|
4529
|
+
headerParams: headerParams,
|
|
4530
|
+
queryParams: queryParams
|
|
4531
|
+
});
|
|
4532
|
+
try {
|
|
4533
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4534
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4535
|
+
responseObject: {},
|
|
4536
|
+
body: yield response.json(),
|
|
4537
|
+
bodyKey: "natRuleCollection",
|
|
4538
|
+
bodyModel: model.NatRuleCollection,
|
|
4539
|
+
type: "model.NatRuleCollection",
|
|
4540
|
+
responseHeaders: [
|
|
4541
|
+
{
|
|
4542
|
+
value: response.headers.get("opc-request-id"),
|
|
4543
|
+
key: "opcRequestId",
|
|
4544
|
+
dataType: "string"
|
|
4545
|
+
},
|
|
4546
|
+
{
|
|
4547
|
+
value: response.headers.get("opc-next-page"),
|
|
4548
|
+
key: "opcNextPage",
|
|
4549
|
+
dataType: "string"
|
|
4550
|
+
},
|
|
4551
|
+
{
|
|
4552
|
+
value: response.headers.get("opc-prev-page"),
|
|
4553
|
+
key: "opcPrevPage",
|
|
4554
|
+
dataType: "string"
|
|
4555
|
+
},
|
|
4556
|
+
{
|
|
4557
|
+
value: response.headers.get("opc-page-count"),
|
|
4558
|
+
key: "opcPageCount",
|
|
4559
|
+
dataType: "string"
|
|
4560
|
+
},
|
|
4561
|
+
{
|
|
4562
|
+
value: response.headers.get("opc-total-items"),
|
|
4563
|
+
key: "opcTotalItems",
|
|
4564
|
+
dataType: "number"
|
|
4565
|
+
}
|
|
4566
|
+
]
|
|
4567
|
+
});
|
|
4568
|
+
return sdkResponse;
|
|
4569
|
+
}
|
|
4570
|
+
catch (err) {
|
|
4571
|
+
throw err;
|
|
4572
|
+
}
|
|
4573
|
+
});
|
|
4574
|
+
}
|
|
4240
4575
|
/**
|
|
4241
4576
|
* Returns a list of Network Firewall Policies.
|
|
4242
4577
|
*
|
|
@@ -5559,6 +5894,72 @@ class NetworkFirewallClient {
|
|
|
5559
5894
|
}
|
|
5560
5895
|
});
|
|
5561
5896
|
}
|
|
5897
|
+
/**
|
|
5898
|
+
* Updates the NAT Rule with the given name in the network firewall policy.
|
|
5899
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5900
|
+
* @param UpdateNatRuleRequest
|
|
5901
|
+
* @return UpdateNatRuleResponse
|
|
5902
|
+
* @throws OciError when an error occurs
|
|
5903
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/networkfirewall/UpdateNatRule.ts.html |here} to see how to use UpdateNatRule API.
|
|
5904
|
+
*/
|
|
5905
|
+
updateNatRule(updateNatRuleRequest) {
|
|
5906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5907
|
+
if (this.logger)
|
|
5908
|
+
this.logger.debug("Calling operation NetworkFirewallClient#updateNatRule.");
|
|
5909
|
+
const operationName = "updateNatRule";
|
|
5910
|
+
const apiReferenceLink = "";
|
|
5911
|
+
const pathParams = {
|
|
5912
|
+
"{networkFirewallPolicyId}": updateNatRuleRequest.networkFirewallPolicyId,
|
|
5913
|
+
"{natRuleName}": updateNatRuleRequest.natRuleName
|
|
5914
|
+
};
|
|
5915
|
+
const queryParams = {};
|
|
5916
|
+
let headerParams = {
|
|
5917
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5918
|
+
"if-match": updateNatRuleRequest.ifMatch,
|
|
5919
|
+
"opc-request-id": updateNatRuleRequest.opcRequestId
|
|
5920
|
+
};
|
|
5921
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5922
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateNatRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
5923
|
+
if (this.logger)
|
|
5924
|
+
retrier.logger = this.logger;
|
|
5925
|
+
const request = yield oci_common_1.composeRequest({
|
|
5926
|
+
baseEndpoint: this._endpoint,
|
|
5927
|
+
defaultHeaders: this._defaultHeaders,
|
|
5928
|
+
path: "/networkFirewallPolicies/{networkFirewallPolicyId}/natRules/{natRuleName}",
|
|
5929
|
+
method: "PUT",
|
|
5930
|
+
bodyContent: common.ObjectSerializer.serialize(updateNatRuleRequest.updateNatRuleDetails, "UpdateNatRuleDetails", model.UpdateNatRuleDetails.getJsonObj),
|
|
5931
|
+
pathParams: pathParams,
|
|
5932
|
+
headerParams: headerParams,
|
|
5933
|
+
queryParams: queryParams
|
|
5934
|
+
});
|
|
5935
|
+
try {
|
|
5936
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5937
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5938
|
+
responseObject: {},
|
|
5939
|
+
body: yield response.json(),
|
|
5940
|
+
bodyKey: "natRule",
|
|
5941
|
+
bodyModel: model.NatRule,
|
|
5942
|
+
type: "model.NatRule",
|
|
5943
|
+
responseHeaders: [
|
|
5944
|
+
{
|
|
5945
|
+
value: response.headers.get("etag"),
|
|
5946
|
+
key: "etag",
|
|
5947
|
+
dataType: "string"
|
|
5948
|
+
},
|
|
5949
|
+
{
|
|
5950
|
+
value: response.headers.get("opc-request-id"),
|
|
5951
|
+
key: "opcRequestId",
|
|
5952
|
+
dataType: "string"
|
|
5953
|
+
}
|
|
5954
|
+
]
|
|
5955
|
+
});
|
|
5956
|
+
return sdkResponse;
|
|
5957
|
+
}
|
|
5958
|
+
catch (err) {
|
|
5959
|
+
throw err;
|
|
5960
|
+
}
|
|
5961
|
+
});
|
|
5962
|
+
}
|
|
5562
5963
|
/**
|
|
5563
5964
|
* Updates the NetworkFirewall
|
|
5564
5965
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|