datadog_api_client 2.33.0 → 2.34.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.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +2 -1
- data/.generator/schemas/v1/openapi.yaml +18 -3
- data/.generator/schemas/v2/openapi.yaml +2577 -883
- data/.generator/src/generator/templates/configuration.j2 +2 -2
- data/.github/workflows/publish.yml +16 -8
- data/.github/workflows/release.yml +57 -61
- data/CHANGELOG.md +16 -0
- data/Gemfile +2 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +21 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +7 -4
- data/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb +3 -2
- data/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb +8 -0
- data/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb +8 -2
- data/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb +1 -1
- data/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb +1 -1
- data/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb +8 -0
- data/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb +8 -2
- data/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb +5 -0
- data/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb +1 -1
- data/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb +1 -1
- data/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb +25 -0
- data/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb +12 -4
- data/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb +3 -4
- data/examples/v2/dora-metrics/GetDORADeployment.rb +5 -0
- data/examples/v2/dora-metrics/GetDORAFailure.rb +5 -0
- data/examples/v2/dora-metrics/ListDORADeployments.rb +16 -0
- data/examples/v2/dora-metrics/ListDORAFailures.rb +16 -0
- data/examples/v2/network-device-monitoring/ListDevices_2712868412.rb +5 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +19 -17
- data/examples/v2/on-call/CreateOnCallSchedule.rb +11 -15
- data/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +2 -2
- data/examples/v2/on-call/DeleteOnCallSchedule.rb +2 -2
- data/examples/v2/on-call/GetOnCallEscalationPolicy.rb +6 -3
- data/examples/v2/on-call/GetOnCallSchedule.rb +2 -2
- data/examples/v2/on-call/GetOnCallTeamRoutingRules.rb +5 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +8 -0
- data/examples/v2/on-call/SetOnCallTeamRoutingRules.rb +57 -0
- data/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +8 -9
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +11 -16
- data/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb +5 -0
- data/examples/v2/on-call-paging/CreateOnCallPage.rb +23 -0
- data/examples/v2/on-call-paging/EscalateOnCallPage.rb +5 -0
- data/examples/v2/on-call-paging/ResolveOnCallPage.rb +5 -0
- data/examples/v2/rum-metrics/CreateRumMetric.rb +1 -1
- data/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb +9 -0
- data/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb +21 -0
- data/examples/v2/software-catalog/ListCatalogRelation.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb +8 -0
- data/examples/v2/workflow-automation/CreateWorkflow.rb +0 -1
- data/examples/v2/workflow-automation/UpdateWorkflow.rb +0 -1
- data/lib/datadog_api_client/configuration.rb +203 -15
- data/lib/datadog_api_client/inflector.rb +104 -43
- data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +2 -2
- data/lib/datadog_api_client/v2/api/csm_threats_api.rb +424 -52
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +265 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +25 -3
- data/lib/datadog_api_client/v2/api/on_call_api.rb +234 -24
- data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +292 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +133 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +101 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams.rb → cloud_workload_security_agent_policies_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +300 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items.rb → cloud_workload_security_agent_policy_create_data.rb} +19 -19
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_restrictions_items.rb → cloud_workload_security_agent_policy_update_attributes.rb} +46 -33
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_updater_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +31 -19
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +27 -5
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +29 -7
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_page_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_attributes_target.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_page_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_page_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_page_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb +2 -24
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams.rb → data_relationships_teams.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items.rb → data_relationships_teams_data_items.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items_type.rb → data_relationships_teams_data_items_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_attributes_steps_items_targets_items.rb → dora_event.rb} +17 -7
- data/lib/datadog_api_client/v2/models/dora_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams.rb → dora_list_failures_request.rb} +25 -9
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items_type.rb → dora_list_failures_request_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams.rb → dora_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +1 -21
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +2 -12
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +2 -3
- data/lib/datadog_api_client/v2/models/escalation_policy_step_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_attributes_steps_items_targets_items.rb → escalation_policy_step_target.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_attributes_steps_items_targets_items_type.rb → escalation_policy_step_target_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_user.rb +143 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_user_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items_type.rb → escalation_policy_user_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users.rb → escalation_targets.rb} +5 -5
- data/lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb +2 -34
- data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/historical_job_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/http_integration.rb +0 -6
- data/lib/datadog_api_client/v2/models/http_integration_update.rb +1 -14
- data/lib/datadog_api_client/v2/models/incident_severity.rb +1 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_relation_catalog_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/list_relation_catalog_response_links.rb +125 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -13
- data/lib/datadog_api_client/v2/models/observability_pipeline_metadata_entry.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_call_page_target_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items_type.rb → page_urgency.rb} +4 -3
- data/lib/datadog_api_client/v2/models/relation_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/relation_entity.rb +125 -0
- data/lib/datadog_api_client/v2/models/relation_include_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/relation_meta.rb +135 -0
- data/lib/datadog_api_client/v2/models/relation_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/relation_response.rb +155 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams.rb → relation_response_meta.rb} +21 -13
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items_type.rb → relation_response_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/relation_to_entity.rb +115 -0
- data/lib/datadog_api_client/v2/models/resource_filter_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items_type.rb → resource_filter_request_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/routing_rule.rb +153 -0
- data/lib/datadog_api_client/v2/models/routing_rule_action.rb +63 -0
- data/lib/datadog_api_client/v2/models/routing_rule_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items_user.rb → routing_rule_relationships.rb} +11 -11
- data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy.rb +105 -0
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items.rb → routing_rule_relationships_policy_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/routing_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +3 -15
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +4 -4
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +2 -14
- data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +1 -1
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items.rb → schedule_request_data_attributes_layers_items_members_items.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items_user.rb → schedule_request_data_attributes_layers_items_members_items_user.rb} +2 -2
- data/lib/datadog_api_client/v2/models/schedule_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +2 -14
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +4 -4
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +2 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/send_slack_message_action.rb +165 -0
- data/lib/datadog_api_client/v2/models/send_slack_message_action_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/send_teams_message_action.rb +186 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items_type.rb → send_teams_message_action_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams.rb → shift.rb} +19 -9
- data/lib/datadog_api_client/v2/models/shift_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items.rb → shift_data_relationships.rb} +5 -6
- data/lib/datadog_api_client/v2/models/shift_data_relationships_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items.rb → shift_data_relationships_user_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/shift_data_relationships_user_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/shift_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/shift_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/team_reference.rb +1 -11
- data/lib/datadog_api_client/v2/models/team_routing_rules.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules.rb +107 -0
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items.rb → team_routing_rules_data_relationships_rules_data_items.rb} +6 -7
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items.rb → team_routing_rules_request_data.rb} +18 -19
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_restrictions_items.rb → team_routing_rules_request_rule.rb} +44 -33
- data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items.rb → time_restriction.rb} +9 -10
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_interval.rb → time_restrictions.rb} +32 -30
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items.rb → update_resource_evaluation_filters_response_data.rb} +24 -14
- data/lib/datadog_api_client/v2/models/urgency.rb +28 -0
- data/lib/datadog_api_client/v2/models/user_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items_end_day.rb → weekday.rb} +2 -2
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +128 -51
- data/.github/workflows/prepare_release.yml +0 -112
- data/RELEASING.md +0 -43
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_assignment.rb +0 -27
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_assignment.rb +0 -27
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb +0 -28
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +0 -144
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/team_reference_relationships.rb +0 -105
@@ -23,7 +23,7 @@ module DatadogAPIClient::V2
|
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
25
|
|
26
|
-
# Create a
|
26
|
+
# Create a Workload Protection agent rule (US1-FED).
|
27
27
|
#
|
28
28
|
# @see #create_cloud_workload_security_agent_rule_with_http_info
|
29
29
|
def create_cloud_workload_security_agent_rule(body, opts = {})
|
@@ -31,11 +31,13 @@ module DatadogAPIClient::V2
|
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
34
|
-
# Create a
|
34
|
+
# Create a Workload Protection agent rule (US1-FED).
|
35
35
|
#
|
36
|
-
# Create a new
|
36
|
+
# Create a new agent rule with the given parameters.
|
37
37
|
#
|
38
|
-
#
|
38
|
+
# **Note**: This endpoint should only be used for the Government (US1-FED) site.
|
39
|
+
#
|
40
|
+
# @param body [CloudWorkloadSecurityAgentRuleCreateRequest] The definition of the new agent rule
|
39
41
|
# @param opts [Hash] the optional parameters
|
40
42
|
# @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
|
41
43
|
def create_cloud_workload_security_agent_rule_with_http_info(body, opts = {})
|
@@ -90,7 +92,76 @@ module DatadogAPIClient::V2
|
|
90
92
|
return data, status_code, headers
|
91
93
|
end
|
92
94
|
|
93
|
-
# Create a
|
95
|
+
# Create a Workload Protection policy.
|
96
|
+
#
|
97
|
+
# @see #create_csm_threats_agent_policy_with_http_info
|
98
|
+
def create_csm_threats_agent_policy(body, opts = {})
|
99
|
+
data, _status_code, _headers = create_csm_threats_agent_policy_with_http_info(body, opts)
|
100
|
+
data
|
101
|
+
end
|
102
|
+
|
103
|
+
# Create a Workload Protection policy.
|
104
|
+
#
|
105
|
+
# Create a new Workload Protection policy with the given parameters.
|
106
|
+
#
|
107
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
108
|
+
#
|
109
|
+
# @param body [CloudWorkloadSecurityAgentPolicyCreateRequest] The definition of the new Agent policy
|
110
|
+
# @param opts [Hash] the optional parameters
|
111
|
+
# @return [Array<(CloudWorkloadSecurityAgentPolicyResponse, Integer, Hash)>] CloudWorkloadSecurityAgentPolicyResponse data, response status code and response headers
|
112
|
+
def create_csm_threats_agent_policy_with_http_info(body, opts = {})
|
113
|
+
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug 'Calling API: CSMThreatsAPI.create_csm_threats_agent_policy ...'
|
116
|
+
end
|
117
|
+
# verify the required parameter 'body' is set
|
118
|
+
if @api_client.config.client_side_validation && body.nil?
|
119
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CSMThreatsAPI.create_csm_threats_agent_policy"
|
120
|
+
end
|
121
|
+
# resource path
|
122
|
+
local_var_path = '/api/v2/remote_config/products/cws/policy'
|
123
|
+
|
124
|
+
# query parameters
|
125
|
+
query_params = opts[:query_params] || {}
|
126
|
+
|
127
|
+
# header parameters
|
128
|
+
header_params = opts[:header_params] || {}
|
129
|
+
# HTTP header 'Accept' (if needed)
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
131
|
+
# HTTP header 'Content-Type'
|
132
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
133
|
+
|
134
|
+
# form parameters
|
135
|
+
form_params = opts[:form_params] || {}
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
139
|
+
|
140
|
+
# return_type
|
141
|
+
return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPolicyResponse'
|
142
|
+
|
143
|
+
# auth_names
|
144
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
145
|
+
|
146
|
+
new_options = opts.merge(
|
147
|
+
:operation => :create_csm_threats_agent_policy,
|
148
|
+
:header_params => header_params,
|
149
|
+
:query_params => query_params,
|
150
|
+
:form_params => form_params,
|
151
|
+
:body => post_body,
|
152
|
+
:auth_names => auth_names,
|
153
|
+
:return_type => return_type,
|
154
|
+
:api_version => "V2"
|
155
|
+
)
|
156
|
+
|
157
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: CSMThreatsAPI#create_csm_threats_agent_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# Create a Workload Protection agent rule.
|
94
165
|
#
|
95
166
|
# @see #create_csm_threats_agent_rule_with_http_info
|
96
167
|
def create_csm_threats_agent_rule(body, opts = {})
|
@@ -98,11 +169,13 @@ module DatadogAPIClient::V2
|
|
98
169
|
data
|
99
170
|
end
|
100
171
|
|
101
|
-
# Create a
|
172
|
+
# Create a Workload Protection agent rule.
|
173
|
+
#
|
174
|
+
# Create a new Workload Protection agent rule with the given parameters.
|
102
175
|
#
|
103
|
-
#
|
176
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
104
177
|
#
|
105
|
-
# @param body [CloudWorkloadSecurityAgentRuleCreateRequest] The definition of the new
|
178
|
+
# @param body [CloudWorkloadSecurityAgentRuleCreateRequest] The definition of the new agent rule
|
106
179
|
# @param opts [Hash] the optional parameters
|
107
180
|
# @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
|
108
181
|
def create_csm_threats_agent_rule_with_http_info(body, opts = {})
|
@@ -157,7 +230,7 @@ module DatadogAPIClient::V2
|
|
157
230
|
return data, status_code, headers
|
158
231
|
end
|
159
232
|
|
160
|
-
# Delete a
|
233
|
+
# Delete a Workload Protection agent rule (US1-FED).
|
161
234
|
#
|
162
235
|
# @see #delete_cloud_workload_security_agent_rule_with_http_info
|
163
236
|
def delete_cloud_workload_security_agent_rule(agent_rule_id, opts = {})
|
@@ -165,11 +238,13 @@ module DatadogAPIClient::V2
|
|
165
238
|
nil
|
166
239
|
end
|
167
240
|
|
168
|
-
# Delete a
|
241
|
+
# Delete a Workload Protection agent rule (US1-FED).
|
169
242
|
#
|
170
|
-
# Delete a specific
|
243
|
+
# Delete a specific agent rule.
|
171
244
|
#
|
172
|
-
#
|
245
|
+
# **Note**: This endpoint should only be used for the Government (US1-FED) site.
|
246
|
+
#
|
247
|
+
# @param agent_rule_id [String] The ID of the Agent rule
|
173
248
|
# @param opts [Hash] the optional parameters
|
174
249
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
175
250
|
def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = {})
|
@@ -222,7 +297,74 @@ module DatadogAPIClient::V2
|
|
222
297
|
return data, status_code, headers
|
223
298
|
end
|
224
299
|
|
225
|
-
# Delete a
|
300
|
+
# Delete a Workload Protection policy.
|
301
|
+
#
|
302
|
+
# @see #delete_csm_threats_agent_policy_with_http_info
|
303
|
+
def delete_csm_threats_agent_policy(policy_id, opts = {})
|
304
|
+
delete_csm_threats_agent_policy_with_http_info(policy_id, opts)
|
305
|
+
nil
|
306
|
+
end
|
307
|
+
|
308
|
+
# Delete a Workload Protection policy.
|
309
|
+
#
|
310
|
+
# Delete a specific Workload Protection policy.
|
311
|
+
#
|
312
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
313
|
+
#
|
314
|
+
# @param policy_id [String] The ID of the Agent policy
|
315
|
+
# @param opts [Hash] the optional parameters
|
316
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
317
|
+
def delete_csm_threats_agent_policy_with_http_info(policy_id, opts = {})
|
318
|
+
|
319
|
+
if @api_client.config.debugging
|
320
|
+
@api_client.config.logger.debug 'Calling API: CSMThreatsAPI.delete_csm_threats_agent_policy ...'
|
321
|
+
end
|
322
|
+
# verify the required parameter 'policy_id' is set
|
323
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
324
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling CSMThreatsAPI.delete_csm_threats_agent_policy"
|
325
|
+
end
|
326
|
+
# resource path
|
327
|
+
local_var_path = '/api/v2/remote_config/products/cws/policy/{policy_id}'.sub('{policy_id}', CGI.escape(policy_id.to_s).gsub('%2F', '/'))
|
328
|
+
|
329
|
+
# query parameters
|
330
|
+
query_params = opts[:query_params] || {}
|
331
|
+
|
332
|
+
# header parameters
|
333
|
+
header_params = opts[:header_params] || {}
|
334
|
+
# HTTP header 'Accept' (if needed)
|
335
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
336
|
+
|
337
|
+
# form parameters
|
338
|
+
form_params = opts[:form_params] || {}
|
339
|
+
|
340
|
+
# http body (model)
|
341
|
+
post_body = opts[:debug_body]
|
342
|
+
|
343
|
+
# return_type
|
344
|
+
return_type = opts[:debug_return_type]
|
345
|
+
|
346
|
+
# auth_names
|
347
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
348
|
+
|
349
|
+
new_options = opts.merge(
|
350
|
+
:operation => :delete_csm_threats_agent_policy,
|
351
|
+
:header_params => header_params,
|
352
|
+
:query_params => query_params,
|
353
|
+
:form_params => form_params,
|
354
|
+
:body => post_body,
|
355
|
+
:auth_names => auth_names,
|
356
|
+
:return_type => return_type,
|
357
|
+
:api_version => "V2"
|
358
|
+
)
|
359
|
+
|
360
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
361
|
+
if @api_client.config.debugging
|
362
|
+
@api_client.config.logger.debug "API called: CSMThreatsAPI#delete_csm_threats_agent_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
363
|
+
end
|
364
|
+
return data, status_code, headers
|
365
|
+
end
|
366
|
+
|
367
|
+
# Delete a Workload Protection agent rule.
|
226
368
|
#
|
227
369
|
# @see #delete_csm_threats_agent_rule_with_http_info
|
228
370
|
def delete_csm_threats_agent_rule(agent_rule_id, opts = {})
|
@@ -230,12 +372,15 @@ module DatadogAPIClient::V2
|
|
230
372
|
nil
|
231
373
|
end
|
232
374
|
|
233
|
-
# Delete a
|
375
|
+
# Delete a Workload Protection agent rule.
|
376
|
+
#
|
377
|
+
# Delete a specific Workload Protection agent rule.
|
234
378
|
#
|
235
|
-
#
|
379
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
236
380
|
#
|
237
|
-
# @param agent_rule_id [String] The ID of the Agent rule
|
381
|
+
# @param agent_rule_id [String] The ID of the Agent rule
|
238
382
|
# @param opts [Hash] the optional parameters
|
383
|
+
# @option opts [String] :policy_id The ID of the Agent policy
|
239
384
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
240
385
|
def delete_csm_threats_agent_rule_with_http_info(agent_rule_id, opts = {})
|
241
386
|
|
@@ -251,6 +396,7 @@ module DatadogAPIClient::V2
|
|
251
396
|
|
252
397
|
# query parameters
|
253
398
|
query_params = opts[:query_params] || {}
|
399
|
+
query_params[:'policy_id'] = opts[:'policy_id'] if !opts[:'policy_id'].nil?
|
254
400
|
|
255
401
|
# header parameters
|
256
402
|
header_params = opts[:header_params] || {}
|
@@ -287,7 +433,7 @@ module DatadogAPIClient::V2
|
|
287
433
|
return data, status_code, headers
|
288
434
|
end
|
289
435
|
|
290
|
-
#
|
436
|
+
# Download the Workload Protection policy (US1-FED).
|
291
437
|
#
|
292
438
|
# @see #download_cloud_workload_policy_file_with_http_info
|
293
439
|
def download_cloud_workload_policy_file(opts = {})
|
@@ -295,11 +441,13 @@ module DatadogAPIClient::V2
|
|
295
441
|
data
|
296
442
|
end
|
297
443
|
|
298
|
-
#
|
444
|
+
# Download the Workload Protection policy (US1-FED).
|
299
445
|
#
|
300
|
-
# The download endpoint generates a
|
301
|
-
#
|
302
|
-
# your
|
446
|
+
# The download endpoint generates a Workload Protection policy file from your currently active
|
447
|
+
# Workload Protection agent rules, and downloads them as a `.policy` file. This file can then be deployed to
|
448
|
+
# your agents to update the policy running in your environment.
|
449
|
+
#
|
450
|
+
# **Note**: This endpoint should only be used for the Government (US1-FED) site.
|
303
451
|
#
|
304
452
|
# @param opts [Hash] the optional parameters
|
305
453
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
@@ -349,7 +497,7 @@ module DatadogAPIClient::V2
|
|
349
497
|
return data, status_code, headers
|
350
498
|
end
|
351
499
|
|
352
|
-
#
|
500
|
+
# Download the Workload Protection policy.
|
353
501
|
#
|
354
502
|
# @see #download_csm_threats_policy_with_http_info
|
355
503
|
def download_csm_threats_policy(opts = {})
|
@@ -357,11 +505,13 @@ module DatadogAPIClient::V2
|
|
357
505
|
data
|
358
506
|
end
|
359
507
|
|
360
|
-
#
|
508
|
+
# Download the Workload Protection policy.
|
509
|
+
#
|
510
|
+
# The download endpoint generates a Workload Protection policy file from your currently active
|
511
|
+
# Workload Protection agent rules, and downloads them as a `.policy` file. This file can then be deployed to
|
512
|
+
# your agents to update the policy running in your environment.
|
361
513
|
#
|
362
|
-
#
|
363
|
-
# CSM Threats rules, and downloads them as a `.policy` file. This file can then be deployed to
|
364
|
-
# your Agents to update the policy running in your environment.
|
514
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
365
515
|
#
|
366
516
|
# @param opts [Hash] the optional parameters
|
367
517
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
@@ -411,7 +561,7 @@ module DatadogAPIClient::V2
|
|
411
561
|
return data, status_code, headers
|
412
562
|
end
|
413
563
|
|
414
|
-
# Get a
|
564
|
+
# Get a Workload Protection agent rule (US1-FED).
|
415
565
|
#
|
416
566
|
# @see #get_cloud_workload_security_agent_rule_with_http_info
|
417
567
|
def get_cloud_workload_security_agent_rule(agent_rule_id, opts = {})
|
@@ -419,11 +569,13 @@ module DatadogAPIClient::V2
|
|
419
569
|
data
|
420
570
|
end
|
421
571
|
|
422
|
-
# Get a
|
572
|
+
# Get a Workload Protection agent rule (US1-FED).
|
423
573
|
#
|
424
|
-
# Get the details of a specific
|
574
|
+
# Get the details of a specific agent rule.
|
425
575
|
#
|
426
|
-
#
|
576
|
+
# **Note**: This endpoint should only be used for the Government (US1-FED) site.
|
577
|
+
#
|
578
|
+
# @param agent_rule_id [String] The ID of the Agent rule
|
427
579
|
# @param opts [Hash] the optional parameters
|
428
580
|
# @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
|
429
581
|
def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = {})
|
@@ -476,7 +628,74 @@ module DatadogAPIClient::V2
|
|
476
628
|
return data, status_code, headers
|
477
629
|
end
|
478
630
|
|
479
|
-
# Get a
|
631
|
+
# Get a Workload Protection policy.
|
632
|
+
#
|
633
|
+
# @see #get_csm_threats_agent_policy_with_http_info
|
634
|
+
def get_csm_threats_agent_policy(policy_id, opts = {})
|
635
|
+
data, _status_code, _headers = get_csm_threats_agent_policy_with_http_info(policy_id, opts)
|
636
|
+
data
|
637
|
+
end
|
638
|
+
|
639
|
+
# Get a Workload Protection policy.
|
640
|
+
#
|
641
|
+
# Get the details of a specific Workload Protection policy.
|
642
|
+
#
|
643
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
644
|
+
#
|
645
|
+
# @param policy_id [String] The ID of the Agent policy
|
646
|
+
# @param opts [Hash] the optional parameters
|
647
|
+
# @return [Array<(CloudWorkloadSecurityAgentPolicyResponse, Integer, Hash)>] CloudWorkloadSecurityAgentPolicyResponse data, response status code and response headers
|
648
|
+
def get_csm_threats_agent_policy_with_http_info(policy_id, opts = {})
|
649
|
+
|
650
|
+
if @api_client.config.debugging
|
651
|
+
@api_client.config.logger.debug 'Calling API: CSMThreatsAPI.get_csm_threats_agent_policy ...'
|
652
|
+
end
|
653
|
+
# verify the required parameter 'policy_id' is set
|
654
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
655
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling CSMThreatsAPI.get_csm_threats_agent_policy"
|
656
|
+
end
|
657
|
+
# resource path
|
658
|
+
local_var_path = '/api/v2/remote_config/products/cws/policy/{policy_id}'.sub('{policy_id}', CGI.escape(policy_id.to_s).gsub('%2F', '/'))
|
659
|
+
|
660
|
+
# query parameters
|
661
|
+
query_params = opts[:query_params] || {}
|
662
|
+
|
663
|
+
# header parameters
|
664
|
+
header_params = opts[:header_params] || {}
|
665
|
+
# HTTP header 'Accept' (if needed)
|
666
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
667
|
+
|
668
|
+
# form parameters
|
669
|
+
form_params = opts[:form_params] || {}
|
670
|
+
|
671
|
+
# http body (model)
|
672
|
+
post_body = opts[:debug_body]
|
673
|
+
|
674
|
+
# return_type
|
675
|
+
return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPolicyResponse'
|
676
|
+
|
677
|
+
# auth_names
|
678
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
679
|
+
|
680
|
+
new_options = opts.merge(
|
681
|
+
:operation => :get_csm_threats_agent_policy,
|
682
|
+
:header_params => header_params,
|
683
|
+
:query_params => query_params,
|
684
|
+
:form_params => form_params,
|
685
|
+
:body => post_body,
|
686
|
+
:auth_names => auth_names,
|
687
|
+
:return_type => return_type,
|
688
|
+
:api_version => "V2"
|
689
|
+
)
|
690
|
+
|
691
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
692
|
+
if @api_client.config.debugging
|
693
|
+
@api_client.config.logger.debug "API called: CSMThreatsAPI#get_csm_threats_agent_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
694
|
+
end
|
695
|
+
return data, status_code, headers
|
696
|
+
end
|
697
|
+
|
698
|
+
# Get a Workload Protection agent rule.
|
480
699
|
#
|
481
700
|
# @see #get_csm_threats_agent_rule_with_http_info
|
482
701
|
def get_csm_threats_agent_rule(agent_rule_id, opts = {})
|
@@ -484,12 +703,15 @@ module DatadogAPIClient::V2
|
|
484
703
|
data
|
485
704
|
end
|
486
705
|
|
487
|
-
# Get a
|
706
|
+
# Get a Workload Protection agent rule.
|
488
707
|
#
|
489
|
-
# Get the details of a specific
|
708
|
+
# Get the details of a specific Workload Protection agent rule.
|
490
709
|
#
|
491
|
-
#
|
710
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
711
|
+
#
|
712
|
+
# @param agent_rule_id [String] The ID of the Agent rule
|
492
713
|
# @param opts [Hash] the optional parameters
|
714
|
+
# @option opts [String] :policy_id The ID of the Agent policy
|
493
715
|
# @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
|
494
716
|
def get_csm_threats_agent_rule_with_http_info(agent_rule_id, opts = {})
|
495
717
|
|
@@ -505,6 +727,7 @@ module DatadogAPIClient::V2
|
|
505
727
|
|
506
728
|
# query parameters
|
507
729
|
query_params = opts[:query_params] || {}
|
730
|
+
query_params[:'policy_id'] = opts[:'policy_id'] if !opts[:'policy_id'].nil?
|
508
731
|
|
509
732
|
# header parameters
|
510
733
|
header_params = opts[:header_params] || {}
|
@@ -541,7 +764,7 @@ module DatadogAPIClient::V2
|
|
541
764
|
return data, status_code, headers
|
542
765
|
end
|
543
766
|
|
544
|
-
# Get all
|
767
|
+
# Get all Workload Protection agent rules (US1-FED).
|
545
768
|
#
|
546
769
|
# @see #list_cloud_workload_security_agent_rules_with_http_info
|
547
770
|
def list_cloud_workload_security_agent_rules(opts = {})
|
@@ -549,9 +772,11 @@ module DatadogAPIClient::V2
|
|
549
772
|
data
|
550
773
|
end
|
551
774
|
|
552
|
-
# Get all
|
775
|
+
# Get all Workload Protection agent rules (US1-FED).
|
776
|
+
#
|
777
|
+
# Get the list of agent rules.
|
553
778
|
#
|
554
|
-
#
|
779
|
+
# **Note**: This endpoint should only be used for the Government (US1-FED) site.
|
555
780
|
#
|
556
781
|
# @param opts [Hash] the optional parameters
|
557
782
|
# @return [Array<(CloudWorkloadSecurityAgentRulesListResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRulesListResponse data, response status code and response headers
|
@@ -601,7 +826,69 @@ module DatadogAPIClient::V2
|
|
601
826
|
return data, status_code, headers
|
602
827
|
end
|
603
828
|
|
604
|
-
# Get all
|
829
|
+
# Get all Workload Protection policies.
|
830
|
+
#
|
831
|
+
# @see #list_csm_threats_agent_policies_with_http_info
|
832
|
+
def list_csm_threats_agent_policies(opts = {})
|
833
|
+
data, _status_code, _headers = list_csm_threats_agent_policies_with_http_info(opts)
|
834
|
+
data
|
835
|
+
end
|
836
|
+
|
837
|
+
# Get all Workload Protection policies.
|
838
|
+
#
|
839
|
+
# Get the list of Workload Protection policies.
|
840
|
+
#
|
841
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
842
|
+
#
|
843
|
+
# @param opts [Hash] the optional parameters
|
844
|
+
# @return [Array<(CloudWorkloadSecurityAgentPoliciesListResponse, Integer, Hash)>] CloudWorkloadSecurityAgentPoliciesListResponse data, response status code and response headers
|
845
|
+
def list_csm_threats_agent_policies_with_http_info(opts = {})
|
846
|
+
|
847
|
+
if @api_client.config.debugging
|
848
|
+
@api_client.config.logger.debug 'Calling API: CSMThreatsAPI.list_csm_threats_agent_policies ...'
|
849
|
+
end
|
850
|
+
# resource path
|
851
|
+
local_var_path = '/api/v2/remote_config/products/cws/policy'
|
852
|
+
|
853
|
+
# query parameters
|
854
|
+
query_params = opts[:query_params] || {}
|
855
|
+
|
856
|
+
# header parameters
|
857
|
+
header_params = opts[:header_params] || {}
|
858
|
+
# HTTP header 'Accept' (if needed)
|
859
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
860
|
+
|
861
|
+
# form parameters
|
862
|
+
form_params = opts[:form_params] || {}
|
863
|
+
|
864
|
+
# http body (model)
|
865
|
+
post_body = opts[:debug_body]
|
866
|
+
|
867
|
+
# return_type
|
868
|
+
return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPoliciesListResponse'
|
869
|
+
|
870
|
+
# auth_names
|
871
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
872
|
+
|
873
|
+
new_options = opts.merge(
|
874
|
+
:operation => :list_csm_threats_agent_policies,
|
875
|
+
:header_params => header_params,
|
876
|
+
:query_params => query_params,
|
877
|
+
:form_params => form_params,
|
878
|
+
:body => post_body,
|
879
|
+
:auth_names => auth_names,
|
880
|
+
:return_type => return_type,
|
881
|
+
:api_version => "V2"
|
882
|
+
)
|
883
|
+
|
884
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
885
|
+
if @api_client.config.debugging
|
886
|
+
@api_client.config.logger.debug "API called: CSMThreatsAPI#list_csm_threats_agent_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
887
|
+
end
|
888
|
+
return data, status_code, headers
|
889
|
+
end
|
890
|
+
|
891
|
+
# Get all Workload Protection agent rules.
|
605
892
|
#
|
606
893
|
# @see #list_csm_threats_agent_rules_with_http_info
|
607
894
|
def list_csm_threats_agent_rules(opts = {})
|
@@ -609,11 +896,14 @@ module DatadogAPIClient::V2
|
|
609
896
|
data
|
610
897
|
end
|
611
898
|
|
612
|
-
# Get all
|
899
|
+
# Get all Workload Protection agent rules.
|
613
900
|
#
|
614
|
-
# Get the list of
|
901
|
+
# Get the list of Workload Protection agent rules.
|
902
|
+
#
|
903
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
615
904
|
#
|
616
905
|
# @param opts [Hash] the optional parameters
|
906
|
+
# @option opts [String] :policy_id The ID of the Agent policy
|
617
907
|
# @return [Array<(CloudWorkloadSecurityAgentRulesListResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRulesListResponse data, response status code and response headers
|
618
908
|
def list_csm_threats_agent_rules_with_http_info(opts = {})
|
619
909
|
|
@@ -625,6 +915,7 @@ module DatadogAPIClient::V2
|
|
625
915
|
|
626
916
|
# query parameters
|
627
917
|
query_params = opts[:query_params] || {}
|
918
|
+
query_params[:'policy_id'] = opts[:'policy_id'] if !opts[:'policy_id'].nil?
|
628
919
|
|
629
920
|
# header parameters
|
630
921
|
header_params = opts[:header_params] || {}
|
@@ -661,7 +952,7 @@ module DatadogAPIClient::V2
|
|
661
952
|
return data, status_code, headers
|
662
953
|
end
|
663
954
|
|
664
|
-
# Update a
|
955
|
+
# Update a Workload Protection agent rule (US1-FED).
|
665
956
|
#
|
666
957
|
# @see #update_cloud_workload_security_agent_rule_with_http_info
|
667
958
|
def update_cloud_workload_security_agent_rule(agent_rule_id, body, opts = {})
|
@@ -669,13 +960,15 @@ module DatadogAPIClient::V2
|
|
669
960
|
data
|
670
961
|
end
|
671
962
|
|
672
|
-
# Update a
|
963
|
+
# Update a Workload Protection agent rule (US1-FED).
|
964
|
+
#
|
965
|
+
# Update a specific agent rule.
|
966
|
+
# Returns the agent rule object when the request is successful.
|
673
967
|
#
|
674
|
-
#
|
675
|
-
# Returns the Agent rule object when the request is successful.
|
968
|
+
# **Note**: This endpoint should only be used for the Government (US1-FED) site.
|
676
969
|
#
|
677
|
-
# @param agent_rule_id [String] The ID of the Agent rule
|
678
|
-
# @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the
|
970
|
+
# @param agent_rule_id [String] The ID of the Agent rule
|
971
|
+
# @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the agent rule
|
679
972
|
# @param opts [Hash] the optional parameters
|
680
973
|
# @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
|
681
974
|
def update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body, opts = {})
|
@@ -734,7 +1027,82 @@ module DatadogAPIClient::V2
|
|
734
1027
|
return data, status_code, headers
|
735
1028
|
end
|
736
1029
|
|
737
|
-
# Update a
|
1030
|
+
# Update a Workload Protection policy.
|
1031
|
+
#
|
1032
|
+
# @see #update_csm_threats_agent_policy_with_http_info
|
1033
|
+
def update_csm_threats_agent_policy(policy_id, body, opts = {})
|
1034
|
+
data, _status_code, _headers = update_csm_threats_agent_policy_with_http_info(policy_id, body, opts)
|
1035
|
+
data
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Update a Workload Protection policy.
|
1039
|
+
#
|
1040
|
+
# Update a specific Workload Protection policy.
|
1041
|
+
# Returns the policy object when the request is successful.
|
1042
|
+
#
|
1043
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
1044
|
+
#
|
1045
|
+
# @param policy_id [String] The ID of the Agent policy
|
1046
|
+
# @param body [CloudWorkloadSecurityAgentPolicyUpdateRequest] New definition of the Agent policy
|
1047
|
+
# @param opts [Hash] the optional parameters
|
1048
|
+
# @return [Array<(CloudWorkloadSecurityAgentPolicyResponse, Integer, Hash)>] CloudWorkloadSecurityAgentPolicyResponse data, response status code and response headers
|
1049
|
+
def update_csm_threats_agent_policy_with_http_info(policy_id, body, opts = {})
|
1050
|
+
|
1051
|
+
if @api_client.config.debugging
|
1052
|
+
@api_client.config.logger.debug 'Calling API: CSMThreatsAPI.update_csm_threats_agent_policy ...'
|
1053
|
+
end
|
1054
|
+
# verify the required parameter 'policy_id' is set
|
1055
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
1056
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling CSMThreatsAPI.update_csm_threats_agent_policy"
|
1057
|
+
end
|
1058
|
+
# verify the required parameter 'body' is set
|
1059
|
+
if @api_client.config.client_side_validation && body.nil?
|
1060
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CSMThreatsAPI.update_csm_threats_agent_policy"
|
1061
|
+
end
|
1062
|
+
# resource path
|
1063
|
+
local_var_path = '/api/v2/remote_config/products/cws/policy/{policy_id}'.sub('{policy_id}', CGI.escape(policy_id.to_s).gsub('%2F', '/'))
|
1064
|
+
|
1065
|
+
# query parameters
|
1066
|
+
query_params = opts[:query_params] || {}
|
1067
|
+
|
1068
|
+
# header parameters
|
1069
|
+
header_params = opts[:header_params] || {}
|
1070
|
+
# HTTP header 'Accept' (if needed)
|
1071
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1072
|
+
# HTTP header 'Content-Type'
|
1073
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1074
|
+
|
1075
|
+
# form parameters
|
1076
|
+
form_params = opts[:form_params] || {}
|
1077
|
+
|
1078
|
+
# http body (model)
|
1079
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1080
|
+
|
1081
|
+
# return_type
|
1082
|
+
return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPolicyResponse'
|
1083
|
+
|
1084
|
+
# auth_names
|
1085
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
1086
|
+
|
1087
|
+
new_options = opts.merge(
|
1088
|
+
:operation => :update_csm_threats_agent_policy,
|
1089
|
+
:header_params => header_params,
|
1090
|
+
:query_params => query_params,
|
1091
|
+
:form_params => form_params,
|
1092
|
+
:body => post_body,
|
1093
|
+
:auth_names => auth_names,
|
1094
|
+
:return_type => return_type,
|
1095
|
+
:api_version => "V2"
|
1096
|
+
)
|
1097
|
+
|
1098
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
1099
|
+
if @api_client.config.debugging
|
1100
|
+
@api_client.config.logger.debug "API called: CSMThreatsAPI#update_csm_threats_agent_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1101
|
+
end
|
1102
|
+
return data, status_code, headers
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# Update a Workload Protection agent rule.
|
738
1106
|
#
|
739
1107
|
# @see #update_csm_threats_agent_rule_with_http_info
|
740
1108
|
def update_csm_threats_agent_rule(agent_rule_id, body, opts = {})
|
@@ -742,14 +1110,17 @@ module DatadogAPIClient::V2
|
|
742
1110
|
data
|
743
1111
|
end
|
744
1112
|
|
745
|
-
# Update a
|
1113
|
+
# Update a Workload Protection agent rule.
|
1114
|
+
#
|
1115
|
+
# Update a specific Workload Protection Agent rule.
|
1116
|
+
# Returns the agent rule object when the request is successful.
|
746
1117
|
#
|
747
|
-
#
|
748
|
-
# Returns the Agent rule object when the request is successful.
|
1118
|
+
# **Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
|
749
1119
|
#
|
750
|
-
# @param agent_rule_id [String] The ID of the Agent rule
|
751
|
-
# @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the
|
1120
|
+
# @param agent_rule_id [String] The ID of the Agent rule
|
1121
|
+
# @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the agent rule
|
752
1122
|
# @param opts [Hash] the optional parameters
|
1123
|
+
# @option opts [String] :policy_id The ID of the Agent policy
|
753
1124
|
# @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
|
754
1125
|
def update_csm_threats_agent_rule_with_http_info(agent_rule_id, body, opts = {})
|
755
1126
|
|
@@ -769,6 +1140,7 @@ module DatadogAPIClient::V2
|
|
769
1140
|
|
770
1141
|
# query parameters
|
771
1142
|
query_params = opts[:query_params] || {}
|
1143
|
+
query_params[:'policy_id'] = opts[:'policy_id'] if !opts[:'policy_id'].nil?
|
772
1144
|
|
773
1145
|
# header parameters
|
774
1146
|
header_params = opts[:header_params] || {}
|