oci-cloudguard 2.22.0 → 2.26.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/index.d.ts +3 -3
- package/index.js +3 -3
- package/lib/client.d.ts +254 -104
- package/lib/client.js +1227 -234
- package/lib/client.js.map +1 -1
- package/lib/cloudguard-waiter.d.ts +27 -3
- package/lib/cloudguard-waiter.js +39 -3
- package/lib/cloudguard-waiter.js.map +1 -1
- package/lib/model/activity-problem-aggregation-collection.d.ts +3 -3
- package/lib/model/activity-problem-aggregation-collection.js +3 -3
- package/lib/model/activity-problem-aggregation.d.ts +3 -3
- package/lib/model/activity-problem-aggregation.js +3 -3
- package/lib/model/actor-type.d.ts +3 -3
- package/lib/model/actor-type.js +3 -3
- package/lib/model/add-compartment-details.d.ts +29 -0
- package/lib/model/add-compartment-details.js +32 -0
- package/lib/model/add-compartment-details.js.map +1 -0
- package/lib/model/all-targets-selected.d.ts +3 -3
- package/lib/model/all-targets-selected.js +3 -3
- package/lib/model/attach-target-detector-recipe-details.d.ts +3 -3
- package/lib/model/attach-target-detector-recipe-details.js +3 -3
- package/lib/model/attach-target-responder-recipe-details.d.ts +3 -3
- package/lib/model/attach-target-responder-recipe-details.js +3 -3
- package/lib/model/candidate-responder-rule.d.ts +3 -3
- package/lib/model/candidate-responder-rule.js +3 -3
- package/lib/model/change-detector-recipe-compartment-details.d.ts +3 -3
- package/lib/model/change-detector-recipe-compartment-details.js +3 -3
- package/lib/model/change-managed-list-compartment-details.d.ts +3 -3
- package/lib/model/change-managed-list-compartment-details.js +3 -3
- package/lib/model/change-responder-recipe-compartment-details.d.ts +3 -3
- package/lib/model/change-responder-recipe-compartment-details.js +3 -3
- package/lib/model/change-security-policy-compartment-details.d.ts +30 -0
- package/lib/model/change-security-policy-compartment-details.js +32 -0
- package/lib/model/change-security-policy-compartment-details.js.map +1 -0
- package/lib/model/change-security-recipe-compartment-details.d.ts +30 -0
- package/lib/model/change-security-recipe-compartment-details.js +32 -0
- package/lib/model/change-security-recipe-compartment-details.js.map +1 -0
- package/lib/model/change-security-zone-compartment-details.d.ts +30 -0
- package/lib/model/change-security-zone-compartment-details.js +32 -0
- package/lib/model/change-security-zone-compartment-details.js.map +1 -0
- package/lib/model/classification-status.d.ts +3 -3
- package/lib/model/classification-status.js +3 -3
- package/lib/model/cloud-guard-status.d.ts +3 -3
- package/lib/model/cloud-guard-status.js +3 -3
- package/lib/model/composite-condition.d.ts +3 -3
- package/lib/model/composite-condition.js +3 -3
- package/lib/model/condition-filter-type.d.ts +3 -3
- package/lib/model/condition-filter-type.js +3 -3
- package/lib/model/condition-group.d.ts +3 -3
- package/lib/model/condition-group.js +3 -3
- package/lib/model/condition-metadata-type-collection.d.ts +3 -3
- package/lib/model/condition-metadata-type-collection.js +3 -3
- package/lib/model/condition-metadata-type-summary.d.ts +3 -3
- package/lib/model/condition-metadata-type-summary.js +3 -3
- package/lib/model/condition-metadata-type.d.ts +3 -3
- package/lib/model/condition-metadata-type.js +3 -3
- package/lib/model/condition-operator-name.d.ts +3 -3
- package/lib/model/condition-operator-name.js +3 -3
- package/lib/model/condition-operator.d.ts +3 -3
- package/lib/model/condition-operator.js +3 -3
- package/lib/model/condition-type-enum.d.ts +3 -3
- package/lib/model/condition-type-enum.js +3 -3
- package/lib/model/condition-value-type.d.ts +3 -3
- package/lib/model/condition-value-type.js +3 -3
- package/lib/model/condition.d.ts +3 -3
- package/lib/model/condition.js +3 -3
- package/lib/model/confidence.d.ts +3 -3
- package/lib/model/confidence.js +3 -3
- package/lib/model/config-value.d.ts +3 -3
- package/lib/model/config-value.js +3 -3
- package/lib/model/configuration-list-item-type.d.ts +3 -3
- package/lib/model/configuration-list-item-type.js +3 -3
- package/lib/model/configuration.d.ts +3 -3
- package/lib/model/configuration.js +3 -3
- package/lib/model/create-data-mask-rule-details.d.ts +3 -3
- package/lib/model/create-data-mask-rule-details.js +3 -3
- package/lib/model/create-detector-recipe-details.d.ts +3 -3
- package/lib/model/create-detector-recipe-details.js +3 -3
- package/lib/model/create-managed-list-details.d.ts +3 -3
- package/lib/model/create-managed-list-details.js +3 -3
- package/lib/model/create-responder-recipe-details.d.ts +3 -3
- package/lib/model/create-responder-recipe-details.js +3 -3
- package/lib/model/create-security-policy-details.d.ts +68 -0
- package/lib/model/create-security-policy-details.js +32 -0
- package/lib/model/create-security-policy-details.js.map +1 -0
- package/lib/model/create-security-recipe-details.d.ts +60 -0
- package/lib/model/create-security-recipe-details.js +32 -0
- package/lib/model/create-security-recipe-details.js.map +1 -0
- package/lib/model/create-security-zone-details.d.ts +60 -0
- package/lib/model/create-security-zone-details.js +32 -0
- package/lib/model/create-security-zone-details.js.map +1 -0
- package/lib/model/create-target-details.d.ts +3 -3
- package/lib/model/create-target-details.js +3 -3
- package/lib/model/create-target-detector-recipe-details.d.ts +3 -3
- package/lib/model/create-target-detector-recipe-details.js +3 -3
- package/lib/model/create-target-responder-recipe-details.d.ts +3 -3
- package/lib/model/create-target-responder-recipe-details.js +3 -3
- package/lib/model/data-mask-category.d.ts +3 -3
- package/lib/model/data-mask-category.js +3 -3
- package/lib/model/data-mask-rule-collection.d.ts +3 -3
- package/lib/model/data-mask-rule-collection.js +3 -3
- package/lib/model/data-mask-rule-status.d.ts +3 -3
- package/lib/model/data-mask-rule-status.js +3 -3
- package/lib/model/data-mask-rule-summary.d.ts +3 -3
- package/lib/model/data-mask-rule-summary.js +3 -3
- package/lib/model/data-mask-rule.d.ts +3 -3
- package/lib/model/data-mask-rule.js +3 -3
- package/lib/model/detector-collection.d.ts +3 -3
- package/lib/model/detector-collection.js +3 -3
- package/lib/model/detector-configuration.d.ts +3 -3
- package/lib/model/detector-configuration.js +3 -3
- package/lib/model/detector-details.d.ts +3 -3
- package/lib/model/detector-details.js +3 -3
- package/lib/model/detector-enum.d.ts +3 -3
- package/lib/model/detector-enum.js +3 -3
- package/lib/model/detector-recipe-collection.d.ts +3 -3
- package/lib/model/detector-recipe-collection.js +3 -3
- package/lib/model/detector-recipe-detector-rule-collection.d.ts +3 -3
- package/lib/model/detector-recipe-detector-rule-collection.js +3 -3
- package/lib/model/detector-recipe-detector-rule-summary.d.ts +3 -3
- package/lib/model/detector-recipe-detector-rule-summary.js +3 -3
- package/lib/model/detector-recipe-detector-rule.d.ts +3 -3
- package/lib/model/detector-recipe-detector-rule.js +3 -3
- package/lib/model/detector-recipe-summary.d.ts +3 -3
- package/lib/model/detector-recipe-summary.js +3 -3
- package/lib/model/detector-recipe.d.ts +3 -3
- package/lib/model/detector-recipe.js +3 -3
- package/lib/model/detector-rule-collection.d.ts +3 -3
- package/lib/model/detector-rule-collection.js +3 -3
- package/lib/model/detector-rule-summary.d.ts +3 -3
- package/lib/model/detector-rule-summary.js +3 -3
- package/lib/model/detector-rule.d.ts +3 -3
- package/lib/model/detector-rule.js +3 -3
- package/lib/model/detector-summary.d.ts +3 -3
- package/lib/model/detector-summary.js +3 -3
- package/lib/model/detector.d.ts +3 -3
- package/lib/model/detector.js +3 -3
- package/lib/model/event-status.d.ts +3 -3
- package/lib/model/event-status.js +3 -3
- package/lib/model/execute-responder-execution-details.d.ts +3 -3
- package/lib/model/execute-responder-execution-details.js +3 -3
- package/lib/model/feed-provider-type.d.ts +3 -3
- package/lib/model/feed-provider-type.js +3 -3
- package/lib/model/geographical-location.d.ts +3 -3
- package/lib/model/geographical-location.js +3 -3
- package/lib/model/impacted-resource-collection.d.ts +3 -3
- package/lib/model/impacted-resource-collection.js +3 -3
- package/lib/model/impacted-resource-summary.d.ts +3 -3
- package/lib/model/impacted-resource-summary.js +3 -3
- package/lib/model/index.d.ts +49 -3
- package/lib/model/index.js +54 -8
- package/lib/model/index.js.map +1 -1
- package/lib/model/lifecycle-state.d.ts +3 -3
- package/lib/model/lifecycle-state.js +3 -3
- package/lib/model/managed-list-collection.d.ts +3 -3
- package/lib/model/managed-list-collection.js +3 -3
- package/lib/model/managed-list-summary.d.ts +3 -3
- package/lib/model/managed-list-summary.js +3 -3
- package/lib/model/managed-list-type-collection.d.ts +3 -3
- package/lib/model/managed-list-type-collection.js +3 -3
- package/lib/model/managed-list-type-summary.d.ts +3 -3
- package/lib/model/managed-list-type-summary.js +3 -3
- package/lib/model/managed-list-type.d.ts +3 -3
- package/lib/model/managed-list-type.js +3 -3
- package/lib/model/managed-list.d.ts +3 -3
- package/lib/model/managed-list.js +3 -3
- package/lib/model/operator-summary.d.ts +3 -3
- package/lib/model/operator-summary.js +3 -3
- package/lib/model/operator-type.d.ts +3 -3
- package/lib/model/operator-type.js +3 -3
- package/lib/model/owner-type.d.ts +3 -3
- package/lib/model/owner-type.js +3 -3
- package/lib/model/policy-collection.d.ts +3 -3
- package/lib/model/policy-collection.js +3 -3
- package/lib/model/policy-summary.d.ts +3 -3
- package/lib/model/policy-summary.js +3 -3
- package/lib/model/political-location.d.ts +3 -3
- package/lib/model/political-location.js +3 -3
- package/lib/model/problem-aggregation-collection.d.ts +3 -3
- package/lib/model/problem-aggregation-collection.js +3 -3
- package/lib/model/problem-aggregation.d.ts +3 -3
- package/lib/model/problem-aggregation.js +3 -3
- package/lib/model/problem-category-enum.d.ts +25 -0
- package/lib/model/problem-category-enum.js +36 -0
- package/lib/model/problem-category-enum.js.map +1 -0
- package/lib/model/problem-collection.d.ts +3 -3
- package/lib/model/problem-collection.js +3 -3
- package/lib/model/problem-dimension.d.ts +3 -3
- package/lib/model/problem-dimension.js +3 -3
- package/lib/model/problem-endpoint-collection.d.ts +3 -3
- package/lib/model/problem-endpoint-collection.js +3 -3
- package/lib/model/problem-endpoint-summary.d.ts +3 -3
- package/lib/model/problem-endpoint-summary.js +3 -3
- package/lib/model/problem-history-collection.d.ts +3 -3
- package/lib/model/problem-history-collection.js +3 -3
- package/lib/model/problem-history-summary.d.ts +3 -3
- package/lib/model/problem-history-summary.js +3 -3
- package/lib/model/problem-lifecycle-detail.d.ts +3 -3
- package/lib/model/problem-lifecycle-detail.js +3 -3
- package/lib/model/problem-lifecycle-state.d.ts +3 -3
- package/lib/model/problem-lifecycle-state.js +3 -3
- package/lib/model/problem-summary.d.ts +3 -3
- package/lib/model/problem-summary.js +3 -3
- package/lib/model/problem-trend-aggregation-collection.d.ts +3 -3
- package/lib/model/problem-trend-aggregation-collection.js +3 -3
- package/lib/model/problem-trend-aggregation.d.ts +3 -3
- package/lib/model/problem-trend-aggregation.js +3 -3
- package/lib/model/problem.d.ts +3 -3
- package/lib/model/problem.js +3 -3
- package/lib/model/recommendation-lifecycle-detail.d.ts +3 -3
- package/lib/model/recommendation-lifecycle-detail.js +3 -3
- package/lib/model/recommendation-summary-collection.d.ts +3 -3
- package/lib/model/recommendation-summary-collection.js +3 -3
- package/lib/model/recommendation-summary.d.ts +3 -3
- package/lib/model/recommendation-summary.js +3 -3
- package/lib/model/recommendation-type.d.ts +3 -3
- package/lib/model/recommendation-type.js +3 -3
- package/lib/model/remove-compartment-details.d.ts +29 -0
- package/lib/model/remove-compartment-details.js +32 -0
- package/lib/model/remove-compartment-details.js.map +1 -0
- package/lib/model/request-summarized-trend-resource-risk-scores-details.d.ts +3 -3
- package/lib/model/request-summarized-trend-resource-risk-scores-details.js +3 -3
- package/lib/model/resource-profile-collection.d.ts +3 -3
- package/lib/model/resource-profile-collection.js +3 -3
- package/lib/model/resource-profile-endpoint-collection.d.ts +3 -3
- package/lib/model/resource-profile-endpoint-collection.js +3 -3
- package/lib/model/resource-profile-endpoint-summary.d.ts +3 -3
- package/lib/model/resource-profile-endpoint-summary.js +3 -3
- package/lib/model/resource-profile-impacted-resource-collection.d.ts +3 -3
- package/lib/model/resource-profile-impacted-resource-collection.js +3 -3
- package/lib/model/resource-profile-impacted-resource-summary.d.ts +3 -3
- package/lib/model/resource-profile-impacted-resource-summary.js +3 -3
- package/lib/model/resource-profile-risk-score-aggregation-summary-collection.d.ts +3 -3
- package/lib/model/resource-profile-risk-score-aggregation-summary-collection.js +3 -3
- package/lib/model/resource-profile-risk-score-aggregation-summary.d.ts +3 -3
- package/lib/model/resource-profile-risk-score-aggregation-summary.js +3 -3
- package/lib/model/resource-profile-summary.d.ts +3 -3
- package/lib/model/resource-profile-summary.js +3 -3
- package/lib/model/resource-profile.d.ts +3 -3
- package/lib/model/resource-profile.js +3 -3
- package/lib/model/resource-risk-score-aggregation-collection.d.ts +3 -3
- package/lib/model/resource-risk-score-aggregation-collection.js +3 -3
- package/lib/model/resource-risk-score-aggregation.d.ts +3 -3
- package/lib/model/resource-risk-score-aggregation.js +3 -3
- package/lib/model/resource-risk-score-dimension.d.ts +3 -3
- package/lib/model/resource-risk-score-dimension.js +3 -3
- package/lib/model/resource-type-collection.d.ts +3 -3
- package/lib/model/resource-type-collection.js +3 -3
- package/lib/model/resource-type-summary.d.ts +3 -3
- package/lib/model/resource-type-summary.js +3 -3
- package/lib/model/responder-activity-collection.d.ts +3 -3
- package/lib/model/responder-activity-collection.js +3 -3
- package/lib/model/responder-activity-summary.d.ts +3 -3
- package/lib/model/responder-activity-summary.js +3 -3
- package/lib/model/responder-activity-type.d.ts +3 -3
- package/lib/model/responder-activity-type.js +3 -3
- package/lib/model/responder-configuration.d.ts +3 -3
- package/lib/model/responder-configuration.js +3 -3
- package/lib/model/responder-dimension.d.ts +3 -3
- package/lib/model/responder-dimension.js +3 -3
- package/lib/model/responder-execution-aggregation-collection.d.ts +3 -3
- package/lib/model/responder-execution-aggregation-collection.js +3 -3
- package/lib/model/responder-execution-aggregation.d.ts +3 -3
- package/lib/model/responder-execution-aggregation.js +3 -3
- package/lib/model/responder-execution-collection.d.ts +3 -3
- package/lib/model/responder-execution-collection.js +3 -3
- package/lib/model/responder-execution-modes.d.ts +3 -3
- package/lib/model/responder-execution-modes.js +3 -3
- package/lib/model/responder-execution-states.d.ts +3 -3
- package/lib/model/responder-execution-states.js +3 -3
- package/lib/model/responder-execution-status.d.ts +3 -3
- package/lib/model/responder-execution-status.js +3 -3
- package/lib/model/responder-execution-summary.d.ts +3 -3
- package/lib/model/responder-execution-summary.js +3 -3
- package/lib/model/responder-execution-trend-aggregation-collection.d.ts +3 -3
- package/lib/model/responder-execution-trend-aggregation-collection.js +3 -3
- package/lib/model/responder-execution-trend-aggregation.d.ts +3 -3
- package/lib/model/responder-execution-trend-aggregation.js +3 -3
- package/lib/model/responder-execution.d.ts +3 -3
- package/lib/model/responder-execution.js +3 -3
- package/lib/model/responder-mode-types.d.ts +3 -3
- package/lib/model/responder-mode-types.js +3 -3
- package/lib/model/responder-recipe-collection.d.ts +3 -3
- package/lib/model/responder-recipe-collection.js +3 -3
- package/lib/model/responder-recipe-responder-rule-collection.d.ts +3 -3
- package/lib/model/responder-recipe-responder-rule-collection.js +3 -3
- package/lib/model/responder-recipe-responder-rule-summary.d.ts +3 -3
- package/lib/model/responder-recipe-responder-rule-summary.js +3 -3
- package/lib/model/responder-recipe-responder-rule.d.ts +3 -3
- package/lib/model/responder-recipe-responder-rule.js +3 -3
- package/lib/model/responder-recipe-summary.d.ts +3 -3
- package/lib/model/responder-recipe-summary.js +3 -3
- package/lib/model/responder-recipe.d.ts +3 -3
- package/lib/model/responder-recipe.js +3 -3
- package/lib/model/responder-rule-collection.d.ts +3 -3
- package/lib/model/responder-rule-collection.js +3 -3
- package/lib/model/responder-rule-details.d.ts +3 -3
- package/lib/model/responder-rule-details.js +3 -3
- package/lib/model/responder-rule-execution-details.d.ts +3 -3
- package/lib/model/responder-rule-execution-details.js +3 -3
- package/lib/model/responder-rule-summary.d.ts +3 -3
- package/lib/model/responder-rule-summary.js +3 -3
- package/lib/model/responder-rule.d.ts +3 -3
- package/lib/model/responder-rule.js +3 -3
- package/lib/model/responder-type.d.ts +3 -3
- package/lib/model/responder-type.js +3 -3
- package/lib/model/risk-level.d.ts +3 -3
- package/lib/model/risk-level.js +3 -3
- package/lib/model/risk-score-aggregation-collection.d.ts +3 -3
- package/lib/model/risk-score-aggregation-collection.js +3 -3
- package/lib/model/risk-score-aggregation.d.ts +3 -3
- package/lib/model/risk-score-aggregation.js +3 -3
- package/lib/model/rule-summary.d.ts +3 -3
- package/lib/model/rule-summary.js +3 -3
- package/lib/model/security-policy-collection.d.ts +29 -0
- package/lib/model/security-policy-collection.js +64 -0
- package/lib/model/security-policy-collection.js.map +1 -0
- package/lib/model/security-policy-summary.d.ts +106 -0
- package/lib/model/security-policy-summary.js +32 -0
- package/lib/model/security-policy-summary.js.map +1 -0
- package/lib/model/security-policy.d.ts +106 -0
- package/lib/model/security-policy.js +32 -0
- package/lib/model/security-policy.js.map +1 -0
- package/lib/model/security-rating.d.ts +3 -3
- package/lib/model/security-rating.js +3 -3
- package/lib/model/security-recipe-collection.d.ts +29 -0
- package/lib/model/security-recipe-collection.js +64 -0
- package/lib/model/security-recipe-collection.js.map +1 -0
- package/lib/model/security-recipe-summary.d.ts +98 -0
- package/lib/model/security-recipe-summary.js +32 -0
- package/lib/model/security-recipe-summary.js.map +1 -0
- package/lib/model/security-recipe.d.ts +98 -0
- package/lib/model/security-recipe.js +32 -0
- package/lib/model/security-recipe.js.map +1 -0
- package/lib/model/security-score-aggregation-collection.d.ts +3 -3
- package/lib/model/security-score-aggregation-collection.js +3 -3
- package/lib/model/security-score-aggregation.d.ts +3 -3
- package/lib/model/security-score-aggregation.js +3 -3
- package/lib/model/security-score-trend-aggregation-collection.d.ts +3 -3
- package/lib/model/security-score-trend-aggregation-collection.js +3 -3
- package/lib/model/security-score-trend-aggregation.d.ts +3 -3
- package/lib/model/security-score-trend-aggregation.js +3 -3
- package/lib/model/security-zone-collection.d.ts +29 -0
- package/lib/model/security-zone-collection.js +64 -0
- package/lib/model/security-zone-collection.js.map +1 -0
- package/lib/model/security-zone-summary.d.ts +94 -0
- package/lib/model/security-zone-summary.js +32 -0
- package/lib/model/security-zone-summary.js.map +1 -0
- package/lib/model/security-zone-target-details.d.ts +39 -0
- package/lib/model/security-zone-target-details.js +69 -0
- package/lib/model/security-zone-target-details.js.map +1 -0
- package/lib/model/security-zone.d.ts +102 -0
- package/lib/model/security-zone.js +32 -0
- package/lib/model/security-zone.js.map +1 -0
- package/lib/model/service-type-summary.d.ts +3 -3
- package/lib/model/service-type-summary.js +3 -3
- package/lib/model/severity.d.ts +3 -3
- package/lib/model/severity.js +3 -3
- package/lib/model/sighting-collection.d.ts +3 -3
- package/lib/model/sighting-collection.js +3 -3
- package/lib/model/sighting-endpoint-collection.d.ts +3 -3
- package/lib/model/sighting-endpoint-collection.js +3 -3
- package/lib/model/sighting-endpoint-summary.d.ts +3 -3
- package/lib/model/sighting-endpoint-summary.js +3 -3
- package/lib/model/sighting-impacted-resource-collection.d.ts +3 -3
- package/lib/model/sighting-impacted-resource-collection.js +3 -3
- package/lib/model/sighting-impacted-resource-summary.d.ts +3 -3
- package/lib/model/sighting-impacted-resource-summary.js +3 -3
- package/lib/model/sighting-summary.d.ts +3 -3
- package/lib/model/sighting-summary.js +3 -3
- package/lib/model/sighting-type.d.ts +3 -3
- package/lib/model/sighting-type.js +3 -3
- package/lib/model/sighting.d.ts +3 -7
- package/lib/model/sighting.js +3 -3
- package/lib/model/sighting.js.map +1 -1
- package/lib/model/simple-condition.d.ts +3 -3
- package/lib/model/simple-condition.js +3 -3
- package/lib/model/skip-bulk-responder-execution-details.d.ts +3 -3
- package/lib/model/skip-bulk-responder-execution-details.js +3 -3
- package/lib/model/sort-orders.d.ts +3 -3
- package/lib/model/sort-orders.js +3 -3
- package/lib/model/tactic-collection.d.ts +3 -3
- package/lib/model/tactic-collection.js +3 -3
- package/lib/model/tactic-summary.d.ts +3 -3
- package/lib/model/tactic-summary.js +3 -3
- package/lib/model/target-collection.d.ts +3 -3
- package/lib/model/target-collection.js +3 -3
- package/lib/model/target-details.d.ts +25 -0
- package/lib/model/target-details.js +68 -0
- package/lib/model/target-details.js.map +1 -0
- package/lib/model/target-detector-details.d.ts +3 -3
- package/lib/model/target-detector-details.js +3 -3
- package/lib/model/target-detector-recipe-collection.d.ts +3 -3
- package/lib/model/target-detector-recipe-collection.js +3 -3
- package/lib/model/target-detector-recipe-detector-rule-collection.d.ts +3 -3
- package/lib/model/target-detector-recipe-detector-rule-collection.js +3 -3
- package/lib/model/target-detector-recipe-detector-rule-summary.d.ts +3 -3
- package/lib/model/target-detector-recipe-detector-rule-summary.js +3 -3
- package/lib/model/target-detector-recipe-detector-rule.d.ts +3 -3
- package/lib/model/target-detector-recipe-detector-rule.js +3 -3
- package/lib/model/target-detector-recipe-summary.d.ts +3 -3
- package/lib/model/target-detector-recipe-summary.js +3 -3
- package/lib/model/target-detector-recipe.d.ts +3 -3
- package/lib/model/target-detector-recipe.js +3 -3
- package/lib/model/target-ids-selected.d.ts +3 -3
- package/lib/model/target-ids-selected.js +3 -3
- package/lib/model/target-resource-type.d.ts +4 -3
- package/lib/model/target-resource-type.js +4 -3
- package/lib/model/target-resource-type.js.map +1 -1
- package/lib/model/target-resource-types-selected.d.ts +4 -3
- package/lib/model/target-resource-types-selected.js +4 -3
- package/lib/model/target-resource-types-selected.js.map +1 -1
- package/lib/model/target-responder-recipe-collection.d.ts +3 -3
- package/lib/model/target-responder-recipe-collection.js +3 -3
- package/lib/model/target-responder-recipe-responder-rule-collection.d.ts +3 -3
- package/lib/model/target-responder-recipe-responder-rule-collection.js +3 -3
- package/lib/model/target-responder-recipe-responder-rule-summary.d.ts +3 -3
- package/lib/model/target-responder-recipe-responder-rule-summary.js +3 -3
- package/lib/model/target-responder-recipe-responder-rule.d.ts +3 -3
- package/lib/model/target-responder-recipe-responder-rule.js +3 -3
- package/lib/model/target-responder-recipe-summary.d.ts +3 -3
- package/lib/model/target-responder-recipe-summary.js +3 -3
- package/lib/model/target-responder-recipe.d.ts +3 -3
- package/lib/model/target-responder-recipe.js +3 -3
- package/lib/model/target-selected.d.ts +3 -3
- package/lib/model/target-selected.js +3 -3
- package/lib/model/target-summary.d.ts +3 -3
- package/lib/model/target-summary.js +3 -3
- package/lib/model/target.d.ts +4 -3
- package/lib/model/target.js +9 -3
- package/lib/model/target.js.map +1 -1
- package/lib/model/technique-collection.d.ts +3 -3
- package/lib/model/technique-collection.js +3 -3
- package/lib/model/technique-summary.d.ts +3 -3
- package/lib/model/technique-summary.js +3 -3
- package/lib/model/trigger-responder-details.d.ts +3 -3
- package/lib/model/trigger-responder-details.js +3 -3
- package/lib/model/update-bulk-problem-status-details.d.ts +3 -3
- package/lib/model/update-bulk-problem-status-details.js +3 -3
- package/lib/model/update-configuration-details.d.ts +3 -3
- package/lib/model/update-configuration-details.js +3 -3
- package/lib/model/update-data-mask-rule-details.d.ts +3 -3
- package/lib/model/update-data-mask-rule-details.js +3 -3
- package/lib/model/update-detector-recipe-details.d.ts +3 -3
- package/lib/model/update-detector-recipe-details.js +3 -3
- package/lib/model/update-detector-recipe-detector-rule-details.d.ts +3 -3
- package/lib/model/update-detector-recipe-detector-rule-details.js +3 -3
- package/lib/model/update-detector-recipe-detector-rule.d.ts +3 -3
- package/lib/model/update-detector-recipe-detector-rule.js +3 -3
- package/lib/model/update-detector-rule-details.d.ts +3 -3
- package/lib/model/update-detector-rule-details.js +3 -3
- package/lib/model/update-managed-list-details.d.ts +3 -3
- package/lib/model/update-managed-list-details.js +3 -3
- package/lib/model/update-problem-status-details.d.ts +3 -3
- package/lib/model/update-problem-status-details.js +3 -3
- package/lib/model/update-responder-recipe-details.d.ts +3 -3
- package/lib/model/update-responder-recipe-details.js +3 -3
- package/lib/model/update-responder-recipe-responder-rule-details.d.ts +3 -3
- package/lib/model/update-responder-recipe-responder-rule-details.js +3 -3
- package/lib/model/update-responder-recipe-responder-rule.d.ts +3 -3
- package/lib/model/update-responder-recipe-responder-rule.js +3 -3
- package/lib/model/update-responder-rule-details.d.ts +3 -3
- package/lib/model/update-responder-rule-details.js +3 -3
- package/lib/model/update-security-policy-details.d.ts +48 -0
- package/lib/model/update-security-policy-details.js +32 -0
- package/lib/model/update-security-policy-details.js.map +1 -0
- package/lib/model/update-security-recipe-details.d.ts +56 -0
- package/lib/model/update-security-recipe-details.js +32 -0
- package/lib/model/update-security-recipe-details.js.map +1 -0
- package/lib/model/update-security-zone-details.d.ts +56 -0
- package/lib/model/update-security-zone-details.js +32 -0
- package/lib/model/update-security-zone-details.js.map +1 -0
- package/lib/model/update-target-details.d.ts +3 -3
- package/lib/model/update-target-details.js +3 -3
- package/lib/model/update-target-detector-recipe-details.d.ts +11 -3
- package/lib/model/update-target-detector-recipe-details.js +3 -3
- package/lib/model/update-target-detector-recipe-details.js.map +1 -1
- package/lib/model/update-target-detector-recipe-detector-rule-details.d.ts +3 -3
- package/lib/model/update-target-detector-recipe-detector-rule-details.js +3 -3
- package/lib/model/update-target-detector-recipe.d.ts +3 -3
- package/lib/model/update-target-detector-recipe.js +3 -3
- package/lib/model/update-target-detector-rule-details.d.ts +3 -3
- package/lib/model/update-target-detector-rule-details.js +3 -3
- package/lib/model/update-target-recipe-detector-rule-details.d.ts +3 -3
- package/lib/model/update-target-recipe-detector-rule-details.js +3 -3
- package/lib/model/update-target-recipe-responder-rule-details.d.ts +3 -3
- package/lib/model/update-target-recipe-responder-rule-details.js +3 -3
- package/lib/model/update-target-responder-recipe-details.d.ts +3 -3
- package/lib/model/update-target-responder-recipe-details.js +3 -3
- package/lib/model/update-target-responder-recipe-responder-rule-details.d.ts +3 -3
- package/lib/model/update-target-responder-recipe-responder-rule-details.js +3 -3
- package/lib/model/update-target-responder-recipe.d.ts +3 -3
- package/lib/model/update-target-responder-recipe.js +3 -3
- package/lib/model/update-target-responder-rule-details.d.ts +3 -3
- package/lib/model/update-target-responder-rule-details.js +3 -3
- package/lib/request/add-compartment-request.d.ts +49 -0
- package/lib/request/add-compartment-request.js +15 -0
- package/lib/request/add-compartment-request.js.map +1 -0
- package/lib/request/change-detector-recipe-compartment-request.d.ts +1 -1
- package/lib/request/change-managed-list-compartment-request.d.ts +1 -1
- package/lib/request/change-responder-recipe-compartment-request.d.ts +1 -1
- package/lib/request/change-security-recipe-compartment-request.d.ts +49 -0
- package/lib/request/change-security-recipe-compartment-request.js +15 -0
- package/lib/request/change-security-recipe-compartment-request.js.map +1 -0
- package/lib/request/change-security-zone-compartment-request.d.ts +49 -0
- package/lib/request/change-security-zone-compartment-request.js +15 -0
- package/lib/request/change-security-zone-compartment-request.js.map +1 -0
- package/lib/request/create-data-mask-rule-request.d.ts +1 -1
- package/lib/request/create-detector-recipe-request.d.ts +1 -1
- package/lib/request/create-managed-list-request.d.ts +1 -1
- package/lib/request/create-responder-recipe-request.d.ts +1 -1
- package/lib/request/create-security-recipe-request.d.ts +36 -0
- package/lib/request/create-security-recipe-request.js +15 -0
- package/lib/request/create-security-recipe-request.js.map +1 -0
- package/lib/request/create-security-zone-request.d.ts +36 -0
- package/lib/request/create-security-zone-request.js +15 -0
- package/lib/request/create-security-zone-request.js.map +1 -0
- package/lib/request/create-target-detector-recipe-request.d.ts +1 -1
- package/lib/request/create-target-request.d.ts +1 -1
- package/lib/request/create-target-responder-recipe-request.d.ts +1 -1
- package/lib/request/delete-data-mask-rule-request.d.ts +1 -1
- package/lib/request/delete-detector-recipe-request.d.ts +1 -1
- package/lib/request/delete-managed-list-request.d.ts +1 -1
- package/lib/request/delete-responder-recipe-request.d.ts +1 -1
- package/lib/request/delete-security-recipe-request.d.ts +35 -0
- package/lib/request/delete-security-recipe-request.js +15 -0
- package/lib/request/delete-security-recipe-request.js.map +1 -0
- package/lib/request/delete-security-zone-request.d.ts +35 -0
- package/lib/request/delete-security-zone-request.js +15 -0
- package/lib/request/delete-security-zone-request.js.map +1 -0
- package/lib/request/delete-target-detector-recipe-request.d.ts +1 -1
- package/lib/request/delete-target-request.d.ts +1 -1
- package/lib/request/delete-target-responder-recipe-request.d.ts +1 -1
- package/lib/request/execute-responder-execution-request.d.ts +1 -1
- package/lib/request/get-condition-metadata-type-request.d.ts +1 -1
- package/lib/request/get-configuration-request.d.ts +1 -1
- package/lib/request/get-data-mask-rule-request.d.ts +1 -1
- package/lib/request/get-detector-recipe-detector-rule-request.d.ts +1 -1
- package/lib/request/get-detector-recipe-request.d.ts +1 -1
- package/lib/request/get-detector-request.d.ts +1 -1
- package/lib/request/get-detector-rule-request.d.ts +1 -1
- package/lib/request/get-managed-list-request.d.ts +1 -1
- package/lib/request/get-problem-request.d.ts +1 -1
- package/lib/request/get-resource-profile-request.d.ts +1 -1
- package/lib/request/get-responder-execution-request.d.ts +1 -1
- package/lib/request/get-responder-recipe-request.d.ts +1 -1
- package/lib/request/get-responder-recipe-responder-rule-request.d.ts +1 -1
- package/lib/request/get-responder-rule-request.d.ts +1 -1
- package/lib/request/get-security-policy-request.d.ts +26 -0
- package/lib/request/get-security-policy-request.js +15 -0
- package/lib/request/get-security-policy-request.js.map +1 -0
- package/lib/request/get-security-recipe-request.d.ts +26 -0
- package/lib/request/get-security-recipe-request.js +15 -0
- package/lib/request/get-security-recipe-request.js.map +1 -0
- package/lib/request/get-security-zone-request.d.ts +26 -0
- package/lib/request/get-security-zone-request.js +15 -0
- package/lib/request/get-security-zone-request.js.map +1 -0
- package/lib/request/get-sighting-request.d.ts +1 -1
- package/lib/request/get-target-detector-recipe-detector-rule-request.d.ts +1 -1
- package/lib/request/get-target-detector-recipe-request.d.ts +1 -1
- package/lib/request/get-target-request.d.ts +1 -1
- package/lib/request/get-target-responder-recipe-request.d.ts +1 -1
- package/lib/request/get-target-responder-recipe-responder-rule-request.d.ts +1 -1
- package/lib/request/index.d.ts +35 -3
- package/lib/request/index.js +10 -4
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-condition-metadata-types-request.d.ts +1 -1
- package/lib/request/list-data-mask-rules-request.d.ts +1 -1
- package/lib/request/list-detector-recipe-detector-rules-request.d.ts +1 -1
- package/lib/request/list-detector-recipes-request.d.ts +1 -1
- package/lib/request/list-detector-rules-request.d.ts +1 -1
- package/lib/request/list-detectors-request.d.ts +1 -1
- package/lib/request/list-impacted-resources-request.d.ts +1 -1
- package/lib/request/list-managed-list-types-request.d.ts +1 -1
- package/lib/request/list-managed-lists-request.d.ts +1 -1
- package/lib/request/list-policies-request.d.ts +1 -1
- package/lib/request/list-problem-endpoints-request.d.ts +1 -1
- package/lib/request/list-problem-histories-request.d.ts +1 -1
- package/lib/request/list-problems-request.d.ts +6 -1
- package/lib/request/list-problems-request.js.map +1 -1
- package/lib/request/list-recommendations-request.d.ts +1 -1
- package/lib/request/list-resource-profile-endpoints-request.d.ts +1 -1
- package/lib/request/list-resource-profile-impacted-resources-request.d.ts +1 -1
- package/lib/request/list-resource-profiles-request.d.ts +1 -1
- package/lib/request/list-resource-types-request.d.ts +1 -1
- package/lib/request/list-responder-activities-request.d.ts +1 -1
- package/lib/request/list-responder-executions-request.d.ts +1 -1
- package/lib/request/list-responder-recipe-responder-rules-request.d.ts +1 -1
- package/lib/request/list-responder-recipes-request.d.ts +1 -1
- package/lib/request/list-responder-rules-request.d.ts +1 -1
- package/lib/request/list-security-policies-request.d.ts +62 -0
- package/lib/request/list-security-policies-request.js +24 -0
- package/lib/request/list-security-policies-request.js.map +1 -0
- package/lib/request/list-security-recipes-request.d.ts +62 -0
- package/lib/request/list-security-recipes-request.js +24 -0
- package/lib/request/list-security-recipes-request.js.map +1 -0
- package/lib/request/list-security-zones-request.d.ts +70 -0
- package/lib/request/list-security-zones-request.js +24 -0
- package/lib/request/list-security-zones-request.js.map +1 -0
- package/lib/request/list-sighting-endpoints-request.d.ts +1 -1
- package/lib/request/list-sighting-impacted-resources-request.d.ts +1 -1
- package/lib/request/list-sightings-request.d.ts +1 -1
- package/lib/request/list-tactics-request.d.ts +1 -1
- package/lib/request/list-target-detector-recipe-detector-rules-request.d.ts +1 -1
- package/lib/request/list-target-detector-recipes-request.d.ts +1 -1
- package/lib/request/list-target-responder-recipe-responder-rules-request.d.ts +1 -1
- package/lib/request/list-target-responder-recipes-request.d.ts +1 -1
- package/lib/request/list-targets-request.d.ts +8 -1
- package/lib/request/list-targets-request.js.map +1 -1
- package/lib/request/list-techniques-request.d.ts +1 -1
- package/lib/request/remove-compartment-request.d.ts +49 -0
- package/lib/request/remove-compartment-request.js +15 -0
- package/lib/request/remove-compartment-request.js.map +1 -0
- package/lib/request/request-risk-scores-request.d.ts +1 -1
- package/lib/request/request-security-score-summarized-trend-request.d.ts +1 -1
- package/lib/request/request-security-scores-request.d.ts +1 -1
- package/lib/request/request-summarized-activity-problems-request.d.ts +1 -1
- package/lib/request/request-summarized-problems-request.d.ts +1 -1
- package/lib/request/request-summarized-responder-executions-request.d.ts +1 -1
- package/lib/request/request-summarized-risk-scores-request.d.ts +1 -1
- package/lib/request/request-summarized-security-scores-request.d.ts +1 -1
- package/lib/request/request-summarized-top-trend-resource-profile-risk-scores-request.d.ts +1 -1
- package/lib/request/request-summarized-trend-problems-request.d.ts +1 -1
- package/lib/request/request-summarized-trend-resource-risk-scores-request.d.ts +1 -1
- package/lib/request/request-summarized-trend-responder-executions-request.d.ts +1 -1
- package/lib/request/request-summarized-trend-security-scores-request.d.ts +1 -1
- package/lib/request/skip-bulk-responder-execution-request.d.ts +1 -1
- package/lib/request/skip-responder-execution-request.d.ts +1 -1
- package/lib/request/trigger-responder-request.d.ts +1 -1
- package/lib/request/update-bulk-problem-status-request.d.ts +1 -1
- package/lib/request/update-configuration-request.d.ts +1 -1
- package/lib/request/update-data-mask-rule-request.d.ts +1 -1
- package/lib/request/update-detector-recipe-detector-rule-request.d.ts +1 -1
- package/lib/request/update-detector-recipe-request.d.ts +1 -1
- package/lib/request/update-managed-list-request.d.ts +1 -1
- package/lib/request/update-problem-status-request.d.ts +1 -1
- package/lib/request/update-responder-recipe-request.d.ts +1 -1
- package/lib/request/update-responder-recipe-responder-rule-request.d.ts +1 -1
- package/lib/request/update-security-recipe-request.d.ts +40 -0
- package/lib/request/update-security-recipe-request.js +15 -0
- package/lib/request/update-security-recipe-request.js.map +1 -0
- package/lib/request/update-security-zone-request.d.ts +40 -0
- package/lib/request/update-security-zone-request.js +15 -0
- package/lib/request/update-security-zone-request.js.map +1 -0
- package/lib/request/update-target-detector-recipe-detector-rule-request.d.ts +1 -1
- package/lib/request/update-target-detector-recipe-request.d.ts +1 -1
- package/lib/request/update-target-request.d.ts +1 -1
- package/lib/request/update-target-responder-recipe-request.d.ts +1 -1
- package/lib/request/update-target-responder-recipe-responder-rule-request.d.ts +1 -1
- package/lib/response/add-compartment-response.d.ts +30 -0
- package/lib/response/add-compartment-response.js +15 -0
- package/lib/response/add-compartment-response.js.map +1 -0
- package/lib/response/change-security-recipe-compartment-response.d.ts +20 -0
- package/lib/response/change-security-recipe-compartment-response.js +15 -0
- package/lib/response/change-security-recipe-compartment-response.js.map +1 -0
- package/lib/response/change-security-zone-compartment-response.d.ts +20 -0
- package/lib/response/change-security-zone-compartment-response.js +15 -0
- package/lib/response/change-security-zone-compartment-response.js.map +1 -0
- package/lib/response/create-security-recipe-response.d.ts +30 -0
- package/lib/response/create-security-recipe-response.js +15 -0
- package/lib/response/create-security-recipe-response.js.map +1 -0
- package/lib/response/create-security-zone-response.d.ts +30 -0
- package/lib/response/create-security-zone-response.js +15 -0
- package/lib/response/create-security-zone-response.js.map +1 -0
- package/lib/response/delete-security-recipe-response.d.ts +20 -0
- package/lib/response/delete-security-recipe-response.js +15 -0
- package/lib/response/delete-security-recipe-response.js.map +1 -0
- package/lib/response/delete-security-zone-response.d.ts +20 -0
- package/lib/response/delete-security-zone-response.js +15 -0
- package/lib/response/delete-security-zone-response.js.map +1 -0
- package/lib/response/get-security-policy-response.d.ts +30 -0
- package/lib/response/get-security-policy-response.js +15 -0
- package/lib/response/get-security-policy-response.js.map +1 -0
- package/lib/response/get-security-recipe-response.d.ts +30 -0
- package/lib/response/get-security-recipe-response.js +15 -0
- package/lib/response/get-security-recipe-response.js.map +1 -0
- package/lib/response/get-security-zone-response.d.ts +30 -0
- package/lib/response/get-security-zone-response.js +15 -0
- package/lib/response/get-security-zone-response.js.map +1 -0
- package/lib/response/index.d.ts +35 -3
- package/lib/response/index.js +3 -3
- package/lib/response/list-security-policies-response.d.ts +32 -0
- package/lib/response/list-security-policies-response.js +15 -0
- package/lib/response/list-security-policies-response.js.map +1 -0
- package/lib/response/list-security-recipes-response.d.ts +32 -0
- package/lib/response/list-security-recipes-response.js +15 -0
- package/lib/response/list-security-recipes-response.js.map +1 -0
- package/lib/response/list-security-zones-response.d.ts +32 -0
- package/lib/response/list-security-zones-response.js +15 -0
- package/lib/response/list-security-zones-response.js.map +1 -0
- package/lib/response/remove-compartment-response.d.ts +30 -0
- package/lib/response/remove-compartment-response.js +15 -0
- package/lib/response/remove-compartment-response.js.map +1 -0
- package/lib/response/update-security-recipe-response.d.ts +30 -0
- package/lib/response/update-security-recipe-response.js +15 -0
- package/lib/response/update-security-recipe-response.js.map +1 -0
- package/lib/response/update-security-zone-response.d.ts +30 -0
- package/lib/response/update-security-zone-response.js +15 -0
- package/lib/response/update-security-zone-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Cloud Guard API
|
|
4
|
-
* Use the Cloud Guard API to automate processes that you would otherwise perform through the Cloud Guard Console.
|
|
3
|
+
* Cloud Guard and Security Zones API
|
|
4
|
+
* Use the Cloud Guard and Security Zones API to automate processes that you would otherwise perform through the Cloud Guard Console or the Security Zones Console. For more information on these services, see the [Cloud Guard](/iaas/cloud-guard/home.htm) and [Security Zones](/iaas/security-zone/home.htm) documentation.
|
|
5
5
|
|
|
6
|
-
**Note:**
|
|
6
|
+
**Note:** For Cloud Guard, you can perform Create, Update, and Delete operations only from the reporting region of your Cloud Guard tenancy. You can perform Read operations in Cloud Guard from any region.
|
|
7
7
|
|
|
8
8
|
* OpenAPI spec version: 20200131
|
|
9
9
|
*
|
|
@@ -62,6 +62,7 @@ class CloudGuardClient {
|
|
|
62
62
|
this["_endpoint"] = "";
|
|
63
63
|
this["_defaultHeaders"] = {};
|
|
64
64
|
this._circuitBreaker = null;
|
|
65
|
+
this._httpOptions = undefined;
|
|
65
66
|
const requestSigner = params.authenticationDetailsProvider
|
|
66
67
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
67
68
|
: null;
|
|
@@ -70,6 +71,9 @@ class CloudGuardClient {
|
|
|
70
71
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
71
72
|
? clientConfiguration.circuitBreaker.circuit
|
|
72
73
|
: null;
|
|
74
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
75
|
+
? clientConfiguration.httpOptions
|
|
76
|
+
: undefined;
|
|
73
77
|
}
|
|
74
78
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
75
79
|
const specCircuitBreakerEnabled = true;
|
|
@@ -79,7 +83,8 @@ class CloudGuardClient {
|
|
|
79
83
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
80
84
|
}
|
|
81
85
|
this._httpClient =
|
|
82
|
-
params.httpClient ||
|
|
86
|
+
params.httpClient ||
|
|
87
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
83
88
|
if (params.authenticationDetailsProvider &&
|
|
84
89
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
85
90
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -147,13 +152,77 @@ class CloudGuardClient {
|
|
|
147
152
|
}
|
|
148
153
|
throw Error("Waiters do not exist. Please create waiters.");
|
|
149
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Add an existing compartment to a security zone. If you previously removed a subcompartment from a security zone, you can add it back to the same security zone. The security zone ensures that resources in the subcompartment comply with the security zone's policies.
|
|
157
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
158
|
+
* @param AddCompartmentRequest
|
|
159
|
+
* @return AddCompartmentResponse
|
|
160
|
+
* @throws OciError when an error occurs
|
|
161
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/AddCompartment.ts.html |here} to see how to use AddCompartment API.
|
|
162
|
+
*/
|
|
163
|
+
addCompartment(addCompartmentRequest) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
if (this.logger)
|
|
166
|
+
this.logger.debug("Calling operation CloudGuardClient#addCompartment.");
|
|
167
|
+
const pathParams = {
|
|
168
|
+
"{securityZoneId}": addCompartmentRequest.securityZoneId
|
|
169
|
+
};
|
|
170
|
+
const queryParams = {};
|
|
171
|
+
let headerParams = {
|
|
172
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
173
|
+
"opc-retry-token": addCompartmentRequest.opcRetryToken,
|
|
174
|
+
"if-match": addCompartmentRequest.ifMatch,
|
|
175
|
+
"opc-request-id": addCompartmentRequest.opcRequestId
|
|
176
|
+
};
|
|
177
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
178
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
179
|
+
if (this.logger)
|
|
180
|
+
retrier.logger = this.logger;
|
|
181
|
+
const request = yield oci_common_1.composeRequest({
|
|
182
|
+
baseEndpoint: this._endpoint,
|
|
183
|
+
defaultHeaders: this._defaultHeaders,
|
|
184
|
+
path: "/securityZones/{securityZoneId}/actions/addCompartment",
|
|
185
|
+
method: "POST",
|
|
186
|
+
bodyContent: common.ObjectSerializer.serialize(addCompartmentRequest.addCompartmentDetails, "AddCompartmentDetails", model.AddCompartmentDetails.getJsonObj),
|
|
187
|
+
pathParams: pathParams,
|
|
188
|
+
headerParams: headerParams,
|
|
189
|
+
queryParams: queryParams
|
|
190
|
+
});
|
|
191
|
+
try {
|
|
192
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
193
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
194
|
+
responseObject: {},
|
|
195
|
+
body: yield response.json(),
|
|
196
|
+
bodyKey: "securityZone",
|
|
197
|
+
bodyModel: model.SecurityZone,
|
|
198
|
+
type: "model.SecurityZone",
|
|
199
|
+
responseHeaders: [
|
|
200
|
+
{
|
|
201
|
+
value: response.headers.get("etag"),
|
|
202
|
+
key: "etag",
|
|
203
|
+
dataType: "string"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
value: response.headers.get("opc-request-id"),
|
|
207
|
+
key: "opcRequestId",
|
|
208
|
+
dataType: "string"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
});
|
|
212
|
+
return sdkResponse;
|
|
213
|
+
}
|
|
214
|
+
catch (err) {
|
|
215
|
+
throw err;
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
150
219
|
/**
|
|
151
220
|
* Moves the DetectorRecipe from current compartment to another.
|
|
152
221
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
153
222
|
* @param ChangeDetectorRecipeCompartmentRequest
|
|
154
223
|
* @return ChangeDetectorRecipeCompartmentResponse
|
|
155
224
|
* @throws OciError when an error occurs
|
|
156
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
225
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ChangeDetectorRecipeCompartment.ts.html |here} to see how to use ChangeDetectorRecipeCompartment API.
|
|
157
226
|
*/
|
|
158
227
|
changeDetectorRecipeCompartment(changeDetectorRecipeCompartmentRequest) {
|
|
159
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -208,7 +277,7 @@ class CloudGuardClient {
|
|
|
208
277
|
* @param ChangeManagedListCompartmentRequest
|
|
209
278
|
* @return ChangeManagedListCompartmentResponse
|
|
210
279
|
* @throws OciError when an error occurs
|
|
211
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
280
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ChangeManagedListCompartment.ts.html |here} to see how to use ChangeManagedListCompartment API.
|
|
212
281
|
*/
|
|
213
282
|
changeManagedListCompartment(changeManagedListCompartmentRequest) {
|
|
214
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -263,7 +332,7 @@ class CloudGuardClient {
|
|
|
263
332
|
* @param ChangeResponderRecipeCompartmentRequest
|
|
264
333
|
* @return ChangeResponderRecipeCompartmentResponse
|
|
265
334
|
* @throws OciError when an error occurs
|
|
266
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
335
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ChangeResponderRecipeCompartment.ts.html |here} to see how to use ChangeResponderRecipeCompartment API.
|
|
267
336
|
*/
|
|
268
337
|
changeResponderRecipeCompartment(changeResponderRecipeCompartmentRequest) {
|
|
269
338
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -312,6 +381,116 @@ class CloudGuardClient {
|
|
|
312
381
|
}
|
|
313
382
|
});
|
|
314
383
|
}
|
|
384
|
+
/**
|
|
385
|
+
* Moves a security zone recipe to a different compartment. When provided, `If-Match` is checked against `ETag` values of the resource.
|
|
386
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
387
|
+
* @param ChangeSecurityRecipeCompartmentRequest
|
|
388
|
+
* @return ChangeSecurityRecipeCompartmentResponse
|
|
389
|
+
* @throws OciError when an error occurs
|
|
390
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ChangeSecurityRecipeCompartment.ts.html |here} to see how to use ChangeSecurityRecipeCompartment API.
|
|
391
|
+
*/
|
|
392
|
+
changeSecurityRecipeCompartment(changeSecurityRecipeCompartmentRequest) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
if (this.logger)
|
|
395
|
+
this.logger.debug("Calling operation CloudGuardClient#changeSecurityRecipeCompartment.");
|
|
396
|
+
const pathParams = {
|
|
397
|
+
"{securityRecipeId}": changeSecurityRecipeCompartmentRequest.securityRecipeId
|
|
398
|
+
};
|
|
399
|
+
const queryParams = {};
|
|
400
|
+
let headerParams = {
|
|
401
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
402
|
+
"if-match": changeSecurityRecipeCompartmentRequest.ifMatch,
|
|
403
|
+
"opc-request-id": changeSecurityRecipeCompartmentRequest.opcRequestId,
|
|
404
|
+
"opc-retry-token": changeSecurityRecipeCompartmentRequest.opcRetryToken
|
|
405
|
+
};
|
|
406
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
407
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeSecurityRecipeCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
408
|
+
if (this.logger)
|
|
409
|
+
retrier.logger = this.logger;
|
|
410
|
+
const request = yield oci_common_1.composeRequest({
|
|
411
|
+
baseEndpoint: this._endpoint,
|
|
412
|
+
defaultHeaders: this._defaultHeaders,
|
|
413
|
+
path: "/securityRecipes/{securityRecipeId}/actions/changeCompartment",
|
|
414
|
+
method: "POST",
|
|
415
|
+
bodyContent: common.ObjectSerializer.serialize(changeSecurityRecipeCompartmentRequest.changeSecurityRecipeCompartmentDetails, "ChangeSecurityRecipeCompartmentDetails", model.ChangeSecurityRecipeCompartmentDetails.getJsonObj),
|
|
416
|
+
pathParams: pathParams,
|
|
417
|
+
headerParams: headerParams,
|
|
418
|
+
queryParams: queryParams
|
|
419
|
+
});
|
|
420
|
+
try {
|
|
421
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
422
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
423
|
+
responseObject: {},
|
|
424
|
+
responseHeaders: [
|
|
425
|
+
{
|
|
426
|
+
value: response.headers.get("opc-request-id"),
|
|
427
|
+
key: "opcRequestId",
|
|
428
|
+
dataType: "string"
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
});
|
|
432
|
+
return sdkResponse;
|
|
433
|
+
}
|
|
434
|
+
catch (err) {
|
|
435
|
+
throw err;
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Moves a security zone to a different compartment. When provided, `If-Match` is checked against `ETag` values of the resource.
|
|
441
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
442
|
+
* @param ChangeSecurityZoneCompartmentRequest
|
|
443
|
+
* @return ChangeSecurityZoneCompartmentResponse
|
|
444
|
+
* @throws OciError when an error occurs
|
|
445
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ChangeSecurityZoneCompartment.ts.html |here} to see how to use ChangeSecurityZoneCompartment API.
|
|
446
|
+
*/
|
|
447
|
+
changeSecurityZoneCompartment(changeSecurityZoneCompartmentRequest) {
|
|
448
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
449
|
+
if (this.logger)
|
|
450
|
+
this.logger.debug("Calling operation CloudGuardClient#changeSecurityZoneCompartment.");
|
|
451
|
+
const pathParams = {
|
|
452
|
+
"{securityZoneId}": changeSecurityZoneCompartmentRequest.securityZoneId
|
|
453
|
+
};
|
|
454
|
+
const queryParams = {};
|
|
455
|
+
let headerParams = {
|
|
456
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
457
|
+
"if-match": changeSecurityZoneCompartmentRequest.ifMatch,
|
|
458
|
+
"opc-request-id": changeSecurityZoneCompartmentRequest.opcRequestId,
|
|
459
|
+
"opc-retry-token": changeSecurityZoneCompartmentRequest.opcRetryToken
|
|
460
|
+
};
|
|
461
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
462
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeSecurityZoneCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
463
|
+
if (this.logger)
|
|
464
|
+
retrier.logger = this.logger;
|
|
465
|
+
const request = yield oci_common_1.composeRequest({
|
|
466
|
+
baseEndpoint: this._endpoint,
|
|
467
|
+
defaultHeaders: this._defaultHeaders,
|
|
468
|
+
path: "/securityZones/{securityZoneId}/actions/changeCompartment",
|
|
469
|
+
method: "POST",
|
|
470
|
+
bodyContent: common.ObjectSerializer.serialize(changeSecurityZoneCompartmentRequest.changeSecurityZoneCompartmentDetails, "ChangeSecurityZoneCompartmentDetails", model.ChangeSecurityZoneCompartmentDetails.getJsonObj),
|
|
471
|
+
pathParams: pathParams,
|
|
472
|
+
headerParams: headerParams,
|
|
473
|
+
queryParams: queryParams
|
|
474
|
+
});
|
|
475
|
+
try {
|
|
476
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
477
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
478
|
+
responseObject: {},
|
|
479
|
+
responseHeaders: [
|
|
480
|
+
{
|
|
481
|
+
value: response.headers.get("opc-request-id"),
|
|
482
|
+
key: "opcRequestId",
|
|
483
|
+
dataType: "string"
|
|
484
|
+
}
|
|
485
|
+
]
|
|
486
|
+
});
|
|
487
|
+
return sdkResponse;
|
|
488
|
+
}
|
|
489
|
+
catch (err) {
|
|
490
|
+
throw err;
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
}
|
|
315
494
|
/**
|
|
316
495
|
* Creates a new Data Mask Rule Definition
|
|
317
496
|
*
|
|
@@ -319,7 +498,7 @@ class CloudGuardClient {
|
|
|
319
498
|
* @param CreateDataMaskRuleRequest
|
|
320
499
|
* @return CreateDataMaskRuleResponse
|
|
321
500
|
* @throws OciError when an error occurs
|
|
322
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
501
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateDataMaskRule.ts.html |here} to see how to use CreateDataMaskRule API.
|
|
323
502
|
*/
|
|
324
503
|
createDataMaskRule(createDataMaskRuleRequest) {
|
|
325
504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -381,7 +560,7 @@ class CloudGuardClient {
|
|
|
381
560
|
* @param CreateDetectorRecipeRequest
|
|
382
561
|
* @return CreateDetectorRecipeResponse
|
|
383
562
|
* @throws OciError when an error occurs
|
|
384
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
563
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateDetectorRecipe.ts.html |here} to see how to use CreateDetectorRecipe API.
|
|
385
564
|
*/
|
|
386
565
|
createDetectorRecipe(createDetectorRecipeRequest) {
|
|
387
566
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -443,7 +622,7 @@ class CloudGuardClient {
|
|
|
443
622
|
* @param CreateManagedListRequest
|
|
444
623
|
* @return CreateManagedListResponse
|
|
445
624
|
* @throws OciError when an error occurs
|
|
446
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
625
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateManagedList.ts.html |here} to see how to use CreateManagedList API.
|
|
447
626
|
*/
|
|
448
627
|
createManagedList(createManagedListRequest) {
|
|
449
628
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -505,7 +684,7 @@ class CloudGuardClient {
|
|
|
505
684
|
* @param CreateResponderRecipeRequest
|
|
506
685
|
* @return CreateResponderRecipeResponse
|
|
507
686
|
* @throws OciError when an error occurs
|
|
508
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
687
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateResponderRecipe.ts.html |here} to see how to use CreateResponderRecipe API.
|
|
509
688
|
*/
|
|
510
689
|
createResponderRecipe(createResponderRecipeRequest) {
|
|
511
690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -560,6 +739,130 @@ class CloudGuardClient {
|
|
|
560
739
|
}
|
|
561
740
|
});
|
|
562
741
|
}
|
|
742
|
+
/**
|
|
743
|
+
* Creates a security zone recipe. A security zone recipe is a collection of security zone policies.
|
|
744
|
+
*
|
|
745
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
746
|
+
* @param CreateSecurityRecipeRequest
|
|
747
|
+
* @return CreateSecurityRecipeResponse
|
|
748
|
+
* @throws OciError when an error occurs
|
|
749
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateSecurityRecipe.ts.html |here} to see how to use CreateSecurityRecipe API.
|
|
750
|
+
*/
|
|
751
|
+
createSecurityRecipe(createSecurityRecipeRequest) {
|
|
752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
753
|
+
if (this.logger)
|
|
754
|
+
this.logger.debug("Calling operation CloudGuardClient#createSecurityRecipe.");
|
|
755
|
+
const pathParams = {};
|
|
756
|
+
const queryParams = {};
|
|
757
|
+
let headerParams = {
|
|
758
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
759
|
+
"opc-retry-token": createSecurityRecipeRequest.opcRetryToken,
|
|
760
|
+
"opc-request-id": createSecurityRecipeRequest.opcRequestId
|
|
761
|
+
};
|
|
762
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
763
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSecurityRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
764
|
+
if (this.logger)
|
|
765
|
+
retrier.logger = this.logger;
|
|
766
|
+
const request = yield oci_common_1.composeRequest({
|
|
767
|
+
baseEndpoint: this._endpoint,
|
|
768
|
+
defaultHeaders: this._defaultHeaders,
|
|
769
|
+
path: "/securityRecipes",
|
|
770
|
+
method: "POST",
|
|
771
|
+
bodyContent: common.ObjectSerializer.serialize(createSecurityRecipeRequest.createSecurityRecipeDetails, "CreateSecurityRecipeDetails", model.CreateSecurityRecipeDetails.getJsonObj),
|
|
772
|
+
pathParams: pathParams,
|
|
773
|
+
headerParams: headerParams,
|
|
774
|
+
queryParams: queryParams
|
|
775
|
+
});
|
|
776
|
+
try {
|
|
777
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
778
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
779
|
+
responseObject: {},
|
|
780
|
+
body: yield response.json(),
|
|
781
|
+
bodyKey: "securityRecipe",
|
|
782
|
+
bodyModel: model.SecurityRecipe,
|
|
783
|
+
type: "model.SecurityRecipe",
|
|
784
|
+
responseHeaders: [
|
|
785
|
+
{
|
|
786
|
+
value: response.headers.get("etag"),
|
|
787
|
+
key: "etag",
|
|
788
|
+
dataType: "string"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
value: response.headers.get("opc-request-id"),
|
|
792
|
+
key: "opcRequestId",
|
|
793
|
+
dataType: "string"
|
|
794
|
+
}
|
|
795
|
+
]
|
|
796
|
+
});
|
|
797
|
+
return sdkResponse;
|
|
798
|
+
}
|
|
799
|
+
catch (err) {
|
|
800
|
+
throw err;
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Creates a security zone for a compartment. A security zone enforces all security zone policies in a given security zone recipe. Any actions that violate a policy are denied. By default, any subcompartments are also in the same security zone.
|
|
806
|
+
*
|
|
807
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
808
|
+
* @param CreateSecurityZoneRequest
|
|
809
|
+
* @return CreateSecurityZoneResponse
|
|
810
|
+
* @throws OciError when an error occurs
|
|
811
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateSecurityZone.ts.html |here} to see how to use CreateSecurityZone API.
|
|
812
|
+
*/
|
|
813
|
+
createSecurityZone(createSecurityZoneRequest) {
|
|
814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
815
|
+
if (this.logger)
|
|
816
|
+
this.logger.debug("Calling operation CloudGuardClient#createSecurityZone.");
|
|
817
|
+
const pathParams = {};
|
|
818
|
+
const queryParams = {};
|
|
819
|
+
let headerParams = {
|
|
820
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
821
|
+
"opc-retry-token": createSecurityZoneRequest.opcRetryToken,
|
|
822
|
+
"opc-request-id": createSecurityZoneRequest.opcRequestId
|
|
823
|
+
};
|
|
824
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
825
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSecurityZoneRequest.retryConfiguration, specRetryConfiguration);
|
|
826
|
+
if (this.logger)
|
|
827
|
+
retrier.logger = this.logger;
|
|
828
|
+
const request = yield oci_common_1.composeRequest({
|
|
829
|
+
baseEndpoint: this._endpoint,
|
|
830
|
+
defaultHeaders: this._defaultHeaders,
|
|
831
|
+
path: "/securityZones",
|
|
832
|
+
method: "POST",
|
|
833
|
+
bodyContent: common.ObjectSerializer.serialize(createSecurityZoneRequest.createSecurityZoneDetails, "CreateSecurityZoneDetails", model.CreateSecurityZoneDetails.getJsonObj),
|
|
834
|
+
pathParams: pathParams,
|
|
835
|
+
headerParams: headerParams,
|
|
836
|
+
queryParams: queryParams
|
|
837
|
+
});
|
|
838
|
+
try {
|
|
839
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
840
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
841
|
+
responseObject: {},
|
|
842
|
+
body: yield response.json(),
|
|
843
|
+
bodyKey: "securityZone",
|
|
844
|
+
bodyModel: model.SecurityZone,
|
|
845
|
+
type: "model.SecurityZone",
|
|
846
|
+
responseHeaders: [
|
|
847
|
+
{
|
|
848
|
+
value: response.headers.get("etag"),
|
|
849
|
+
key: "etag",
|
|
850
|
+
dataType: "string"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
value: response.headers.get("opc-request-id"),
|
|
854
|
+
key: "opcRequestId",
|
|
855
|
+
dataType: "string"
|
|
856
|
+
}
|
|
857
|
+
]
|
|
858
|
+
});
|
|
859
|
+
return sdkResponse;
|
|
860
|
+
}
|
|
861
|
+
catch (err) {
|
|
862
|
+
throw err;
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
}
|
|
563
866
|
/**
|
|
564
867
|
* Creates a new Target
|
|
565
868
|
*
|
|
@@ -567,7 +870,7 @@ class CloudGuardClient {
|
|
|
567
870
|
* @param CreateTargetRequest
|
|
568
871
|
* @return CreateTargetResponse
|
|
569
872
|
* @throws OciError when an error occurs
|
|
570
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
873
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateTarget.ts.html |here} to see how to use CreateTarget API.
|
|
571
874
|
*/
|
|
572
875
|
createTarget(createTargetRequest) {
|
|
573
876
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -629,7 +932,7 @@ class CloudGuardClient {
|
|
|
629
932
|
* @param CreateTargetDetectorRecipeRequest
|
|
630
933
|
* @return CreateTargetDetectorRecipeResponse
|
|
631
934
|
* @throws OciError when an error occurs
|
|
632
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
935
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateTargetDetectorRecipe.ts.html |here} to see how to use CreateTargetDetectorRecipe API.
|
|
633
936
|
*/
|
|
634
937
|
createTargetDetectorRecipe(createTargetDetectorRecipeRequest) {
|
|
635
938
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -693,7 +996,7 @@ class CloudGuardClient {
|
|
|
693
996
|
* @param CreateTargetResponderRecipeRequest
|
|
694
997
|
* @return CreateTargetResponderRecipeResponse
|
|
695
998
|
* @throws OciError when an error occurs
|
|
696
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
999
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/CreateTargetResponderRecipe.ts.html |here} to see how to use CreateTargetResponderRecipe API.
|
|
697
1000
|
*/
|
|
698
1001
|
createTargetResponderRecipe(createTargetResponderRecipeRequest) {
|
|
699
1002
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -756,7 +1059,7 @@ class CloudGuardClient {
|
|
|
756
1059
|
* @param DeleteDataMaskRuleRequest
|
|
757
1060
|
* @return DeleteDataMaskRuleResponse
|
|
758
1061
|
* @throws OciError when an error occurs
|
|
759
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1062
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteDataMaskRule.ts.html |here} to see how to use DeleteDataMaskRule API.
|
|
760
1063
|
*/
|
|
761
1064
|
deleteDataMaskRule(deleteDataMaskRuleRequest) {
|
|
762
1065
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -809,7 +1112,7 @@ class CloudGuardClient {
|
|
|
809
1112
|
* @param DeleteDetectorRecipeRequest
|
|
810
1113
|
* @return DeleteDetectorRecipeResponse
|
|
811
1114
|
* @throws OciError when an error occurs
|
|
812
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1115
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteDetectorRecipe.ts.html |here} to see how to use DeleteDetectorRecipe API.
|
|
813
1116
|
*/
|
|
814
1117
|
deleteDetectorRecipe(deleteDetectorRecipeRequest) {
|
|
815
1118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -863,7 +1166,7 @@ class CloudGuardClient {
|
|
|
863
1166
|
* @param DeleteManagedListRequest
|
|
864
1167
|
* @return DeleteManagedListResponse
|
|
865
1168
|
* @throws OciError when an error occurs
|
|
866
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1169
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteManagedList.ts.html |here} to see how to use DeleteManagedList API.
|
|
867
1170
|
*/
|
|
868
1171
|
deleteManagedList(deleteManagedListRequest) {
|
|
869
1172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -917,7 +1220,7 @@ class CloudGuardClient {
|
|
|
917
1220
|
* @param DeleteResponderRecipeRequest
|
|
918
1221
|
* @return DeleteResponderRecipeResponse
|
|
919
1222
|
* @throws OciError when an error occurs
|
|
920
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1223
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteResponderRecipe.ts.html |here} to see how to use DeleteResponderRecipe API.
|
|
921
1224
|
*/
|
|
922
1225
|
deleteResponderRecipe(deleteResponderRecipeRequest) {
|
|
923
1226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -964,13 +1267,119 @@ class CloudGuardClient {
|
|
|
964
1267
|
}
|
|
965
1268
|
});
|
|
966
1269
|
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Deletes a security zone recipe. The recipe can't be associated with an existing security zone.
|
|
1272
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1273
|
+
* @param DeleteSecurityRecipeRequest
|
|
1274
|
+
* @return DeleteSecurityRecipeResponse
|
|
1275
|
+
* @throws OciError when an error occurs
|
|
1276
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteSecurityRecipe.ts.html |here} to see how to use DeleteSecurityRecipe API.
|
|
1277
|
+
*/
|
|
1278
|
+
deleteSecurityRecipe(deleteSecurityRecipeRequest) {
|
|
1279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1280
|
+
if (this.logger)
|
|
1281
|
+
this.logger.debug("Calling operation CloudGuardClient#deleteSecurityRecipe.");
|
|
1282
|
+
const pathParams = {
|
|
1283
|
+
"{securityRecipeId}": deleteSecurityRecipeRequest.securityRecipeId
|
|
1284
|
+
};
|
|
1285
|
+
const queryParams = {};
|
|
1286
|
+
let headerParams = {
|
|
1287
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1288
|
+
"if-match": deleteSecurityRecipeRequest.ifMatch,
|
|
1289
|
+
"opc-request-id": deleteSecurityRecipeRequest.opcRequestId
|
|
1290
|
+
};
|
|
1291
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1292
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSecurityRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
1293
|
+
if (this.logger)
|
|
1294
|
+
retrier.logger = this.logger;
|
|
1295
|
+
const request = yield oci_common_1.composeRequest({
|
|
1296
|
+
baseEndpoint: this._endpoint,
|
|
1297
|
+
defaultHeaders: this._defaultHeaders,
|
|
1298
|
+
path: "/securityRecipes/{securityRecipeId}",
|
|
1299
|
+
method: "DELETE",
|
|
1300
|
+
pathParams: pathParams,
|
|
1301
|
+
headerParams: headerParams,
|
|
1302
|
+
queryParams: queryParams
|
|
1303
|
+
});
|
|
1304
|
+
try {
|
|
1305
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1306
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1307
|
+
responseObject: {},
|
|
1308
|
+
responseHeaders: [
|
|
1309
|
+
{
|
|
1310
|
+
value: response.headers.get("opc-request-id"),
|
|
1311
|
+
key: "opcRequestId",
|
|
1312
|
+
dataType: "string"
|
|
1313
|
+
}
|
|
1314
|
+
]
|
|
1315
|
+
});
|
|
1316
|
+
return sdkResponse;
|
|
1317
|
+
}
|
|
1318
|
+
catch (err) {
|
|
1319
|
+
throw err;
|
|
1320
|
+
}
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Deletes an existing security zone with a given identifier.
|
|
1325
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1326
|
+
* @param DeleteSecurityZoneRequest
|
|
1327
|
+
* @return DeleteSecurityZoneResponse
|
|
1328
|
+
* @throws OciError when an error occurs
|
|
1329
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteSecurityZone.ts.html |here} to see how to use DeleteSecurityZone API.
|
|
1330
|
+
*/
|
|
1331
|
+
deleteSecurityZone(deleteSecurityZoneRequest) {
|
|
1332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1333
|
+
if (this.logger)
|
|
1334
|
+
this.logger.debug("Calling operation CloudGuardClient#deleteSecurityZone.");
|
|
1335
|
+
const pathParams = {
|
|
1336
|
+
"{securityZoneId}": deleteSecurityZoneRequest.securityZoneId
|
|
1337
|
+
};
|
|
1338
|
+
const queryParams = {};
|
|
1339
|
+
let headerParams = {
|
|
1340
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1341
|
+
"if-match": deleteSecurityZoneRequest.ifMatch,
|
|
1342
|
+
"opc-request-id": deleteSecurityZoneRequest.opcRequestId
|
|
1343
|
+
};
|
|
1344
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1345
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSecurityZoneRequest.retryConfiguration, specRetryConfiguration);
|
|
1346
|
+
if (this.logger)
|
|
1347
|
+
retrier.logger = this.logger;
|
|
1348
|
+
const request = yield oci_common_1.composeRequest({
|
|
1349
|
+
baseEndpoint: this._endpoint,
|
|
1350
|
+
defaultHeaders: this._defaultHeaders,
|
|
1351
|
+
path: "/securityZones/{securityZoneId}",
|
|
1352
|
+
method: "DELETE",
|
|
1353
|
+
pathParams: pathParams,
|
|
1354
|
+
headerParams: headerParams,
|
|
1355
|
+
queryParams: queryParams
|
|
1356
|
+
});
|
|
1357
|
+
try {
|
|
1358
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1359
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1360
|
+
responseObject: {},
|
|
1361
|
+
responseHeaders: [
|
|
1362
|
+
{
|
|
1363
|
+
value: response.headers.get("opc-request-id"),
|
|
1364
|
+
key: "opcRequestId",
|
|
1365
|
+
dataType: "string"
|
|
1366
|
+
}
|
|
1367
|
+
]
|
|
1368
|
+
});
|
|
1369
|
+
return sdkResponse;
|
|
1370
|
+
}
|
|
1371
|
+
catch (err) {
|
|
1372
|
+
throw err;
|
|
1373
|
+
}
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
967
1376
|
/**
|
|
968
1377
|
* Deletes a Target identified by targetId
|
|
969
1378
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
970
1379
|
* @param DeleteTargetRequest
|
|
971
1380
|
* @return DeleteTargetResponse
|
|
972
1381
|
* @throws OciError when an error occurs
|
|
973
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1382
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteTarget.ts.html |here} to see how to use DeleteTarget API.
|
|
974
1383
|
*/
|
|
975
1384
|
deleteTarget(deleteTargetRequest) {
|
|
976
1385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1023,7 +1432,7 @@ class CloudGuardClient {
|
|
|
1023
1432
|
* @param DeleteTargetDetectorRecipeRequest
|
|
1024
1433
|
* @return DeleteTargetDetectorRecipeResponse
|
|
1025
1434
|
* @throws OciError when an error occurs
|
|
1026
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1435
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteTargetDetectorRecipe.ts.html |here} to see how to use DeleteTargetDetectorRecipe API.
|
|
1027
1436
|
*/
|
|
1028
1437
|
deleteTargetDetectorRecipe(deleteTargetDetectorRecipeRequest) {
|
|
1029
1438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1077,7 +1486,7 @@ class CloudGuardClient {
|
|
|
1077
1486
|
* @param DeleteTargetResponderRecipeRequest
|
|
1078
1487
|
* @return DeleteTargetResponderRecipeResponse
|
|
1079
1488
|
* @throws OciError when an error occurs
|
|
1080
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1489
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/DeleteTargetResponderRecipe.ts.html |here} to see how to use DeleteTargetResponderRecipe API.
|
|
1081
1490
|
*/
|
|
1082
1491
|
deleteTargetResponderRecipe(deleteTargetResponderRecipeRequest) {
|
|
1083
1492
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1131,7 +1540,7 @@ class CloudGuardClient {
|
|
|
1131
1540
|
* @param ExecuteResponderExecutionRequest
|
|
1132
1541
|
* @return ExecuteResponderExecutionResponse
|
|
1133
1542
|
* @throws OciError when an error occurs
|
|
1134
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1543
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ExecuteResponderExecution.ts.html |here} to see how to use ExecuteResponderExecution API.
|
|
1135
1544
|
*/
|
|
1136
1545
|
executeResponderExecution(executeResponderExecutionRequest) {
|
|
1137
1546
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1189,7 +1598,7 @@ class CloudGuardClient {
|
|
|
1189
1598
|
* @param GetConditionMetadataTypeRequest
|
|
1190
1599
|
* @return GetConditionMetadataTypeResponse
|
|
1191
1600
|
* @throws OciError when an error occurs
|
|
1192
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1601
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetConditionMetadataType.ts.html |here} to see how to use GetConditionMetadataType API.
|
|
1193
1602
|
*/
|
|
1194
1603
|
getConditionMetadataType(getConditionMetadataTypeRequest) {
|
|
1195
1604
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1253,7 +1662,7 @@ class CloudGuardClient {
|
|
|
1253
1662
|
* @param GetConfigurationRequest
|
|
1254
1663
|
* @return GetConfigurationResponse
|
|
1255
1664
|
* @throws OciError when an error occurs
|
|
1256
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1665
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
|
|
1257
1666
|
*/
|
|
1258
1667
|
getConfiguration(getConfigurationRequest) {
|
|
1259
1668
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1319,7 +1728,7 @@ class CloudGuardClient {
|
|
|
1319
1728
|
* @param GetDataMaskRuleRequest
|
|
1320
1729
|
* @return GetDataMaskRuleResponse
|
|
1321
1730
|
* @throws OciError when an error occurs
|
|
1322
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1731
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetDataMaskRule.ts.html |here} to see how to use GetDataMaskRule API.
|
|
1323
1732
|
*/
|
|
1324
1733
|
getDataMaskRule(getDataMaskRuleRequest) {
|
|
1325
1734
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1381,7 +1790,7 @@ class CloudGuardClient {
|
|
|
1381
1790
|
* @param GetDetectorRequest
|
|
1382
1791
|
* @return GetDetectorResponse
|
|
1383
1792
|
* @throws OciError when an error occurs
|
|
1384
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1793
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetDetector.ts.html |here} to see how to use GetDetector API.
|
|
1385
1794
|
*/
|
|
1386
1795
|
getDetector(getDetectorRequest) {
|
|
1387
1796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1442,7 +1851,7 @@ class CloudGuardClient {
|
|
|
1442
1851
|
* @param GetDetectorRecipeRequest
|
|
1443
1852
|
* @return GetDetectorRecipeResponse
|
|
1444
1853
|
* @throws OciError when an error occurs
|
|
1445
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1854
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetDetectorRecipe.ts.html |here} to see how to use GetDetectorRecipe API.
|
|
1446
1855
|
*/
|
|
1447
1856
|
getDetectorRecipe(getDetectorRecipeRequest) {
|
|
1448
1857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1503,7 +1912,7 @@ class CloudGuardClient {
|
|
|
1503
1912
|
* @param GetDetectorRecipeDetectorRuleRequest
|
|
1504
1913
|
* @return GetDetectorRecipeDetectorRuleResponse
|
|
1505
1914
|
* @throws OciError when an error occurs
|
|
1506
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1915
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetDetectorRecipeDetectorRule.ts.html |here} to see how to use GetDetectorRecipeDetectorRule API.
|
|
1507
1916
|
*/
|
|
1508
1917
|
getDetectorRecipeDetectorRule(getDetectorRecipeDetectorRuleRequest) {
|
|
1509
1918
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1566,7 +1975,7 @@ class CloudGuardClient {
|
|
|
1566
1975
|
* @param GetDetectorRuleRequest
|
|
1567
1976
|
* @return GetDetectorRuleResponse
|
|
1568
1977
|
* @throws OciError when an error occurs
|
|
1569
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1978
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetDetectorRule.ts.html |here} to see how to use GetDetectorRule API.
|
|
1570
1979
|
*/
|
|
1571
1980
|
getDetectorRule(getDetectorRuleRequest) {
|
|
1572
1981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1633,7 +2042,7 @@ class CloudGuardClient {
|
|
|
1633
2042
|
* @param GetManagedListRequest
|
|
1634
2043
|
* @return GetManagedListResponse
|
|
1635
2044
|
* @throws OciError when an error occurs
|
|
1636
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2045
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetManagedList.ts.html |here} to see how to use GetManagedList API.
|
|
1637
2046
|
*/
|
|
1638
2047
|
getManagedList(getManagedListRequest) {
|
|
1639
2048
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1694,7 +2103,7 @@ class CloudGuardClient {
|
|
|
1694
2103
|
* @param GetProblemRequest
|
|
1695
2104
|
* @return GetProblemResponse
|
|
1696
2105
|
* @throws OciError when an error occurs
|
|
1697
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2106
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetProblem.ts.html |here} to see how to use GetProblem API.
|
|
1698
2107
|
*/
|
|
1699
2108
|
getProblem(getProblemRequest) {
|
|
1700
2109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1755,7 +2164,7 @@ class CloudGuardClient {
|
|
|
1755
2164
|
* @param GetResourceProfileRequest
|
|
1756
2165
|
* @return GetResourceProfileResponse
|
|
1757
2166
|
* @throws OciError when an error occurs
|
|
1758
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2167
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetResourceProfile.ts.html |here} to see how to use GetResourceProfile API.
|
|
1759
2168
|
*/
|
|
1760
2169
|
getResourceProfile(getResourceProfileRequest) {
|
|
1761
2170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1817,28 +2226,212 @@ class CloudGuardClient {
|
|
|
1817
2226
|
* @param GetResponderExecutionRequest
|
|
1818
2227
|
* @return GetResponderExecutionResponse
|
|
1819
2228
|
* @throws OciError when an error occurs
|
|
1820
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2229
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetResponderExecution.ts.html |here} to see how to use GetResponderExecution API.
|
|
2230
|
+
*/
|
|
2231
|
+
getResponderExecution(getResponderExecutionRequest) {
|
|
2232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2233
|
+
if (this.logger)
|
|
2234
|
+
this.logger.debug("Calling operation CloudGuardClient#getResponderExecution.");
|
|
2235
|
+
const pathParams = {
|
|
2236
|
+
"{responderExecutionId}": getResponderExecutionRequest.responderExecutionId
|
|
2237
|
+
};
|
|
2238
|
+
const queryParams = {};
|
|
2239
|
+
let headerParams = {
|
|
2240
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2241
|
+
"opc-request-id": getResponderExecutionRequest.opcRequestId
|
|
2242
|
+
};
|
|
2243
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2244
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResponderExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
2245
|
+
if (this.logger)
|
|
2246
|
+
retrier.logger = this.logger;
|
|
2247
|
+
const request = yield oci_common_1.composeRequest({
|
|
2248
|
+
baseEndpoint: this._endpoint,
|
|
2249
|
+
defaultHeaders: this._defaultHeaders,
|
|
2250
|
+
path: "/responderExecutions/{responderExecutionId}",
|
|
2251
|
+
method: "GET",
|
|
2252
|
+
pathParams: pathParams,
|
|
2253
|
+
headerParams: headerParams,
|
|
2254
|
+
queryParams: queryParams
|
|
2255
|
+
});
|
|
2256
|
+
try {
|
|
2257
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
2258
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2259
|
+
responseObject: {},
|
|
2260
|
+
body: yield response.json(),
|
|
2261
|
+
bodyKey: "responderExecution",
|
|
2262
|
+
bodyModel: model.ResponderExecution,
|
|
2263
|
+
type: "model.ResponderExecution",
|
|
2264
|
+
responseHeaders: [
|
|
2265
|
+
{
|
|
2266
|
+
value: response.headers.get("etag"),
|
|
2267
|
+
key: "etag",
|
|
2268
|
+
dataType: "string"
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
value: response.headers.get("opc-request-id"),
|
|
2272
|
+
key: "opcRequestId",
|
|
2273
|
+
dataType: "string"
|
|
2274
|
+
}
|
|
2275
|
+
]
|
|
2276
|
+
});
|
|
2277
|
+
return sdkResponse;
|
|
2278
|
+
}
|
|
2279
|
+
catch (err) {
|
|
2280
|
+
throw err;
|
|
2281
|
+
}
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
* Get a ResponderRecipe by identifier
|
|
2286
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2287
|
+
* @param GetResponderRecipeRequest
|
|
2288
|
+
* @return GetResponderRecipeResponse
|
|
2289
|
+
* @throws OciError when an error occurs
|
|
2290
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetResponderRecipe.ts.html |here} to see how to use GetResponderRecipe API.
|
|
2291
|
+
*/
|
|
2292
|
+
getResponderRecipe(getResponderRecipeRequest) {
|
|
2293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2294
|
+
if (this.logger)
|
|
2295
|
+
this.logger.debug("Calling operation CloudGuardClient#getResponderRecipe.");
|
|
2296
|
+
const pathParams = {
|
|
2297
|
+
"{responderRecipeId}": getResponderRecipeRequest.responderRecipeId
|
|
2298
|
+
};
|
|
2299
|
+
const queryParams = {};
|
|
2300
|
+
let headerParams = {
|
|
2301
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2302
|
+
"opc-request-id": getResponderRecipeRequest.opcRequestId
|
|
2303
|
+
};
|
|
2304
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2305
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResponderRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
2306
|
+
if (this.logger)
|
|
2307
|
+
retrier.logger = this.logger;
|
|
2308
|
+
const request = yield oci_common_1.composeRequest({
|
|
2309
|
+
baseEndpoint: this._endpoint,
|
|
2310
|
+
defaultHeaders: this._defaultHeaders,
|
|
2311
|
+
path: "/responderRecipes/{responderRecipeId}",
|
|
2312
|
+
method: "GET",
|
|
2313
|
+
pathParams: pathParams,
|
|
2314
|
+
headerParams: headerParams,
|
|
2315
|
+
queryParams: queryParams
|
|
2316
|
+
});
|
|
2317
|
+
try {
|
|
2318
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
2319
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2320
|
+
responseObject: {},
|
|
2321
|
+
body: yield response.json(),
|
|
2322
|
+
bodyKey: "responderRecipe",
|
|
2323
|
+
bodyModel: model.ResponderRecipe,
|
|
2324
|
+
type: "model.ResponderRecipe",
|
|
2325
|
+
responseHeaders: [
|
|
2326
|
+
{
|
|
2327
|
+
value: response.headers.get("etag"),
|
|
2328
|
+
key: "etag",
|
|
2329
|
+
dataType: "string"
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
value: response.headers.get("opc-request-id"),
|
|
2333
|
+
key: "opcRequestId",
|
|
2334
|
+
dataType: "string"
|
|
2335
|
+
}
|
|
2336
|
+
]
|
|
2337
|
+
});
|
|
2338
|
+
return sdkResponse;
|
|
2339
|
+
}
|
|
2340
|
+
catch (err) {
|
|
2341
|
+
throw err;
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2345
|
+
/**
|
|
2346
|
+
* Get ResponderRule by identifier
|
|
2347
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2348
|
+
* @param GetResponderRecipeResponderRuleRequest
|
|
2349
|
+
* @return GetResponderRecipeResponderRuleResponse
|
|
2350
|
+
* @throws OciError when an error occurs
|
|
2351
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetResponderRecipeResponderRule.ts.html |here} to see how to use GetResponderRecipeResponderRule API.
|
|
2352
|
+
*/
|
|
2353
|
+
getResponderRecipeResponderRule(getResponderRecipeResponderRuleRequest) {
|
|
2354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2355
|
+
if (this.logger)
|
|
2356
|
+
this.logger.debug("Calling operation CloudGuardClient#getResponderRecipeResponderRule.");
|
|
2357
|
+
const pathParams = {
|
|
2358
|
+
"{responderRecipeId}": getResponderRecipeResponderRuleRequest.responderRecipeId,
|
|
2359
|
+
"{responderRuleId}": getResponderRecipeResponderRuleRequest.responderRuleId
|
|
2360
|
+
};
|
|
2361
|
+
const queryParams = {};
|
|
2362
|
+
let headerParams = {
|
|
2363
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2364
|
+
"opc-request-id": getResponderRecipeResponderRuleRequest.opcRequestId
|
|
2365
|
+
};
|
|
2366
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2367
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResponderRecipeResponderRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
2368
|
+
if (this.logger)
|
|
2369
|
+
retrier.logger = this.logger;
|
|
2370
|
+
const request = yield oci_common_1.composeRequest({
|
|
2371
|
+
baseEndpoint: this._endpoint,
|
|
2372
|
+
defaultHeaders: this._defaultHeaders,
|
|
2373
|
+
path: "/responderRecipes/{responderRecipeId}/responderRules/{responderRuleId}",
|
|
2374
|
+
method: "GET",
|
|
2375
|
+
pathParams: pathParams,
|
|
2376
|
+
headerParams: headerParams,
|
|
2377
|
+
queryParams: queryParams
|
|
2378
|
+
});
|
|
2379
|
+
try {
|
|
2380
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
2381
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2382
|
+
responseObject: {},
|
|
2383
|
+
body: yield response.json(),
|
|
2384
|
+
bodyKey: "responderRecipeResponderRule",
|
|
2385
|
+
bodyModel: model.ResponderRecipeResponderRule,
|
|
2386
|
+
type: "model.ResponderRecipeResponderRule",
|
|
2387
|
+
responseHeaders: [
|
|
2388
|
+
{
|
|
2389
|
+
value: response.headers.get("etag"),
|
|
2390
|
+
key: "etag",
|
|
2391
|
+
dataType: "string"
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
value: response.headers.get("opc-request-id"),
|
|
2395
|
+
key: "opcRequestId",
|
|
2396
|
+
dataType: "string"
|
|
2397
|
+
}
|
|
2398
|
+
]
|
|
2399
|
+
});
|
|
2400
|
+
return sdkResponse;
|
|
2401
|
+
}
|
|
2402
|
+
catch (err) {
|
|
2403
|
+
throw err;
|
|
2404
|
+
}
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
/**
|
|
2408
|
+
* Get a ResponderRule by identifier
|
|
2409
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2410
|
+
* @param GetResponderRuleRequest
|
|
2411
|
+
* @return GetResponderRuleResponse
|
|
2412
|
+
* @throws OciError when an error occurs
|
|
2413
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetResponderRule.ts.html |here} to see how to use GetResponderRule API.
|
|
1821
2414
|
*/
|
|
1822
|
-
|
|
2415
|
+
getResponderRule(getResponderRuleRequest) {
|
|
1823
2416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1824
2417
|
if (this.logger)
|
|
1825
|
-
this.logger.debug("Calling operation CloudGuardClient#
|
|
2418
|
+
this.logger.debug("Calling operation CloudGuardClient#getResponderRule.");
|
|
1826
2419
|
const pathParams = {
|
|
1827
|
-
"{
|
|
2420
|
+
"{responderRuleId}": getResponderRuleRequest.responderRuleId
|
|
1828
2421
|
};
|
|
1829
2422
|
const queryParams = {};
|
|
1830
2423
|
let headerParams = {
|
|
1831
2424
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1832
|
-
"opc-request-id":
|
|
2425
|
+
"opc-request-id": getResponderRuleRequest.opcRequestId
|
|
1833
2426
|
};
|
|
1834
2427
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1835
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2428
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResponderRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1836
2429
|
if (this.logger)
|
|
1837
2430
|
retrier.logger = this.logger;
|
|
1838
2431
|
const request = yield oci_common_1.composeRequest({
|
|
1839
2432
|
baseEndpoint: this._endpoint,
|
|
1840
2433
|
defaultHeaders: this._defaultHeaders,
|
|
1841
|
-
path: "/
|
|
2434
|
+
path: "/responderRules/{responderRuleId}",
|
|
1842
2435
|
method: "GET",
|
|
1843
2436
|
pathParams: pathParams,
|
|
1844
2437
|
headerParams: headerParams,
|
|
@@ -1849,9 +2442,9 @@ class CloudGuardClient {
|
|
|
1849
2442
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1850
2443
|
responseObject: {},
|
|
1851
2444
|
body: yield response.json(),
|
|
1852
|
-
bodyKey: "
|
|
1853
|
-
bodyModel: model.
|
|
1854
|
-
type: "model.
|
|
2445
|
+
bodyKey: "responderRule",
|
|
2446
|
+
bodyModel: model.ResponderRule,
|
|
2447
|
+
type: "model.ResponderRule",
|
|
1855
2448
|
responseHeaders: [
|
|
1856
2449
|
{
|
|
1857
2450
|
value: response.headers.get("etag"),
|
|
@@ -1873,33 +2466,33 @@ class CloudGuardClient {
|
|
|
1873
2466
|
});
|
|
1874
2467
|
}
|
|
1875
2468
|
/**
|
|
1876
|
-
*
|
|
2469
|
+
* Gets a security zone policy using its identifier. When a policy is enabled in a security zone, then any action in the zone that attempts to violate that policy is denied.
|
|
1877
2470
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1878
|
-
* @param
|
|
1879
|
-
* @return
|
|
2471
|
+
* @param GetSecurityPolicyRequest
|
|
2472
|
+
* @return GetSecurityPolicyResponse
|
|
1880
2473
|
* @throws OciError when an error occurs
|
|
1881
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2474
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetSecurityPolicy.ts.html |here} to see how to use GetSecurityPolicy API.
|
|
1882
2475
|
*/
|
|
1883
|
-
|
|
2476
|
+
getSecurityPolicy(getSecurityPolicyRequest) {
|
|
1884
2477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1885
2478
|
if (this.logger)
|
|
1886
|
-
this.logger.debug("Calling operation CloudGuardClient#
|
|
2479
|
+
this.logger.debug("Calling operation CloudGuardClient#getSecurityPolicy.");
|
|
1887
2480
|
const pathParams = {
|
|
1888
|
-
"{
|
|
2481
|
+
"{securityPolicyId}": getSecurityPolicyRequest.securityPolicyId
|
|
1889
2482
|
};
|
|
1890
2483
|
const queryParams = {};
|
|
1891
2484
|
let headerParams = {
|
|
1892
2485
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1893
|
-
"opc-request-id":
|
|
2486
|
+
"opc-request-id": getSecurityPolicyRequest.opcRequestId
|
|
1894
2487
|
};
|
|
1895
2488
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1896
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2489
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSecurityPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1897
2490
|
if (this.logger)
|
|
1898
2491
|
retrier.logger = this.logger;
|
|
1899
2492
|
const request = yield oci_common_1.composeRequest({
|
|
1900
2493
|
baseEndpoint: this._endpoint,
|
|
1901
2494
|
defaultHeaders: this._defaultHeaders,
|
|
1902
|
-
path: "/
|
|
2495
|
+
path: "/securityPolicies/{securityPolicyId}",
|
|
1903
2496
|
method: "GET",
|
|
1904
2497
|
pathParams: pathParams,
|
|
1905
2498
|
headerParams: headerParams,
|
|
@@ -1910,9 +2503,9 @@ class CloudGuardClient {
|
|
|
1910
2503
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1911
2504
|
responseObject: {},
|
|
1912
2505
|
body: yield response.json(),
|
|
1913
|
-
bodyKey: "
|
|
1914
|
-
bodyModel: model.
|
|
1915
|
-
type: "model.
|
|
2506
|
+
bodyKey: "securityPolicy",
|
|
2507
|
+
bodyModel: model.SecurityPolicy,
|
|
2508
|
+
type: "model.SecurityPolicy",
|
|
1916
2509
|
responseHeaders: [
|
|
1917
2510
|
{
|
|
1918
2511
|
value: response.headers.get("etag"),
|
|
@@ -1934,34 +2527,33 @@ class CloudGuardClient {
|
|
|
1934
2527
|
});
|
|
1935
2528
|
}
|
|
1936
2529
|
/**
|
|
1937
|
-
*
|
|
2530
|
+
* Gets a security zone recipe by identifier. A security zone recipe is a collection of security zone policies.
|
|
1938
2531
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1939
|
-
* @param
|
|
1940
|
-
* @return
|
|
2532
|
+
* @param GetSecurityRecipeRequest
|
|
2533
|
+
* @return GetSecurityRecipeResponse
|
|
1941
2534
|
* @throws OciError when an error occurs
|
|
1942
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2535
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetSecurityRecipe.ts.html |here} to see how to use GetSecurityRecipe API.
|
|
1943
2536
|
*/
|
|
1944
|
-
|
|
2537
|
+
getSecurityRecipe(getSecurityRecipeRequest) {
|
|
1945
2538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1946
2539
|
if (this.logger)
|
|
1947
|
-
this.logger.debug("Calling operation CloudGuardClient#
|
|
2540
|
+
this.logger.debug("Calling operation CloudGuardClient#getSecurityRecipe.");
|
|
1948
2541
|
const pathParams = {
|
|
1949
|
-
"{
|
|
1950
|
-
"{responderRuleId}": getResponderRecipeResponderRuleRequest.responderRuleId
|
|
2542
|
+
"{securityRecipeId}": getSecurityRecipeRequest.securityRecipeId
|
|
1951
2543
|
};
|
|
1952
2544
|
const queryParams = {};
|
|
1953
2545
|
let headerParams = {
|
|
1954
2546
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1955
|
-
"opc-request-id":
|
|
2547
|
+
"opc-request-id": getSecurityRecipeRequest.opcRequestId
|
|
1956
2548
|
};
|
|
1957
2549
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1958
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2550
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSecurityRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
1959
2551
|
if (this.logger)
|
|
1960
2552
|
retrier.logger = this.logger;
|
|
1961
2553
|
const request = yield oci_common_1.composeRequest({
|
|
1962
2554
|
baseEndpoint: this._endpoint,
|
|
1963
2555
|
defaultHeaders: this._defaultHeaders,
|
|
1964
|
-
path: "/
|
|
2556
|
+
path: "/securityRecipes/{securityRecipeId}",
|
|
1965
2557
|
method: "GET",
|
|
1966
2558
|
pathParams: pathParams,
|
|
1967
2559
|
headerParams: headerParams,
|
|
@@ -1972,9 +2564,9 @@ class CloudGuardClient {
|
|
|
1972
2564
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1973
2565
|
responseObject: {},
|
|
1974
2566
|
body: yield response.json(),
|
|
1975
|
-
bodyKey: "
|
|
1976
|
-
bodyModel: model.
|
|
1977
|
-
type: "model.
|
|
2567
|
+
bodyKey: "securityRecipe",
|
|
2568
|
+
bodyModel: model.SecurityRecipe,
|
|
2569
|
+
type: "model.SecurityRecipe",
|
|
1978
2570
|
responseHeaders: [
|
|
1979
2571
|
{
|
|
1980
2572
|
value: response.headers.get("etag"),
|
|
@@ -1996,33 +2588,33 @@ class CloudGuardClient {
|
|
|
1996
2588
|
});
|
|
1997
2589
|
}
|
|
1998
2590
|
/**
|
|
1999
|
-
*
|
|
2591
|
+
* Gets a security zone by its identifier. A security zone is associated with a security zone recipe and enforces all security zone policies in the recipe. Any actions in the zone's compartments that violate a policy are denied.
|
|
2000
2592
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2001
|
-
* @param
|
|
2002
|
-
* @return
|
|
2593
|
+
* @param GetSecurityZoneRequest
|
|
2594
|
+
* @return GetSecurityZoneResponse
|
|
2003
2595
|
* @throws OciError when an error occurs
|
|
2004
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2596
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetSecurityZone.ts.html |here} to see how to use GetSecurityZone API.
|
|
2005
2597
|
*/
|
|
2006
|
-
|
|
2598
|
+
getSecurityZone(getSecurityZoneRequest) {
|
|
2007
2599
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2008
2600
|
if (this.logger)
|
|
2009
|
-
this.logger.debug("Calling operation CloudGuardClient#
|
|
2601
|
+
this.logger.debug("Calling operation CloudGuardClient#getSecurityZone.");
|
|
2010
2602
|
const pathParams = {
|
|
2011
|
-
"{
|
|
2603
|
+
"{securityZoneId}": getSecurityZoneRequest.securityZoneId
|
|
2012
2604
|
};
|
|
2013
2605
|
const queryParams = {};
|
|
2014
2606
|
let headerParams = {
|
|
2015
2607
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2016
|
-
"opc-request-id":
|
|
2608
|
+
"opc-request-id": getSecurityZoneRequest.opcRequestId
|
|
2017
2609
|
};
|
|
2018
2610
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2019
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2611
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSecurityZoneRequest.retryConfiguration, specRetryConfiguration);
|
|
2020
2612
|
if (this.logger)
|
|
2021
2613
|
retrier.logger = this.logger;
|
|
2022
2614
|
const request = yield oci_common_1.composeRequest({
|
|
2023
2615
|
baseEndpoint: this._endpoint,
|
|
2024
2616
|
defaultHeaders: this._defaultHeaders,
|
|
2025
|
-
path: "/
|
|
2617
|
+
path: "/securityZones/{securityZoneId}",
|
|
2026
2618
|
method: "GET",
|
|
2027
2619
|
pathParams: pathParams,
|
|
2028
2620
|
headerParams: headerParams,
|
|
@@ -2033,9 +2625,9 @@ class CloudGuardClient {
|
|
|
2033
2625
|
const sdkResponse = oci_common_1.composeResponse({
|
|
2034
2626
|
responseObject: {},
|
|
2035
2627
|
body: yield response.json(),
|
|
2036
|
-
bodyKey: "
|
|
2037
|
-
bodyModel: model.
|
|
2038
|
-
type: "model.
|
|
2628
|
+
bodyKey: "securityZone",
|
|
2629
|
+
bodyModel: model.SecurityZone,
|
|
2630
|
+
type: "model.SecurityZone",
|
|
2039
2631
|
responseHeaders: [
|
|
2040
2632
|
{
|
|
2041
2633
|
value: response.headers.get("etag"),
|
|
@@ -2062,7 +2654,7 @@ class CloudGuardClient {
|
|
|
2062
2654
|
* @param GetSightingRequest
|
|
2063
2655
|
* @return GetSightingResponse
|
|
2064
2656
|
* @throws OciError when an error occurs
|
|
2065
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2657
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetSighting.ts.html |here} to see how to use GetSighting API.
|
|
2066
2658
|
*/
|
|
2067
2659
|
getSighting(getSightingRequest) {
|
|
2068
2660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2123,7 +2715,7 @@ class CloudGuardClient {
|
|
|
2123
2715
|
* @param GetTargetRequest
|
|
2124
2716
|
* @return GetTargetResponse
|
|
2125
2717
|
* @throws OciError when an error occurs
|
|
2126
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2718
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetTarget.ts.html |here} to see how to use GetTarget API.
|
|
2127
2719
|
*/
|
|
2128
2720
|
getTarget(getTargetRequest) {
|
|
2129
2721
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2184,7 +2776,7 @@ class CloudGuardClient {
|
|
|
2184
2776
|
* @param GetTargetDetectorRecipeRequest
|
|
2185
2777
|
* @return GetTargetDetectorRecipeResponse
|
|
2186
2778
|
* @throws OciError when an error occurs
|
|
2187
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2779
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetTargetDetectorRecipe.ts.html |here} to see how to use GetTargetDetectorRecipe API.
|
|
2188
2780
|
*/
|
|
2189
2781
|
getTargetDetectorRecipe(getTargetDetectorRecipeRequest) {
|
|
2190
2782
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2246,7 +2838,7 @@ class CloudGuardClient {
|
|
|
2246
2838
|
* @param GetTargetDetectorRecipeDetectorRuleRequest
|
|
2247
2839
|
* @return GetTargetDetectorRecipeDetectorRuleResponse
|
|
2248
2840
|
* @throws OciError when an error occurs
|
|
2249
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2841
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetTargetDetectorRecipeDetectorRule.ts.html |here} to see how to use GetTargetDetectorRecipeDetectorRule API.
|
|
2250
2842
|
*/
|
|
2251
2843
|
getTargetDetectorRecipeDetectorRule(getTargetDetectorRecipeDetectorRuleRequest) {
|
|
2252
2844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2309,7 +2901,7 @@ class CloudGuardClient {
|
|
|
2309
2901
|
* @param GetTargetResponderRecipeRequest
|
|
2310
2902
|
* @return GetTargetResponderRecipeResponse
|
|
2311
2903
|
* @throws OciError when an error occurs
|
|
2312
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2904
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetTargetResponderRecipe.ts.html |here} to see how to use GetTargetResponderRecipe API.
|
|
2313
2905
|
*/
|
|
2314
2906
|
getTargetResponderRecipe(getTargetResponderRecipeRequest) {
|
|
2315
2907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2371,7 +2963,7 @@ class CloudGuardClient {
|
|
|
2371
2963
|
* @param GetTargetResponderRecipeResponderRuleRequest
|
|
2372
2964
|
* @return GetTargetResponderRecipeResponderRuleResponse
|
|
2373
2965
|
* @throws OciError when an error occurs
|
|
2374
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2966
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/GetTargetResponderRecipeResponderRule.ts.html |here} to see how to use GetTargetResponderRecipeResponderRule API.
|
|
2375
2967
|
*/
|
|
2376
2968
|
getTargetResponderRecipeResponderRule(getTargetResponderRecipeResponderRuleRequest) {
|
|
2377
2969
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2435,7 +3027,7 @@ class CloudGuardClient {
|
|
|
2435
3027
|
* @param ListConditionMetadataTypesRequest
|
|
2436
3028
|
* @return ListConditionMetadataTypesResponse
|
|
2437
3029
|
* @throws OciError when an error occurs
|
|
2438
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3030
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListConditionMetadataTypes.ts.html |here} to see how to use ListConditionMetadataTypes API.
|
|
2439
3031
|
*/
|
|
2440
3032
|
listConditionMetadataTypes(listConditionMetadataTypesRequest) {
|
|
2441
3033
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2502,7 +3094,7 @@ class CloudGuardClient {
|
|
|
2502
3094
|
* @param ListDataMaskRulesRequest
|
|
2503
3095
|
* @return ListDataMaskRulesResponse
|
|
2504
3096
|
* @throws OciError when an error occurs
|
|
2505
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3097
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListDataMaskRules.ts.html |here} to see how to use ListDataMaskRules API.
|
|
2506
3098
|
*/
|
|
2507
3099
|
listDataMaskRules(listDataMaskRulesRequest) {
|
|
2508
3100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2575,7 +3167,7 @@ class CloudGuardClient {
|
|
|
2575
3167
|
* @param ListDetectorRecipeDetectorRulesRequest
|
|
2576
3168
|
* @return ListDetectorRecipeDetectorRulesResponse
|
|
2577
3169
|
* @throws OciError when an error occurs
|
|
2578
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3170
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListDetectorRecipeDetectorRules.ts.html |here} to see how to use ListDetectorRecipeDetectorRules API.
|
|
2579
3171
|
*/
|
|
2580
3172
|
listDetectorRecipeDetectorRules(listDetectorRecipeDetectorRulesRequest) {
|
|
2581
3173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2659,7 +3251,7 @@ class CloudGuardClient {
|
|
|
2659
3251
|
* @param ListDetectorRecipesRequest
|
|
2660
3252
|
* @return ListDetectorRecipesResponse
|
|
2661
3253
|
* @throws OciError when an error occurs
|
|
2662
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3254
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListDetectorRecipes.ts.html |here} to see how to use ListDetectorRecipes API.
|
|
2663
3255
|
*/
|
|
2664
3256
|
listDetectorRecipes(listDetectorRecipesRequest) {
|
|
2665
3257
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2730,7 +3322,7 @@ class CloudGuardClient {
|
|
|
2730
3322
|
* @param ListDetectorRulesRequest
|
|
2731
3323
|
* @return ListDetectorRulesResponse
|
|
2732
3324
|
* @throws OciError when an error occurs
|
|
2733
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3325
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListDetectorRules.ts.html |here} to see how to use ListDetectorRules API.
|
|
2734
3326
|
*/
|
|
2735
3327
|
listDetectorRules(listDetectorRulesRequest) {
|
|
2736
3328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2800,7 +3392,7 @@ class CloudGuardClient {
|
|
|
2800
3392
|
* @param ListDetectorsRequest
|
|
2801
3393
|
* @return ListDetectorsResponse
|
|
2802
3394
|
* @throws OciError when an error occurs
|
|
2803
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3395
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListDetectors.ts.html |here} to see how to use ListDetectors API.
|
|
2804
3396
|
*/
|
|
2805
3397
|
listDetectors(listDetectorsRequest) {
|
|
2806
3398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2867,7 +3459,7 @@ class CloudGuardClient {
|
|
|
2867
3459
|
* @param ListImpactedResourcesRequest
|
|
2868
3460
|
* @return ListImpactedResourcesResponse
|
|
2869
3461
|
* @throws OciError when an error occurs
|
|
2870
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3462
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListImpactedResources.ts.html |here} to see how to use ListImpactedResources API.
|
|
2871
3463
|
*/
|
|
2872
3464
|
listImpactedResources(listImpactedResourcesRequest) {
|
|
2873
3465
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2933,7 +3525,7 @@ class CloudGuardClient {
|
|
|
2933
3525
|
* @param ListManagedListTypesRequest
|
|
2934
3526
|
* @return ListManagedListTypesResponse
|
|
2935
3527
|
* @throws OciError when an error occurs
|
|
2936
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3528
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListManagedListTypes.ts.html |here} to see how to use ListManagedListTypes API.
|
|
2937
3529
|
*/
|
|
2938
3530
|
listManagedListTypes(listManagedListTypesRequest) {
|
|
2939
3531
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3013,7 +3605,7 @@ class CloudGuardClient {
|
|
|
3013
3605
|
* @param ListManagedListsRequest
|
|
3014
3606
|
* @return ListManagedListsResponse
|
|
3015
3607
|
* @throws OciError when an error occurs
|
|
3016
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3608
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListManagedLists.ts.html |here} to see how to use ListManagedLists API.
|
|
3017
3609
|
*/
|
|
3018
3610
|
listManagedLists(listManagedListsRequest) {
|
|
3019
3611
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3085,7 +3677,7 @@ class CloudGuardClient {
|
|
|
3085
3677
|
* @param ListPoliciesRequest
|
|
3086
3678
|
* @return ListPoliciesResponse
|
|
3087
3679
|
* @throws OciError when an error occurs
|
|
3088
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3680
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListPolicies.ts.html |here} to see how to use ListPolicies API.
|
|
3089
3681
|
*/
|
|
3090
3682
|
listPolicies(listPoliciesRequest) {
|
|
3091
3683
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3151,7 +3743,7 @@ class CloudGuardClient {
|
|
|
3151
3743
|
* @param ListProblemEndpointsRequest
|
|
3152
3744
|
* @return ListProblemEndpointsResponse
|
|
3153
3745
|
* @throws OciError when an error occurs
|
|
3154
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3746
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListProblemEndpoints.ts.html |here} to see how to use ListProblemEndpoints API.
|
|
3155
3747
|
*/
|
|
3156
3748
|
listProblemEndpoints(listProblemEndpointsRequest) {
|
|
3157
3749
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3218,7 +3810,7 @@ class CloudGuardClient {
|
|
|
3218
3810
|
* @param ListProblemHistoriesRequest
|
|
3219
3811
|
* @return ListProblemHistoriesResponse
|
|
3220
3812
|
* @throws OciError when an error occurs
|
|
3221
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3813
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListProblemHistories.ts.html |here} to see how to use ListProblemHistories API.
|
|
3222
3814
|
*/
|
|
3223
3815
|
listProblemHistories(listProblemHistoriesRequest) {
|
|
3224
3816
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3300,7 +3892,7 @@ class CloudGuardClient {
|
|
|
3300
3892
|
* @param ListProblemsRequest
|
|
3301
3893
|
* @return ListProblemsResponse
|
|
3302
3894
|
* @throws OciError when an error occurs
|
|
3303
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3895
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListProblems.ts.html |here} to see how to use ListProblems API.
|
|
3304
3896
|
*/
|
|
3305
3897
|
listProblems(listProblemsRequest) {
|
|
3306
3898
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3325,6 +3917,7 @@ class CloudGuardClient {
|
|
|
3325
3917
|
"detectorRuleIdList": listProblemsRequest.detectorRuleIdList,
|
|
3326
3918
|
"detectorType": listProblemsRequest.detectorType,
|
|
3327
3919
|
"targetId": listProblemsRequest.targetId,
|
|
3920
|
+
"problemCategory": listProblemsRequest.problemCategory,
|
|
3328
3921
|
"compartmentIdInSubtree": listProblemsRequest.compartmentIdInSubtree,
|
|
3329
3922
|
"accessLevel": listProblemsRequest.accessLevel,
|
|
3330
3923
|
"resourceId": listProblemsRequest.resourceId,
|
|
@@ -3385,7 +3978,7 @@ class CloudGuardClient {
|
|
|
3385
3978
|
* @param ListRecommendationsRequest
|
|
3386
3979
|
* @return ListRecommendationsResponse
|
|
3387
3980
|
* @throws OciError when an error occurs
|
|
3388
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3981
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListRecommendations.ts.html |here} to see how to use ListRecommendations API.
|
|
3389
3982
|
*/
|
|
3390
3983
|
listRecommendations(listRecommendationsRequest) {
|
|
3391
3984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3455,7 +4048,7 @@ class CloudGuardClient {
|
|
|
3455
4048
|
* @param ListResourceProfileEndpointsRequest
|
|
3456
4049
|
* @return ListResourceProfileEndpointsResponse
|
|
3457
4050
|
* @throws OciError when an error occurs
|
|
3458
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4051
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResourceProfileEndpoints.ts.html |here} to see how to use ListResourceProfileEndpoints API.
|
|
3459
4052
|
*/
|
|
3460
4053
|
listResourceProfileEndpoints(listResourceProfileEndpointsRequest) {
|
|
3461
4054
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3521,7 +4114,7 @@ class CloudGuardClient {
|
|
|
3521
4114
|
* @param ListResourceProfileImpactedResourcesRequest
|
|
3522
4115
|
* @return ListResourceProfileImpactedResourcesResponse
|
|
3523
4116
|
* @throws OciError when an error occurs
|
|
3524
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4117
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResourceProfileImpactedResources.ts.html |here} to see how to use ListResourceProfileImpactedResources API.
|
|
3525
4118
|
*/
|
|
3526
4119
|
listResourceProfileImpactedResources(listResourceProfileImpactedResourcesRequest) {
|
|
3527
4120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3601,7 +4194,7 @@ class CloudGuardClient {
|
|
|
3601
4194
|
* @param ListResourceProfilesRequest
|
|
3602
4195
|
* @return ListResourceProfilesResponse
|
|
3603
4196
|
* @throws OciError when an error occurs
|
|
3604
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4197
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResourceProfiles.ts.html |here} to see how to use ListResourceProfiles API.
|
|
3605
4198
|
*/
|
|
3606
4199
|
listResourceProfiles(listResourceProfilesRequest) {
|
|
3607
4200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3678,7 +4271,7 @@ class CloudGuardClient {
|
|
|
3678
4271
|
* @param ListResourceTypesRequest
|
|
3679
4272
|
* @return ListResourceTypesResponse
|
|
3680
4273
|
* @throws OciError when an error occurs
|
|
3681
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4274
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResourceTypes.ts.html |here} to see how to use ListResourceTypes API.
|
|
3682
4275
|
*/
|
|
3683
4276
|
listResourceTypes(listResourceTypesRequest) {
|
|
3684
4277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3746,7 +4339,7 @@ class CloudGuardClient {
|
|
|
3746
4339
|
* @param ListResponderActivitiesRequest
|
|
3747
4340
|
* @return ListResponderActivitiesResponse
|
|
3748
4341
|
* @throws OciError when an error occurs
|
|
3749
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4342
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResponderActivities.ts.html |here} to see how to use ListResponderActivities API.
|
|
3750
4343
|
*/
|
|
3751
4344
|
listResponderActivities(listResponderActivitiesRequest) {
|
|
3752
4345
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3813,7 +4406,7 @@ class CloudGuardClient {
|
|
|
3813
4406
|
* @param ListResponderExecutionsRequest
|
|
3814
4407
|
* @return ListResponderExecutionsResponse
|
|
3815
4408
|
* @throws OciError when an error occurs
|
|
3816
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4409
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResponderExecutions.ts.html |here} to see how to use ListResponderExecutions API.
|
|
3817
4410
|
*/
|
|
3818
4411
|
listResponderExecutions(listResponderExecutionsRequest) {
|
|
3819
4412
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3841,16 +4434,238 @@ class CloudGuardClient {
|
|
|
3841
4434
|
};
|
|
3842
4435
|
let headerParams = {
|
|
3843
4436
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3844
|
-
"opc-request-id": listResponderExecutionsRequest.opcRequestId
|
|
4437
|
+
"opc-request-id": listResponderExecutionsRequest.opcRequestId
|
|
4438
|
+
};
|
|
4439
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4440
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResponderExecutionsRequest.retryConfiguration, specRetryConfiguration);
|
|
4441
|
+
if (this.logger)
|
|
4442
|
+
retrier.logger = this.logger;
|
|
4443
|
+
const request = yield oci_common_1.composeRequest({
|
|
4444
|
+
baseEndpoint: this._endpoint,
|
|
4445
|
+
defaultHeaders: this._defaultHeaders,
|
|
4446
|
+
path: "/responderExecutions",
|
|
4447
|
+
method: "GET",
|
|
4448
|
+
pathParams: pathParams,
|
|
4449
|
+
headerParams: headerParams,
|
|
4450
|
+
queryParams: queryParams
|
|
4451
|
+
});
|
|
4452
|
+
try {
|
|
4453
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
4454
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4455
|
+
responseObject: {},
|
|
4456
|
+
body: yield response.json(),
|
|
4457
|
+
bodyKey: "responderExecutionCollection",
|
|
4458
|
+
bodyModel: model.ResponderExecutionCollection,
|
|
4459
|
+
type: "model.ResponderExecutionCollection",
|
|
4460
|
+
responseHeaders: [
|
|
4461
|
+
{
|
|
4462
|
+
value: response.headers.get("opc-request-id"),
|
|
4463
|
+
key: "opcRequestId",
|
|
4464
|
+
dataType: "string"
|
|
4465
|
+
},
|
|
4466
|
+
{
|
|
4467
|
+
value: response.headers.get("opc-next-page"),
|
|
4468
|
+
key: "opcNextPage",
|
|
4469
|
+
dataType: "string"
|
|
4470
|
+
}
|
|
4471
|
+
]
|
|
4472
|
+
});
|
|
4473
|
+
return sdkResponse;
|
|
4474
|
+
}
|
|
4475
|
+
catch (err) {
|
|
4476
|
+
throw err;
|
|
4477
|
+
}
|
|
4478
|
+
});
|
|
4479
|
+
}
|
|
4480
|
+
/**
|
|
4481
|
+
* Returns a list of ResponderRule associated with ResponderRecipe.
|
|
4482
|
+
*
|
|
4483
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4484
|
+
* @param ListResponderRecipeResponderRulesRequest
|
|
4485
|
+
* @return ListResponderRecipeResponderRulesResponse
|
|
4486
|
+
* @throws OciError when an error occurs
|
|
4487
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResponderRecipeResponderRules.ts.html |here} to see how to use ListResponderRecipeResponderRules API.
|
|
4488
|
+
*/
|
|
4489
|
+
listResponderRecipeResponderRules(listResponderRecipeResponderRulesRequest) {
|
|
4490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4491
|
+
if (this.logger)
|
|
4492
|
+
this.logger.debug("Calling operation CloudGuardClient#listResponderRecipeResponderRules.");
|
|
4493
|
+
const pathParams = {
|
|
4494
|
+
"{responderRecipeId}": listResponderRecipeResponderRulesRequest.responderRecipeId
|
|
4495
|
+
};
|
|
4496
|
+
const queryParams = {
|
|
4497
|
+
"compartmentId": listResponderRecipeResponderRulesRequest.compartmentId,
|
|
4498
|
+
"displayName": listResponderRecipeResponderRulesRequest.displayName,
|
|
4499
|
+
"lifecycleState": listResponderRecipeResponderRulesRequest.lifecycleState,
|
|
4500
|
+
"limit": listResponderRecipeResponderRulesRequest.limit,
|
|
4501
|
+
"page": listResponderRecipeResponderRulesRequest.page,
|
|
4502
|
+
"sortOrder": listResponderRecipeResponderRulesRequest.sortOrder,
|
|
4503
|
+
"sortBy": listResponderRecipeResponderRulesRequest.sortBy
|
|
4504
|
+
};
|
|
4505
|
+
let headerParams = {
|
|
4506
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4507
|
+
"opc-request-id": listResponderRecipeResponderRulesRequest.opcRequestId
|
|
4508
|
+
};
|
|
4509
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4510
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResponderRecipeResponderRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
4511
|
+
if (this.logger)
|
|
4512
|
+
retrier.logger = this.logger;
|
|
4513
|
+
const request = yield oci_common_1.composeRequest({
|
|
4514
|
+
baseEndpoint: this._endpoint,
|
|
4515
|
+
defaultHeaders: this._defaultHeaders,
|
|
4516
|
+
path: "/responderRecipes/{responderRecipeId}/responderRules",
|
|
4517
|
+
method: "GET",
|
|
4518
|
+
pathParams: pathParams,
|
|
4519
|
+
headerParams: headerParams,
|
|
4520
|
+
queryParams: queryParams
|
|
4521
|
+
});
|
|
4522
|
+
try {
|
|
4523
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
4524
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4525
|
+
responseObject: {},
|
|
4526
|
+
body: yield response.json(),
|
|
4527
|
+
bodyKey: "responderRecipeResponderRuleCollection",
|
|
4528
|
+
bodyModel: model.ResponderRecipeResponderRuleCollection,
|
|
4529
|
+
type: "model.ResponderRecipeResponderRuleCollection",
|
|
4530
|
+
responseHeaders: [
|
|
4531
|
+
{
|
|
4532
|
+
value: response.headers.get("opc-request-id"),
|
|
4533
|
+
key: "opcRequestId",
|
|
4534
|
+
dataType: "string"
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
value: response.headers.get("opc-next-page"),
|
|
4538
|
+
key: "opcNextPage",
|
|
4539
|
+
dataType: "string"
|
|
4540
|
+
}
|
|
4541
|
+
]
|
|
4542
|
+
});
|
|
4543
|
+
return sdkResponse;
|
|
4544
|
+
}
|
|
4545
|
+
catch (err) {
|
|
4546
|
+
throw err;
|
|
4547
|
+
}
|
|
4548
|
+
});
|
|
4549
|
+
}
|
|
4550
|
+
/**
|
|
4551
|
+
* Returns a list of all ResponderRecipes in a compartment
|
|
4552
|
+
* The ListResponderRecipe operation returns only the targets in `compartmentId` passed.
|
|
4553
|
+
* The list does not include any subcompartments of the compartmentId passed.
|
|
4554
|
+
* <p>
|
|
4555
|
+
The parameter `accessLevel` specifies whether to return only those compartments for which the
|
|
4556
|
+
* requestor has INSPECT permissions on at least one resource directly
|
|
4557
|
+
* or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
|
|
4558
|
+
* Principal doesn't have access to even one of the child compartments. This is valid only when
|
|
4559
|
+
* `compartmentIdInSubtree` is set to `true`.
|
|
4560
|
+
* <p>
|
|
4561
|
+
The parameter `compartmentIdInSubtree` applies when you perform ListResponderRecipe on the
|
|
4562
|
+
* `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
|
4563
|
+
* To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
|
4564
|
+
* set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
|
4565
|
+
*
|
|
4566
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4567
|
+
* @param ListResponderRecipesRequest
|
|
4568
|
+
* @return ListResponderRecipesResponse
|
|
4569
|
+
* @throws OciError when an error occurs
|
|
4570
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResponderRecipes.ts.html |here} to see how to use ListResponderRecipes API.
|
|
4571
|
+
*/
|
|
4572
|
+
listResponderRecipes(listResponderRecipesRequest) {
|
|
4573
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4574
|
+
if (this.logger)
|
|
4575
|
+
this.logger.debug("Calling operation CloudGuardClient#listResponderRecipes.");
|
|
4576
|
+
const pathParams = {};
|
|
4577
|
+
const queryParams = {
|
|
4578
|
+
"compartmentId": listResponderRecipesRequest.compartmentId,
|
|
4579
|
+
"resourceMetadataOnly": listResponderRecipesRequest.resourceMetadataOnly,
|
|
4580
|
+
"displayName": listResponderRecipesRequest.displayName,
|
|
4581
|
+
"lifecycleState": listResponderRecipesRequest.lifecycleState,
|
|
4582
|
+
"limit": listResponderRecipesRequest.limit,
|
|
4583
|
+
"page": listResponderRecipesRequest.page,
|
|
4584
|
+
"compartmentIdInSubtree": listResponderRecipesRequest.compartmentIdInSubtree,
|
|
4585
|
+
"accessLevel": listResponderRecipesRequest.accessLevel,
|
|
4586
|
+
"sortOrder": listResponderRecipesRequest.sortOrder,
|
|
4587
|
+
"sortBy": listResponderRecipesRequest.sortBy
|
|
4588
|
+
};
|
|
4589
|
+
let headerParams = {
|
|
4590
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4591
|
+
"opc-request-id": listResponderRecipesRequest.opcRequestId
|
|
4592
|
+
};
|
|
4593
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4594
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResponderRecipesRequest.retryConfiguration, specRetryConfiguration);
|
|
4595
|
+
if (this.logger)
|
|
4596
|
+
retrier.logger = this.logger;
|
|
4597
|
+
const request = yield oci_common_1.composeRequest({
|
|
4598
|
+
baseEndpoint: this._endpoint,
|
|
4599
|
+
defaultHeaders: this._defaultHeaders,
|
|
4600
|
+
path: "/responderRecipes",
|
|
4601
|
+
method: "GET",
|
|
4602
|
+
pathParams: pathParams,
|
|
4603
|
+
headerParams: headerParams,
|
|
4604
|
+
queryParams: queryParams
|
|
4605
|
+
});
|
|
4606
|
+
try {
|
|
4607
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
4608
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4609
|
+
responseObject: {},
|
|
4610
|
+
body: yield response.json(),
|
|
4611
|
+
bodyKey: "responderRecipeCollection",
|
|
4612
|
+
bodyModel: model.ResponderRecipeCollection,
|
|
4613
|
+
type: "model.ResponderRecipeCollection",
|
|
4614
|
+
responseHeaders: [
|
|
4615
|
+
{
|
|
4616
|
+
value: response.headers.get("opc-request-id"),
|
|
4617
|
+
key: "opcRequestId",
|
|
4618
|
+
dataType: "string"
|
|
4619
|
+
},
|
|
4620
|
+
{
|
|
4621
|
+
value: response.headers.get("opc-next-page"),
|
|
4622
|
+
key: "opcNextPage",
|
|
4623
|
+
dataType: "string"
|
|
4624
|
+
}
|
|
4625
|
+
]
|
|
4626
|
+
});
|
|
4627
|
+
return sdkResponse;
|
|
4628
|
+
}
|
|
4629
|
+
catch (err) {
|
|
4630
|
+
throw err;
|
|
4631
|
+
}
|
|
4632
|
+
});
|
|
4633
|
+
}
|
|
4634
|
+
/**
|
|
4635
|
+
* Returns a list of ResponderRule.
|
|
4636
|
+
*
|
|
4637
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4638
|
+
* @param ListResponderRulesRequest
|
|
4639
|
+
* @return ListResponderRulesResponse
|
|
4640
|
+
* @throws OciError when an error occurs
|
|
4641
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListResponderRules.ts.html |here} to see how to use ListResponderRules API.
|
|
4642
|
+
*/
|
|
4643
|
+
listResponderRules(listResponderRulesRequest) {
|
|
4644
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4645
|
+
if (this.logger)
|
|
4646
|
+
this.logger.debug("Calling operation CloudGuardClient#listResponderRules.");
|
|
4647
|
+
const pathParams = {};
|
|
4648
|
+
const queryParams = {
|
|
4649
|
+
"compartmentId": listResponderRulesRequest.compartmentId,
|
|
4650
|
+
"displayName": listResponderRulesRequest.displayName,
|
|
4651
|
+
"lifecycleState": listResponderRulesRequest.lifecycleState,
|
|
4652
|
+
"limit": listResponderRulesRequest.limit,
|
|
4653
|
+
"page": listResponderRulesRequest.page,
|
|
4654
|
+
"sortOrder": listResponderRulesRequest.sortOrder,
|
|
4655
|
+
"sortBy": listResponderRulesRequest.sortBy
|
|
4656
|
+
};
|
|
4657
|
+
let headerParams = {
|
|
4658
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4659
|
+
"opc-request-id": listResponderRulesRequest.opcRequestId
|
|
3845
4660
|
};
|
|
3846
4661
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3847
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4662
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResponderRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
3848
4663
|
if (this.logger)
|
|
3849
4664
|
retrier.logger = this.logger;
|
|
3850
4665
|
const request = yield oci_common_1.composeRequest({
|
|
3851
4666
|
baseEndpoint: this._endpoint,
|
|
3852
4667
|
defaultHeaders: this._defaultHeaders,
|
|
3853
|
-
path: "/
|
|
4668
|
+
path: "/responderRules",
|
|
3854
4669
|
method: "GET",
|
|
3855
4670
|
pathParams: pathParams,
|
|
3856
4671
|
headerParams: headerParams,
|
|
@@ -3861,9 +4676,9 @@ class CloudGuardClient {
|
|
|
3861
4676
|
const sdkResponse = oci_common_1.composeResponse({
|
|
3862
4677
|
responseObject: {},
|
|
3863
4678
|
body: yield response.json(),
|
|
3864
|
-
bodyKey: "
|
|
3865
|
-
bodyModel: model.
|
|
3866
|
-
type: "model.
|
|
4679
|
+
bodyKey: "responderRuleCollection",
|
|
4680
|
+
bodyModel: model.ResponderRuleCollection,
|
|
4681
|
+
type: "model.ResponderRuleCollection",
|
|
3867
4682
|
responseHeaders: [
|
|
3868
4683
|
{
|
|
3869
4684
|
value: response.headers.get("opc-request-id"),
|
|
@@ -3885,42 +4700,41 @@ class CloudGuardClient {
|
|
|
3885
4700
|
});
|
|
3886
4701
|
}
|
|
3887
4702
|
/**
|
|
3888
|
-
* Returns a list of
|
|
4703
|
+
* Returns a list of security zone policies. Specify any compartment.
|
|
3889
4704
|
*
|
|
3890
4705
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3891
|
-
* @param
|
|
3892
|
-
* @return
|
|
4706
|
+
* @param ListSecurityPoliciesRequest
|
|
4707
|
+
* @return ListSecurityPoliciesResponse
|
|
3893
4708
|
* @throws OciError when an error occurs
|
|
3894
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4709
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListSecurityPolicies.ts.html |here} to see how to use ListSecurityPolicies API.
|
|
3895
4710
|
*/
|
|
3896
|
-
|
|
4711
|
+
listSecurityPolicies(listSecurityPoliciesRequest) {
|
|
3897
4712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3898
4713
|
if (this.logger)
|
|
3899
|
-
this.logger.debug("Calling operation CloudGuardClient#
|
|
3900
|
-
const pathParams = {
|
|
3901
|
-
"{responderRecipeId}": listResponderRecipeResponderRulesRequest.responderRecipeId
|
|
3902
|
-
};
|
|
4714
|
+
this.logger.debug("Calling operation CloudGuardClient#listSecurityPolicies.");
|
|
4715
|
+
const pathParams = {};
|
|
3903
4716
|
const queryParams = {
|
|
3904
|
-
"compartmentId":
|
|
3905
|
-
"
|
|
3906
|
-
"
|
|
3907
|
-
"
|
|
3908
|
-
"
|
|
3909
|
-
"
|
|
3910
|
-
"
|
|
4717
|
+
"compartmentId": listSecurityPoliciesRequest.compartmentId,
|
|
4718
|
+
"lifecycleState": listSecurityPoliciesRequest.lifecycleState,
|
|
4719
|
+
"displayName": listSecurityPoliciesRequest.displayName,
|
|
4720
|
+
"id": listSecurityPoliciesRequest.id,
|
|
4721
|
+
"limit": listSecurityPoliciesRequest.limit,
|
|
4722
|
+
"page": listSecurityPoliciesRequest.page,
|
|
4723
|
+
"sortOrder": listSecurityPoliciesRequest.sortOrder,
|
|
4724
|
+
"sortBy": listSecurityPoliciesRequest.sortBy
|
|
3911
4725
|
};
|
|
3912
4726
|
let headerParams = {
|
|
3913
4727
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3914
|
-
"opc-request-id":
|
|
4728
|
+
"opc-request-id": listSecurityPoliciesRequest.opcRequestId
|
|
3915
4729
|
};
|
|
3916
4730
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3917
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4731
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSecurityPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
3918
4732
|
if (this.logger)
|
|
3919
4733
|
retrier.logger = this.logger;
|
|
3920
4734
|
const request = yield oci_common_1.composeRequest({
|
|
3921
4735
|
baseEndpoint: this._endpoint,
|
|
3922
4736
|
defaultHeaders: this._defaultHeaders,
|
|
3923
|
-
path: "/
|
|
4737
|
+
path: "/securityPolicies",
|
|
3924
4738
|
method: "GET",
|
|
3925
4739
|
pathParams: pathParams,
|
|
3926
4740
|
headerParams: headerParams,
|
|
@@ -3931,9 +4745,9 @@ class CloudGuardClient {
|
|
|
3931
4745
|
const sdkResponse = oci_common_1.composeResponse({
|
|
3932
4746
|
responseObject: {},
|
|
3933
4747
|
body: yield response.json(),
|
|
3934
|
-
bodyKey: "
|
|
3935
|
-
bodyModel: model.
|
|
3936
|
-
type: "model.
|
|
4748
|
+
bodyKey: "securityPolicyCollection",
|
|
4749
|
+
bodyModel: model.SecurityPolicyCollection,
|
|
4750
|
+
type: "model.SecurityPolicyCollection",
|
|
3937
4751
|
responseHeaders: [
|
|
3938
4752
|
{
|
|
3939
4753
|
value: response.headers.get("opc-request-id"),
|
|
@@ -3955,56 +4769,41 @@ class CloudGuardClient {
|
|
|
3955
4769
|
});
|
|
3956
4770
|
}
|
|
3957
4771
|
/**
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
* <p>
|
|
3968
|
-
The parameter `compartmentIdInSubtree` applies when you perform ListResponderRecipe on the
|
|
3969
|
-
* `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
|
3970
|
-
* To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
|
3971
|
-
* set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
|
3972
|
-
*
|
|
3973
|
-
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3974
|
-
* @param ListResponderRecipesRequest
|
|
3975
|
-
* @return ListResponderRecipesResponse
|
|
3976
|
-
* @throws OciError when an error occurs
|
|
3977
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.22.0/cloudguard/ListResponderRecipes.ts.html |here} to see how to use ListResponderRecipes API.
|
|
3978
|
-
*/
|
|
3979
|
-
listResponderRecipes(listResponderRecipesRequest) {
|
|
4772
|
+
* Gets a list of all security zone recipes in a compartment.
|
|
4773
|
+
*
|
|
4774
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4775
|
+
* @param ListSecurityRecipesRequest
|
|
4776
|
+
* @return ListSecurityRecipesResponse
|
|
4777
|
+
* @throws OciError when an error occurs
|
|
4778
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListSecurityRecipes.ts.html |here} to see how to use ListSecurityRecipes API.
|
|
4779
|
+
*/
|
|
4780
|
+
listSecurityRecipes(listSecurityRecipesRequest) {
|
|
3980
4781
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3981
4782
|
if (this.logger)
|
|
3982
|
-
this.logger.debug("Calling operation CloudGuardClient#
|
|
4783
|
+
this.logger.debug("Calling operation CloudGuardClient#listSecurityRecipes.");
|
|
3983
4784
|
const pathParams = {};
|
|
3984
4785
|
const queryParams = {
|
|
3985
|
-
"compartmentId":
|
|
3986
|
-
"
|
|
3987
|
-
"displayName":
|
|
3988
|
-
"
|
|
3989
|
-
"limit":
|
|
3990
|
-
"page":
|
|
3991
|
-
"
|
|
3992
|
-
"
|
|
3993
|
-
"sortOrder": listResponderRecipesRequest.sortOrder,
|
|
3994
|
-
"sortBy": listResponderRecipesRequest.sortBy
|
|
4786
|
+
"compartmentId": listSecurityRecipesRequest.compartmentId,
|
|
4787
|
+
"lifecycleState": listSecurityRecipesRequest.lifecycleState,
|
|
4788
|
+
"displayName": listSecurityRecipesRequest.displayName,
|
|
4789
|
+
"id": listSecurityRecipesRequest.id,
|
|
4790
|
+
"limit": listSecurityRecipesRequest.limit,
|
|
4791
|
+
"page": listSecurityRecipesRequest.page,
|
|
4792
|
+
"sortOrder": listSecurityRecipesRequest.sortOrder,
|
|
4793
|
+
"sortBy": listSecurityRecipesRequest.sortBy
|
|
3995
4794
|
};
|
|
3996
4795
|
let headerParams = {
|
|
3997
4796
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3998
|
-
"opc-request-id":
|
|
4797
|
+
"opc-request-id": listSecurityRecipesRequest.opcRequestId
|
|
3999
4798
|
};
|
|
4000
4799
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4001
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4800
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSecurityRecipesRequest.retryConfiguration, specRetryConfiguration);
|
|
4002
4801
|
if (this.logger)
|
|
4003
4802
|
retrier.logger = this.logger;
|
|
4004
4803
|
const request = yield oci_common_1.composeRequest({
|
|
4005
4804
|
baseEndpoint: this._endpoint,
|
|
4006
4805
|
defaultHeaders: this._defaultHeaders,
|
|
4007
|
-
path: "/
|
|
4806
|
+
path: "/securityRecipes",
|
|
4008
4807
|
method: "GET",
|
|
4009
4808
|
pathParams: pathParams,
|
|
4010
4809
|
headerParams: headerParams,
|
|
@@ -4015,9 +4814,9 @@ class CloudGuardClient {
|
|
|
4015
4814
|
const sdkResponse = oci_common_1.composeResponse({
|
|
4016
4815
|
responseObject: {},
|
|
4017
4816
|
body: yield response.json(),
|
|
4018
|
-
bodyKey: "
|
|
4019
|
-
bodyModel: model.
|
|
4020
|
-
type: "model.
|
|
4817
|
+
bodyKey: "securityRecipeCollection",
|
|
4818
|
+
bodyModel: model.SecurityRecipeCollection,
|
|
4819
|
+
type: "model.SecurityRecipeCollection",
|
|
4021
4820
|
responseHeaders: [
|
|
4022
4821
|
{
|
|
4023
4822
|
value: response.headers.get("opc-request-id"),
|
|
@@ -4039,40 +4838,43 @@ class CloudGuardClient {
|
|
|
4039
4838
|
});
|
|
4040
4839
|
}
|
|
4041
4840
|
/**
|
|
4042
|
-
*
|
|
4841
|
+
* Gets a list of all security zones in a compartment.
|
|
4043
4842
|
*
|
|
4044
4843
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4045
|
-
* @param
|
|
4046
|
-
* @return
|
|
4844
|
+
* @param ListSecurityZonesRequest
|
|
4845
|
+
* @return ListSecurityZonesResponse
|
|
4047
4846
|
* @throws OciError when an error occurs
|
|
4048
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4847
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListSecurityZones.ts.html |here} to see how to use ListSecurityZones API.
|
|
4049
4848
|
*/
|
|
4050
|
-
|
|
4849
|
+
listSecurityZones(listSecurityZonesRequest) {
|
|
4051
4850
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4052
4851
|
if (this.logger)
|
|
4053
|
-
this.logger.debug("Calling operation CloudGuardClient#
|
|
4852
|
+
this.logger.debug("Calling operation CloudGuardClient#listSecurityZones.");
|
|
4054
4853
|
const pathParams = {};
|
|
4055
4854
|
const queryParams = {
|
|
4056
|
-
"compartmentId":
|
|
4057
|
-
"
|
|
4058
|
-
"
|
|
4059
|
-
"
|
|
4060
|
-
"
|
|
4061
|
-
"
|
|
4062
|
-
"
|
|
4855
|
+
"compartmentId": listSecurityZonesRequest.compartmentId,
|
|
4856
|
+
"lifecycleState": listSecurityZonesRequest.lifecycleState,
|
|
4857
|
+
"displayName": listSecurityZonesRequest.displayName,
|
|
4858
|
+
"id": listSecurityZonesRequest.id,
|
|
4859
|
+
"securityRecipeId": listSecurityZonesRequest.securityRecipeId,
|
|
4860
|
+
"isRequiredSecurityZonesInSubtree": listSecurityZonesRequest.isRequiredSecurityZonesInSubtree,
|
|
4861
|
+
"limit": listSecurityZonesRequest.limit,
|
|
4862
|
+
"page": listSecurityZonesRequest.page,
|
|
4863
|
+
"sortOrder": listSecurityZonesRequest.sortOrder,
|
|
4864
|
+
"sortBy": listSecurityZonesRequest.sortBy
|
|
4063
4865
|
};
|
|
4064
4866
|
let headerParams = {
|
|
4065
4867
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4066
|
-
"opc-request-id":
|
|
4868
|
+
"opc-request-id": listSecurityZonesRequest.opcRequestId
|
|
4067
4869
|
};
|
|
4068
4870
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4069
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4871
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSecurityZonesRequest.retryConfiguration, specRetryConfiguration);
|
|
4070
4872
|
if (this.logger)
|
|
4071
4873
|
retrier.logger = this.logger;
|
|
4072
4874
|
const request = yield oci_common_1.composeRequest({
|
|
4073
4875
|
baseEndpoint: this._endpoint,
|
|
4074
4876
|
defaultHeaders: this._defaultHeaders,
|
|
4075
|
-
path: "/
|
|
4877
|
+
path: "/securityZones",
|
|
4076
4878
|
method: "GET",
|
|
4077
4879
|
pathParams: pathParams,
|
|
4078
4880
|
headerParams: headerParams,
|
|
@@ -4083,9 +4885,9 @@ class CloudGuardClient {
|
|
|
4083
4885
|
const sdkResponse = oci_common_1.composeResponse({
|
|
4084
4886
|
responseObject: {},
|
|
4085
4887
|
body: yield response.json(),
|
|
4086
|
-
bodyKey: "
|
|
4087
|
-
bodyModel: model.
|
|
4088
|
-
type: "model.
|
|
4888
|
+
bodyKey: "securityZoneCollection",
|
|
4889
|
+
bodyModel: model.SecurityZoneCollection,
|
|
4890
|
+
type: "model.SecurityZoneCollection",
|
|
4089
4891
|
responseHeaders: [
|
|
4090
4892
|
{
|
|
4091
4893
|
value: response.headers.get("opc-request-id"),
|
|
@@ -4112,7 +4914,7 @@ class CloudGuardClient {
|
|
|
4112
4914
|
* @param ListSightingEndpointsRequest
|
|
4113
4915
|
* @return ListSightingEndpointsResponse
|
|
4114
4916
|
* @throws OciError when an error occurs
|
|
4115
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4917
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListSightingEndpoints.ts.html |here} to see how to use ListSightingEndpoints API.
|
|
4116
4918
|
*/
|
|
4117
4919
|
listSightingEndpoints(listSightingEndpointsRequest) {
|
|
4118
4920
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4178,7 +4980,7 @@ class CloudGuardClient {
|
|
|
4178
4980
|
* @param ListSightingImpactedResourcesRequest
|
|
4179
4981
|
* @return ListSightingImpactedResourcesResponse
|
|
4180
4982
|
* @throws OciError when an error occurs
|
|
4181
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4983
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListSightingImpactedResources.ts.html |here} to see how to use ListSightingImpactedResources API.
|
|
4182
4984
|
*/
|
|
4183
4985
|
listSightingImpactedResources(listSightingImpactedResourcesRequest) {
|
|
4184
4986
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4257,7 +5059,7 @@ class CloudGuardClient {
|
|
|
4257
5059
|
* @param ListSightingsRequest
|
|
4258
5060
|
* @return ListSightingsResponse
|
|
4259
5061
|
* @throws OciError when an error occurs
|
|
4260
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5062
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListSightings.ts.html |here} to see how to use ListSightings API.
|
|
4261
5063
|
*/
|
|
4262
5064
|
listSightings(listSightingsRequest) {
|
|
4263
5065
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4329,7 +5131,7 @@ class CloudGuardClient {
|
|
|
4329
5131
|
* @param ListTacticsRequest
|
|
4330
5132
|
* @return ListTacticsResponse
|
|
4331
5133
|
* @throws OciError when an error occurs
|
|
4332
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5134
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListTactics.ts.html |here} to see how to use ListTactics API.
|
|
4333
5135
|
*/
|
|
4334
5136
|
listTactics(listTacticsRequest) {
|
|
4335
5137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4396,7 +5198,7 @@ class CloudGuardClient {
|
|
|
4396
5198
|
* @param ListTargetDetectorRecipeDetectorRulesRequest
|
|
4397
5199
|
* @return ListTargetDetectorRecipeDetectorRulesResponse
|
|
4398
5200
|
* @throws OciError when an error occurs
|
|
4399
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5201
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListTargetDetectorRecipeDetectorRules.ts.html |here} to see how to use ListTargetDetectorRecipeDetectorRules API.
|
|
4400
5202
|
*/
|
|
4401
5203
|
listTargetDetectorRecipeDetectorRules(listTargetDetectorRecipeDetectorRulesRequest) {
|
|
4402
5204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4466,7 +5268,7 @@ class CloudGuardClient {
|
|
|
4466
5268
|
* @param ListTargetDetectorRecipesRequest
|
|
4467
5269
|
* @return ListTargetDetectorRecipesResponse
|
|
4468
5270
|
* @throws OciError when an error occurs
|
|
4469
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListTargetDetectorRecipes.ts.html |here} to see how to use ListTargetDetectorRecipes API.
|
|
4470
5272
|
*/
|
|
4471
5273
|
listTargetDetectorRecipes(listTargetDetectorRecipesRequest) {
|
|
4472
5274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4536,7 +5338,7 @@ class CloudGuardClient {
|
|
|
4536
5338
|
* @param ListTargetResponderRecipeResponderRulesRequest
|
|
4537
5339
|
* @return ListTargetResponderRecipeResponderRulesResponse
|
|
4538
5340
|
* @throws OciError when an error occurs
|
|
4539
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5341
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListTargetResponderRecipeResponderRules.ts.html |here} to see how to use ListTargetResponderRecipeResponderRules API.
|
|
4540
5342
|
*/
|
|
4541
5343
|
listTargetResponderRecipeResponderRules(listTargetResponderRecipeResponderRulesRequest) {
|
|
4542
5344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4606,7 +5408,7 @@ class CloudGuardClient {
|
|
|
4606
5408
|
* @param ListTargetResponderRecipesRequest
|
|
4607
5409
|
* @return ListTargetResponderRecipesResponse
|
|
4608
5410
|
* @throws OciError when an error occurs
|
|
4609
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5411
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListTargetResponderRecipes.ts.html |here} to see how to use ListTargetResponderRecipes API.
|
|
4610
5412
|
*/
|
|
4611
5413
|
listTargetResponderRecipes(listTargetResponderRecipesRequest) {
|
|
4612
5414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4689,7 +5491,7 @@ class CloudGuardClient {
|
|
|
4689
5491
|
* @param ListTargetsRequest
|
|
4690
5492
|
* @return ListTargetsResponse
|
|
4691
5493
|
* @throws OciError when an error occurs
|
|
4692
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5494
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListTargets.ts.html |here} to see how to use ListTargets API.
|
|
4693
5495
|
*/
|
|
4694
5496
|
listTargets(listTargetsRequest) {
|
|
4695
5497
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4699,6 +5501,7 @@ class CloudGuardClient {
|
|
|
4699
5501
|
const queryParams = {
|
|
4700
5502
|
"displayName": listTargetsRequest.displayName,
|
|
4701
5503
|
"compartmentId": listTargetsRequest.compartmentId,
|
|
5504
|
+
"isNonSecurityZoneTargetsOnlyQuery": listTargetsRequest.isNonSecurityZoneTargetsOnlyQuery,
|
|
4702
5505
|
"lifecycleState": listTargetsRequest.lifecycleState,
|
|
4703
5506
|
"compartmentIdInSubtree": listTargetsRequest.compartmentIdInSubtree,
|
|
4704
5507
|
"accessLevel": listTargetsRequest.accessLevel,
|
|
@@ -4759,7 +5562,7 @@ class CloudGuardClient {
|
|
|
4759
5562
|
* @param ListTechniquesRequest
|
|
4760
5563
|
* @return ListTechniquesResponse
|
|
4761
5564
|
* @throws OciError when an error occurs
|
|
4762
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5565
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/ListTechniques.ts.html |here} to see how to use ListTechniques API.
|
|
4763
5566
|
*/
|
|
4764
5567
|
listTechniques(listTechniquesRequest) {
|
|
4765
5568
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4820,6 +5623,70 @@ class CloudGuardClient {
|
|
|
4820
5623
|
}
|
|
4821
5624
|
});
|
|
4822
5625
|
}
|
|
5626
|
+
/**
|
|
5627
|
+
* Removes an existing compartment from a security zone. When you remove a subcompartment from a security zone, it no longer enforces security zone policies on the resources in the subcompartment. You can't remove the primary compartment that was used to create the security zone.
|
|
5628
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
5629
|
+
* @param RemoveCompartmentRequest
|
|
5630
|
+
* @return RemoveCompartmentResponse
|
|
5631
|
+
* @throws OciError when an error occurs
|
|
5632
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RemoveCompartment.ts.html |here} to see how to use RemoveCompartment API.
|
|
5633
|
+
*/
|
|
5634
|
+
removeCompartment(removeCompartmentRequest) {
|
|
5635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5636
|
+
if (this.logger)
|
|
5637
|
+
this.logger.debug("Calling operation CloudGuardClient#removeCompartment.");
|
|
5638
|
+
const pathParams = {
|
|
5639
|
+
"{securityZoneId}": removeCompartmentRequest.securityZoneId
|
|
5640
|
+
};
|
|
5641
|
+
const queryParams = {};
|
|
5642
|
+
let headerParams = {
|
|
5643
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5644
|
+
"opc-retry-token": removeCompartmentRequest.opcRetryToken,
|
|
5645
|
+
"if-match": removeCompartmentRequest.ifMatch,
|
|
5646
|
+
"opc-request-id": removeCompartmentRequest.opcRequestId
|
|
5647
|
+
};
|
|
5648
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
5649
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
5650
|
+
if (this.logger)
|
|
5651
|
+
retrier.logger = this.logger;
|
|
5652
|
+
const request = yield oci_common_1.composeRequest({
|
|
5653
|
+
baseEndpoint: this._endpoint,
|
|
5654
|
+
defaultHeaders: this._defaultHeaders,
|
|
5655
|
+
path: "/securityZones/{securityZoneId}/actions/removeCompartment",
|
|
5656
|
+
method: "POST",
|
|
5657
|
+
bodyContent: common.ObjectSerializer.serialize(removeCompartmentRequest.removeCompartmentDetails, "RemoveCompartmentDetails", model.RemoveCompartmentDetails.getJsonObj),
|
|
5658
|
+
pathParams: pathParams,
|
|
5659
|
+
headerParams: headerParams,
|
|
5660
|
+
queryParams: queryParams
|
|
5661
|
+
});
|
|
5662
|
+
try {
|
|
5663
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
5664
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5665
|
+
responseObject: {},
|
|
5666
|
+
body: yield response.json(),
|
|
5667
|
+
bodyKey: "securityZone",
|
|
5668
|
+
bodyModel: model.SecurityZone,
|
|
5669
|
+
type: "model.SecurityZone",
|
|
5670
|
+
responseHeaders: [
|
|
5671
|
+
{
|
|
5672
|
+
value: response.headers.get("etag"),
|
|
5673
|
+
key: "etag",
|
|
5674
|
+
dataType: "string"
|
|
5675
|
+
},
|
|
5676
|
+
{
|
|
5677
|
+
value: response.headers.get("opc-request-id"),
|
|
5678
|
+
key: "opcRequestId",
|
|
5679
|
+
dataType: "string"
|
|
5680
|
+
}
|
|
5681
|
+
]
|
|
5682
|
+
});
|
|
5683
|
+
return sdkResponse;
|
|
5684
|
+
}
|
|
5685
|
+
catch (err) {
|
|
5686
|
+
throw err;
|
|
5687
|
+
}
|
|
5688
|
+
});
|
|
5689
|
+
}
|
|
4823
5690
|
/**
|
|
4824
5691
|
* Examines the number of problems related to the resource and the relative severity of those problems.
|
|
4825
5692
|
*
|
|
@@ -4827,7 +5694,7 @@ class CloudGuardClient {
|
|
|
4827
5694
|
* @param RequestRiskScoresRequest
|
|
4828
5695
|
* @return RequestRiskScoresResponse
|
|
4829
5696
|
* @throws OciError when an error occurs
|
|
4830
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5697
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestRiskScores.ts.html |here} to see how to use RequestRiskScores API.
|
|
4831
5698
|
*/
|
|
4832
5699
|
requestRiskScores(requestRiskScoresRequest) {
|
|
4833
5700
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4892,7 +5759,7 @@ class CloudGuardClient {
|
|
|
4892
5759
|
* @param RequestSecurityScoreSummarizedTrendRequest
|
|
4893
5760
|
* @return RequestSecurityScoreSummarizedTrendResponse
|
|
4894
5761
|
* @throws OciError when an error occurs
|
|
4895
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5762
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSecurityScoreSummarizedTrend.ts.html |here} to see how to use RequestSecurityScoreSummarizedTrend API.
|
|
4896
5763
|
*/
|
|
4897
5764
|
requestSecurityScoreSummarizedTrend(requestSecurityScoreSummarizedTrendRequest) {
|
|
4898
5765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4958,7 +5825,7 @@ class CloudGuardClient {
|
|
|
4958
5825
|
* @param RequestSecurityScoresRequest
|
|
4959
5826
|
* @return RequestSecurityScoresResponse
|
|
4960
5827
|
* @throws OciError when an error occurs
|
|
4961
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5828
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSecurityScores.ts.html |here} to see how to use RequestSecurityScores API.
|
|
4962
5829
|
*/
|
|
4963
5830
|
requestSecurityScores(requestSecurityScoresRequest) {
|
|
4964
5831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5036,7 +5903,7 @@ class CloudGuardClient {
|
|
|
5036
5903
|
* @param RequestSummarizedActivityProblemsRequest
|
|
5037
5904
|
* @return RequestSummarizedActivityProblemsResponse
|
|
5038
5905
|
* @throws OciError when an error occurs
|
|
5039
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5906
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedActivityProblems.ts.html |here} to see how to use RequestSummarizedActivityProblems API.
|
|
5040
5907
|
*/
|
|
5041
5908
|
requestSummarizedActivityProblems(requestSummarizedActivityProblemsRequest) {
|
|
5042
5909
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5114,7 +5981,7 @@ class CloudGuardClient {
|
|
|
5114
5981
|
* @param RequestSummarizedProblemsRequest
|
|
5115
5982
|
* @return RequestSummarizedProblemsResponse
|
|
5116
5983
|
* @throws OciError when an error occurs
|
|
5117
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
5984
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedProblems.ts.html |here} to see how to use RequestSummarizedProblems API.
|
|
5118
5985
|
*/
|
|
5119
5986
|
requestSummarizedProblems(requestSummarizedProblemsRequest) {
|
|
5120
5987
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5192,7 +6059,7 @@ class CloudGuardClient {
|
|
|
5192
6059
|
* @param RequestSummarizedResponderExecutionsRequest
|
|
5193
6060
|
* @return RequestSummarizedResponderExecutionsResponse
|
|
5194
6061
|
* @throws OciError when an error occurs
|
|
5195
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6062
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedResponderExecutions.ts.html |here} to see how to use RequestSummarizedResponderExecutions API.
|
|
5196
6063
|
*/
|
|
5197
6064
|
requestSummarizedResponderExecutions(requestSummarizedResponderExecutionsRequest) {
|
|
5198
6065
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5261,7 +6128,7 @@ class CloudGuardClient {
|
|
|
5261
6128
|
* @param RequestSummarizedRiskScoresRequest
|
|
5262
6129
|
* @return RequestSummarizedRiskScoresResponse
|
|
5263
6130
|
* @throws OciError when an error occurs
|
|
5264
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6131
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedRiskScores.ts.html |here} to see how to use RequestSummarizedRiskScores API.
|
|
5265
6132
|
*/
|
|
5266
6133
|
requestSummarizedRiskScores(requestSummarizedRiskScoresRequest) {
|
|
5267
6134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5325,7 +6192,7 @@ class CloudGuardClient {
|
|
|
5325
6192
|
* @param RequestSummarizedSecurityScoresRequest
|
|
5326
6193
|
* @return RequestSummarizedSecurityScoresResponse
|
|
5327
6194
|
* @throws OciError when an error occurs
|
|
5328
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6195
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedSecurityScores.ts.html |here} to see how to use RequestSummarizedSecurityScores API.
|
|
5329
6196
|
*/
|
|
5330
6197
|
requestSummarizedSecurityScores(requestSummarizedSecurityScoresRequest) {
|
|
5331
6198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5388,7 +6255,7 @@ class CloudGuardClient {
|
|
|
5388
6255
|
* @param RequestSummarizedTopTrendResourceProfileRiskScoresRequest
|
|
5389
6256
|
* @return RequestSummarizedTopTrendResourceProfileRiskScoresResponse
|
|
5390
6257
|
* @throws OciError when an error occurs
|
|
5391
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6258
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedTopTrendResourceProfileRiskScores.ts.html |here} to see how to use RequestSummarizedTopTrendResourceProfileRiskScores API.
|
|
5392
6259
|
*/
|
|
5393
6260
|
requestSummarizedTopTrendResourceProfileRiskScores(requestSummarizedTopTrendResourceProfileRiskScoresRequest) {
|
|
5394
6261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5469,7 +6336,7 @@ class CloudGuardClient {
|
|
|
5469
6336
|
* @param RequestSummarizedTrendProblemsRequest
|
|
5470
6337
|
* @return RequestSummarizedTrendProblemsResponse
|
|
5471
6338
|
* @throws OciError when an error occurs
|
|
5472
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6339
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedTrendProblems.ts.html |here} to see how to use RequestSummarizedTrendProblems API.
|
|
5473
6340
|
*/
|
|
5474
6341
|
requestSummarizedTrendProblems(requestSummarizedTrendProblemsRequest) {
|
|
5475
6342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5536,7 +6403,7 @@ class CloudGuardClient {
|
|
|
5536
6403
|
* @param RequestSummarizedTrendResourceRiskScoresRequest
|
|
5537
6404
|
* @return RequestSummarizedTrendResourceRiskScoresResponse
|
|
5538
6405
|
* @throws OciError when an error occurs
|
|
5539
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6406
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedTrendResourceRiskScores.ts.html |here} to see how to use RequestSummarizedTrendResourceRiskScores API.
|
|
5540
6407
|
*/
|
|
5541
6408
|
requestSummarizedTrendResourceRiskScores(requestSummarizedTrendResourceRiskScoresRequest) {
|
|
5542
6409
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5616,7 +6483,7 @@ class CloudGuardClient {
|
|
|
5616
6483
|
* @param RequestSummarizedTrendResponderExecutionsRequest
|
|
5617
6484
|
* @return RequestSummarizedTrendResponderExecutionsResponse
|
|
5618
6485
|
* @throws OciError when an error occurs
|
|
5619
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6486
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedTrendResponderExecutions.ts.html |here} to see how to use RequestSummarizedTrendResponderExecutions API.
|
|
5620
6487
|
*/
|
|
5621
6488
|
requestSummarizedTrendResponderExecutions(requestSummarizedTrendResponderExecutionsRequest) {
|
|
5622
6489
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5684,7 +6551,7 @@ class CloudGuardClient {
|
|
|
5684
6551
|
* @param RequestSummarizedTrendSecurityScoresRequest
|
|
5685
6552
|
* @return RequestSummarizedTrendSecurityScoresResponse
|
|
5686
6553
|
* @throws OciError when an error occurs
|
|
5687
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6554
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/RequestSummarizedTrendSecurityScores.ts.html |here} to see how to use RequestSummarizedTrendSecurityScores API.
|
|
5688
6555
|
*/
|
|
5689
6556
|
requestSummarizedTrendSecurityScores(requestSummarizedTrendSecurityScoresRequest) {
|
|
5690
6557
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5751,7 +6618,7 @@ class CloudGuardClient {
|
|
|
5751
6618
|
* @param SkipBulkResponderExecutionRequest
|
|
5752
6619
|
* @return SkipBulkResponderExecutionResponse
|
|
5753
6620
|
* @throws OciError when an error occurs
|
|
5754
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6621
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/SkipBulkResponderExecution.ts.html |here} to see how to use SkipBulkResponderExecution API.
|
|
5755
6622
|
*/
|
|
5756
6623
|
skipBulkResponderExecution(skipBulkResponderExecutionRequest) {
|
|
5757
6624
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5802,7 +6669,7 @@ class CloudGuardClient {
|
|
|
5802
6669
|
* @param SkipResponderExecutionRequest
|
|
5803
6670
|
* @return SkipResponderExecutionResponse
|
|
5804
6671
|
* @throws OciError when an error occurs
|
|
5805
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6672
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/SkipResponderExecution.ts.html |here} to see how to use SkipResponderExecution API.
|
|
5806
6673
|
*/
|
|
5807
6674
|
skipResponderExecution(skipResponderExecutionRequest) {
|
|
5808
6675
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5859,7 +6726,7 @@ class CloudGuardClient {
|
|
|
5859
6726
|
* @param TriggerResponderRequest
|
|
5860
6727
|
* @return TriggerResponderResponse
|
|
5861
6728
|
* @throws OciError when an error occurs
|
|
5862
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6729
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/TriggerResponder.ts.html |here} to see how to use TriggerResponder API.
|
|
5863
6730
|
*/
|
|
5864
6731
|
triggerResponder(triggerResponderRequest) {
|
|
5865
6732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5916,7 +6783,7 @@ class CloudGuardClient {
|
|
|
5916
6783
|
* @param UpdateBulkProblemStatusRequest
|
|
5917
6784
|
* @return UpdateBulkProblemStatusResponse
|
|
5918
6785
|
* @throws OciError when an error occurs
|
|
5919
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6786
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateBulkProblemStatus.ts.html |here} to see how to use UpdateBulkProblemStatus API.
|
|
5920
6787
|
*/
|
|
5921
6788
|
updateBulkProblemStatus(updateBulkProblemStatusRequest) {
|
|
5922
6789
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5968,7 +6835,7 @@ class CloudGuardClient {
|
|
|
5968
6835
|
* @param UpdateConfigurationRequest
|
|
5969
6836
|
* @return UpdateConfigurationResponse
|
|
5970
6837
|
* @throws OciError when an error occurs
|
|
5971
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6838
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
|
|
5972
6839
|
*/
|
|
5973
6840
|
updateConfiguration(updateConfigurationRequest) {
|
|
5974
6841
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6032,7 +6899,7 @@ class CloudGuardClient {
|
|
|
6032
6899
|
* @param UpdateDataMaskRuleRequest
|
|
6033
6900
|
* @return UpdateDataMaskRuleResponse
|
|
6034
6901
|
* @throws OciError when an error occurs
|
|
6035
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6902
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateDataMaskRule.ts.html |here} to see how to use UpdateDataMaskRule API.
|
|
6036
6903
|
*/
|
|
6037
6904
|
updateDataMaskRule(updateDataMaskRuleRequest) {
|
|
6038
6905
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6095,7 +6962,7 @@ class CloudGuardClient {
|
|
|
6095
6962
|
* @param UpdateDetectorRecipeRequest
|
|
6096
6963
|
* @return UpdateDetectorRecipeResponse
|
|
6097
6964
|
* @throws OciError when an error occurs
|
|
6098
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
6965
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateDetectorRecipe.ts.html |here} to see how to use UpdateDetectorRecipe API.
|
|
6099
6966
|
*/
|
|
6100
6967
|
updateDetectorRecipe(updateDetectorRecipeRequest) {
|
|
6101
6968
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6159,7 +7026,7 @@ class CloudGuardClient {
|
|
|
6159
7026
|
* @param UpdateDetectorRecipeDetectorRuleRequest
|
|
6160
7027
|
* @return UpdateDetectorRecipeDetectorRuleResponse
|
|
6161
7028
|
* @throws OciError when an error occurs
|
|
6162
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7029
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateDetectorRecipeDetectorRule.ts.html |here} to see how to use UpdateDetectorRecipeDetectorRule API.
|
|
6163
7030
|
*/
|
|
6164
7031
|
updateDetectorRecipeDetectorRule(updateDetectorRecipeDetectorRuleRequest) {
|
|
6165
7032
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6223,7 +7090,7 @@ class CloudGuardClient {
|
|
|
6223
7090
|
* @param UpdateManagedListRequest
|
|
6224
7091
|
* @return UpdateManagedListResponse
|
|
6225
7092
|
* @throws OciError when an error occurs
|
|
6226
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7093
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateManagedList.ts.html |here} to see how to use UpdateManagedList API.
|
|
6227
7094
|
*/
|
|
6228
7095
|
updateManagedList(updateManagedListRequest) {
|
|
6229
7096
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6288,7 +7155,7 @@ class CloudGuardClient {
|
|
|
6288
7155
|
* @param UpdateProblemStatusRequest
|
|
6289
7156
|
* @return UpdateProblemStatusResponse
|
|
6290
7157
|
* @throws OciError when an error occurs
|
|
6291
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7158
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateProblemStatus.ts.html |here} to see how to use UpdateProblemStatus API.
|
|
6292
7159
|
*/
|
|
6293
7160
|
updateProblemStatus(updateProblemStatusRequest) {
|
|
6294
7161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6352,7 +7219,7 @@ class CloudGuardClient {
|
|
|
6352
7219
|
* @param UpdateResponderRecipeRequest
|
|
6353
7220
|
* @return UpdateResponderRecipeResponse
|
|
6354
7221
|
* @throws OciError when an error occurs
|
|
6355
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7222
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateResponderRecipe.ts.html |here} to see how to use UpdateResponderRecipe API.
|
|
6356
7223
|
*/
|
|
6357
7224
|
updateResponderRecipe(updateResponderRecipeRequest) {
|
|
6358
7225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6415,7 +7282,7 @@ class CloudGuardClient {
|
|
|
6415
7282
|
* @param UpdateResponderRecipeResponderRuleRequest
|
|
6416
7283
|
* @return UpdateResponderRecipeResponderRuleResponse
|
|
6417
7284
|
* @throws OciError when an error occurs
|
|
6418
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7285
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateResponderRecipeResponderRule.ts.html |here} to see how to use UpdateResponderRecipeResponderRule API.
|
|
6419
7286
|
*/
|
|
6420
7287
|
updateResponderRecipeResponderRule(updateResponderRecipeResponderRuleRequest) {
|
|
6421
7288
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6473,13 +7340,139 @@ class CloudGuardClient {
|
|
|
6473
7340
|
}
|
|
6474
7341
|
});
|
|
6475
7342
|
}
|
|
7343
|
+
/**
|
|
7344
|
+
* Updates a security zone recipe. A security zone recipe is a collection of security zone policies.
|
|
7345
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
7346
|
+
* @param UpdateSecurityRecipeRequest
|
|
7347
|
+
* @return UpdateSecurityRecipeResponse
|
|
7348
|
+
* @throws OciError when an error occurs
|
|
7349
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateSecurityRecipe.ts.html |here} to see how to use UpdateSecurityRecipe API.
|
|
7350
|
+
*/
|
|
7351
|
+
updateSecurityRecipe(updateSecurityRecipeRequest) {
|
|
7352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7353
|
+
if (this.logger)
|
|
7354
|
+
this.logger.debug("Calling operation CloudGuardClient#updateSecurityRecipe.");
|
|
7355
|
+
const pathParams = {
|
|
7356
|
+
"{securityRecipeId}": updateSecurityRecipeRequest.securityRecipeId
|
|
7357
|
+
};
|
|
7358
|
+
const queryParams = {};
|
|
7359
|
+
let headerParams = {
|
|
7360
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7361
|
+
"if-match": updateSecurityRecipeRequest.ifMatch,
|
|
7362
|
+
"opc-request-id": updateSecurityRecipeRequest.opcRequestId
|
|
7363
|
+
};
|
|
7364
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
7365
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSecurityRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
7366
|
+
if (this.logger)
|
|
7367
|
+
retrier.logger = this.logger;
|
|
7368
|
+
const request = yield oci_common_1.composeRequest({
|
|
7369
|
+
baseEndpoint: this._endpoint,
|
|
7370
|
+
defaultHeaders: this._defaultHeaders,
|
|
7371
|
+
path: "/securityRecipes/{securityRecipeId}",
|
|
7372
|
+
method: "PUT",
|
|
7373
|
+
bodyContent: common.ObjectSerializer.serialize(updateSecurityRecipeRequest.updateSecurityRecipeDetails, "UpdateSecurityRecipeDetails", model.UpdateSecurityRecipeDetails.getJsonObj),
|
|
7374
|
+
pathParams: pathParams,
|
|
7375
|
+
headerParams: headerParams,
|
|
7376
|
+
queryParams: queryParams
|
|
7377
|
+
});
|
|
7378
|
+
try {
|
|
7379
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
7380
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
7381
|
+
responseObject: {},
|
|
7382
|
+
body: yield response.json(),
|
|
7383
|
+
bodyKey: "securityRecipe",
|
|
7384
|
+
bodyModel: model.SecurityRecipe,
|
|
7385
|
+
type: "model.SecurityRecipe",
|
|
7386
|
+
responseHeaders: [
|
|
7387
|
+
{
|
|
7388
|
+
value: response.headers.get("etag"),
|
|
7389
|
+
key: "etag",
|
|
7390
|
+
dataType: "string"
|
|
7391
|
+
},
|
|
7392
|
+
{
|
|
7393
|
+
value: response.headers.get("opc-request-id"),
|
|
7394
|
+
key: "opcRequestId",
|
|
7395
|
+
dataType: "string"
|
|
7396
|
+
}
|
|
7397
|
+
]
|
|
7398
|
+
});
|
|
7399
|
+
return sdkResponse;
|
|
7400
|
+
}
|
|
7401
|
+
catch (err) {
|
|
7402
|
+
throw err;
|
|
7403
|
+
}
|
|
7404
|
+
});
|
|
7405
|
+
}
|
|
7406
|
+
/**
|
|
7407
|
+
* Updates the security zone identified by its id
|
|
7408
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
7409
|
+
* @param UpdateSecurityZoneRequest
|
|
7410
|
+
* @return UpdateSecurityZoneResponse
|
|
7411
|
+
* @throws OciError when an error occurs
|
|
7412
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateSecurityZone.ts.html |here} to see how to use UpdateSecurityZone API.
|
|
7413
|
+
*/
|
|
7414
|
+
updateSecurityZone(updateSecurityZoneRequest) {
|
|
7415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7416
|
+
if (this.logger)
|
|
7417
|
+
this.logger.debug("Calling operation CloudGuardClient#updateSecurityZone.");
|
|
7418
|
+
const pathParams = {
|
|
7419
|
+
"{securityZoneId}": updateSecurityZoneRequest.securityZoneId
|
|
7420
|
+
};
|
|
7421
|
+
const queryParams = {};
|
|
7422
|
+
let headerParams = {
|
|
7423
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7424
|
+
"if-match": updateSecurityZoneRequest.ifMatch,
|
|
7425
|
+
"opc-request-id": updateSecurityZoneRequest.opcRequestId
|
|
7426
|
+
};
|
|
7427
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
7428
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSecurityZoneRequest.retryConfiguration, specRetryConfiguration);
|
|
7429
|
+
if (this.logger)
|
|
7430
|
+
retrier.logger = this.logger;
|
|
7431
|
+
const request = yield oci_common_1.composeRequest({
|
|
7432
|
+
baseEndpoint: this._endpoint,
|
|
7433
|
+
defaultHeaders: this._defaultHeaders,
|
|
7434
|
+
path: "/securityZones/{securityZoneId}",
|
|
7435
|
+
method: "PUT",
|
|
7436
|
+
bodyContent: common.ObjectSerializer.serialize(updateSecurityZoneRequest.updateSecurityZoneDetails, "UpdateSecurityZoneDetails", model.UpdateSecurityZoneDetails.getJsonObj),
|
|
7437
|
+
pathParams: pathParams,
|
|
7438
|
+
headerParams: headerParams,
|
|
7439
|
+
queryParams: queryParams
|
|
7440
|
+
});
|
|
7441
|
+
try {
|
|
7442
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
7443
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
7444
|
+
responseObject: {},
|
|
7445
|
+
body: yield response.json(),
|
|
7446
|
+
bodyKey: "securityZone",
|
|
7447
|
+
bodyModel: model.SecurityZone,
|
|
7448
|
+
type: "model.SecurityZone",
|
|
7449
|
+
responseHeaders: [
|
|
7450
|
+
{
|
|
7451
|
+
value: response.headers.get("etag"),
|
|
7452
|
+
key: "etag",
|
|
7453
|
+
dataType: "string"
|
|
7454
|
+
},
|
|
7455
|
+
{
|
|
7456
|
+
value: response.headers.get("opc-request-id"),
|
|
7457
|
+
key: "opcRequestId",
|
|
7458
|
+
dataType: "string"
|
|
7459
|
+
}
|
|
7460
|
+
]
|
|
7461
|
+
});
|
|
7462
|
+
return sdkResponse;
|
|
7463
|
+
}
|
|
7464
|
+
catch (err) {
|
|
7465
|
+
throw err;
|
|
7466
|
+
}
|
|
7467
|
+
});
|
|
7468
|
+
}
|
|
6476
7469
|
/**
|
|
6477
7470
|
* Updates a Target identified by targetId
|
|
6478
7471
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
6479
7472
|
* @param UpdateTargetRequest
|
|
6480
7473
|
* @return UpdateTargetResponse
|
|
6481
7474
|
* @throws OciError when an error occurs
|
|
6482
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7475
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateTarget.ts.html |here} to see how to use UpdateTarget API.
|
|
6483
7476
|
*/
|
|
6484
7477
|
updateTarget(updateTargetRequest) {
|
|
6485
7478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6542,7 +7535,7 @@ class CloudGuardClient {
|
|
|
6542
7535
|
* @param UpdateTargetDetectorRecipeRequest
|
|
6543
7536
|
* @return UpdateTargetDetectorRecipeResponse
|
|
6544
7537
|
* @throws OciError when an error occurs
|
|
6545
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7538
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateTargetDetectorRecipe.ts.html |here} to see how to use UpdateTargetDetectorRecipe API.
|
|
6546
7539
|
*/
|
|
6547
7540
|
updateTargetDetectorRecipe(updateTargetDetectorRecipeRequest) {
|
|
6548
7541
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6606,7 +7599,7 @@ class CloudGuardClient {
|
|
|
6606
7599
|
* @param UpdateTargetDetectorRecipeDetectorRuleRequest
|
|
6607
7600
|
* @return UpdateTargetDetectorRecipeDetectorRuleResponse
|
|
6608
7601
|
* @throws OciError when an error occurs
|
|
6609
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7602
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateTargetDetectorRecipeDetectorRule.ts.html |here} to see how to use UpdateTargetDetectorRecipeDetectorRule API.
|
|
6610
7603
|
*/
|
|
6611
7604
|
updateTargetDetectorRecipeDetectorRule(updateTargetDetectorRecipeDetectorRuleRequest) {
|
|
6612
7605
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6671,7 +7664,7 @@ class CloudGuardClient {
|
|
|
6671
7664
|
* @param UpdateTargetResponderRecipeRequest
|
|
6672
7665
|
* @return UpdateTargetResponderRecipeResponse
|
|
6673
7666
|
* @throws OciError when an error occurs
|
|
6674
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7667
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateTargetResponderRecipe.ts.html |here} to see how to use UpdateTargetResponderRecipe API.
|
|
6675
7668
|
*/
|
|
6676
7669
|
updateTargetResponderRecipe(updateTargetResponderRecipeRequest) {
|
|
6677
7670
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6735,7 +7728,7 @@ class CloudGuardClient {
|
|
|
6735
7728
|
* @param UpdateTargetResponderRecipeResponderRuleRequest
|
|
6736
7729
|
* @return UpdateTargetResponderRecipeResponderRuleResponse
|
|
6737
7730
|
* @throws OciError when an error occurs
|
|
6738
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
7731
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/cloudguard/UpdateTargetResponderRecipeResponderRule.ts.html |here} to see how to use UpdateTargetResponderRecipeResponderRule API.
|
|
6739
7732
|
*/
|
|
6740
7733
|
updateTargetResponderRecipeResponderRule(updateTargetResponderRecipeResponderRuleRequest) {
|
|
6741
7734
|
return __awaiter(this, void 0, void 0, function* () {
|