datadog_api_client 2.55.0 → 2.56.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/.generator/schemas/v1/openapi.yaml +186 -0
- data/.generator/schemas/v2/openapi.yaml +6914 -290
- data/CHANGELOG.md +35 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_104735144.rb +32 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_1185292896.rb +42 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_2402034476.rb +29 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb +38 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +1 -1
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_4007074677.rb +23 -0
- data/examples/v2/cloud-cost-management/DeleteCustomForecast.rb +8 -0
- data/examples/v2/cloud-cost-management/UpsertBudget.rb +14 -0
- data/examples/v2/cloud-cost-management/UpsertCustomForecast.rb +30 -0
- data/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb +1 -0
- data/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb +1 -0
- data/examples/v2/feature-flags/CreateVariantForFeatureFlag.rb +11 -0
- data/examples/v2/feature-flags/DeleteVariantFromFeatureFlag.rb +5 -0
- data/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb +10 -0
- data/examples/v2/governance-controls/GetGovernanceControl.rb +8 -0
- data/examples/v2/governance-controls/ListGovernanceControls.rb +8 -0
- data/examples/v2/governance-controls/UpdateGovernanceControl.rb +22 -0
- data/examples/v2/governance-insights/ListGovernanceInsights.rb +8 -0
- data/examples/v2/metrics/CreateTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/CreateTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/DeleteTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/GetTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/GetTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/ListTagIndexingRules.rb +3 -0
- data/examples/v2/metrics/ListTagIndexingRulesForMetric.rb +3 -0
- data/examples/v2/metrics/ReorderTagIndexingRules.rb +3 -0
- data/examples/v2/metrics/UpdateTagIndexingRule.rb +3 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_1238441879.rb +61 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_253109967.rb +83 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb +56 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb +66 -0
- data/examples/v2/report-schedules/CreateReportSchedule.rb +1 -1
- data/examples/v2/report-schedules/DeleteReportSchedule.rb +5 -0
- data/examples/v2/report-schedules/GetReportSchedule.rb +5 -0
- data/examples/v2/report-schedules/GetReportSchedulesForResource.rb +5 -0
- data/examples/v2/report-schedules/ListReportSchedules.rb +5 -0
- data/examples/v2/report-schedules/PatchReportSchedule.rb +1 -1
- data/examples/v2/report-schedules/ToggleReportSchedule.rb +14 -0
- data/examples/v2/rum-remote-config/GetRumSdkConfig.rb +8 -0
- data/examples/v2/rum-remote-config/UpdateRumSdkConfig.rb +94 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationDueDateRule.rb +33 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationMuteRule.rb +27 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationTicketCreationRule.rb +29 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule.rb +11 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule.rb +11 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationDueDateRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationMuteRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationTicketCreationRule.rb +11 -0
- data/examples/v2/security-monitoring/ImportSecurityVulnerabilities.rb +77 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationDueDateRules.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationMuteRules.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationTicketCreationRules.rb +8 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationDueDateRules.rb +20 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationMuteRules.rb +20 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationTicketCreationRules.rb +20 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationDueDateRule.rb +36 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationMuteRule.rb +30 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationTicketCreationRule.rb +32 -0
- data/examples/v2/status-pages/EditDegradationUpdate.rb +16 -0
- data/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb +5 -0
- data/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb +7 -2
- data/examples/v2/workflow-automation/CreateWorkflow.rb +1 -1
- data/examples/v2/workflow-automation/UpdateWorkflow.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +39 -1
- data/lib/datadog_api_client/inflector.rb +190 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_arithmetic_sub_processor.rb +186 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_attribute_remapper.rb +211 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_category_sub_processor.rb +178 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_processor.rb +228 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_processor_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_string_builder_sub_processor.rb +186 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_sub_processor.rb +67 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +154 -1
- data/lib/datadog_api_client/v2/api/compliance_api.rb +5 -0
- data/lib/datadog_api_client/v2/api/feature_flags_api.rb +229 -0
- data/lib/datadog_api_client/v2/api/governance_controls_api.rb +246 -0
- data/lib/datadog_api_client/v2/api/governance_insights_api.rb +101 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +67 -1
- data/lib/datadog_api_client/v2/api/report_schedules_api.rb +362 -0
- data/lib/datadog_api_client/v2/api/rum_remote_config_api.rb +176 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1544 -119
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +159 -0
- data/lib/datadog_api_client/v2/api/test_optimization_api.rb +3 -1
- data/lib/datadog_api_client/v2/models/automation_rule_actor_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/automation_rule_created_by.rb +165 -0
- data/lib/datadog_api_client/v2/models/automation_rule_modified_by.rb +165 -0
- data/lib/datadog_api_client/v2/models/automation_rule_scope.rb +150 -0
- data/lib/datadog_api_client/v2/models/branch_coverage_summary_request_attributes.rb +27 -10
- data/lib/datadog_api_client/v2/models/budget_attributes.rb +41 -1
- data/lib/datadog_api_client/v2/models/budget_attributes_costs.rb +146 -0
- data/lib/datadog_api_client/v2/models/budget_attributes_costs_unit.rb +155 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_attributes_entries_items.rb +11 -1
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_attributes_entries_items_costs.rb +157 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_finished_job.rb +427 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_in_progress_job.rb +406 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb +36 -399
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job_in_progress_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/commit_coverage_summary_request_attributes.rb +27 -10
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data_attributes_updates_items.rb +1 -12
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes.rb +1 -12
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +31 -1
- data/lib/datadog_api_client/v2/models/custom_forecast_entry.rb +167 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_entry_tag_filter.rb +144 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response_data_attributes.rb +230 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_bom.rb +221 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_component.rb +196 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_component_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata.rb +144 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata_component.rb +143 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata_tools.rb +125 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_tool_component.rb +133 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability.rb +237 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_advisory.rb +105 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_affects.rb +123 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_analysis.rb +107 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_rating.rb +125 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_reference.rb +115 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_reference_source.rb +105 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_updates_items.rb +21 -1
- data/lib/datadog_api_client/v2/models/degradation_update.rb +117 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships.rb +145 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_degradation.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_degradation_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_status_page_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/due_date_from.rb +27 -0
- data/lib/datadog_api_client/v2/models/due_date_per_severity_item.rb +152 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_action.rb +167 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/due_date_severity.rb +32 -0
- data/lib/datadog_api_client/v2/models/governance_best_practice_definition.rb +379 -0
- data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +739 -0
- data/lib/datadog_api_client/v2/models/governance_control_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_control_mitigation_definition.rb +309 -0
- data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +272 -0
- data/lib/datadog_api_client/v2/models/governance_control_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_control_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_control_supported_value.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_controls_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/governance_insight_attributes.rb +448 -0
- data/lib/datadog_api_client/v2/models/governance_insight_audit_compute.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_insight_audit_query.rb +188 -0
- data/lib/datadog_api_client/v2/models/governance_insight_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_insight_event_compute.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insight_event_query.rb +156 -0
- data/lib/datadog_api_client/v2/models/governance_insight_metric_query.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_insight_percentage_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insight_query_config.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_insight_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_insight_usage_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insights_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/metric.rb +12 -2
- data/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +11 -1
- data/lib/datadog_api_client/v2/models/metric_volumes_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/metric_volumes_relationship_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/mute_reason.rb +31 -0
- data/lib/datadog_api_client/v2/models/mute_rule_action.rb +154 -0
- data/lib/datadog_api_client/v2/models/mute_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/mute_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/mute_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/mute_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/mute_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/mute_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/mute_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/mute_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination.rb +318 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_auth.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_auth_strategy.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch.rb +148 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch_encoding.rb +135 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch_encoding_codec.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression.rb +65 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression_algorithm.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression_object.rb +149 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_format.rb +33 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source.rb +248 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_auth_strategy.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_enabled.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_enabled_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_with_client_cert.rb +174 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_with_client_cert_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/report_schedule_included_resource.rb +2 -1
- data/lib/datadog_api_client/v2/models/report_schedule_included_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/report_schedule_index_template_variable.rb +150 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_resource_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_resource_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response.rb +157 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_attributes.rb +335 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_data.rb +186 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_links.rb +157 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_pagination.rb +183 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_pagination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_relationships.rb +133 -0
- data/lib/datadog_api_client/v2/models/report_schedule_resource.rb +165 -0
- data/lib/datadog_api_client/v2/models/report_schedule_resource_attributes.rb +154 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_sdk_config_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option.rb +204 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_pair.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_serialized_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_strategy.rb +29 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_match_option.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_match_option_serialized_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_meta.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_rum_attributes.rb +336 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_rum_update_attributes.rb +315 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_serialized_regex.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_serialized_regex_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_tracing_url_config.rb +146 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_tracing_url_propagator_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_links.rb +164 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_meta.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_page_info.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_finding_type.rb +36 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_terraform_resource_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/status_page_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/test_optimization_service_settings_attributes.rb +54 -4
- data/lib/datadog_api_client/v2/models/test_optimization_update_service_settings_request_attributes.rb +60 -9
- data/lib/datadog_api_client/v2/models/test_optimization_update_service_settings_request_data.rb +1 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_action.rb +193 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_action_response.rb +203 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_target.rb +27 -0
- data/lib/datadog_api_client/v2/models/update_variant_request.rb +115 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +237 -1
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The attributes of a governance control.
|
|
21
|
+
class GovernanceControlAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The number of active detections for the control.
|
|
25
|
+
attr_reader :active_detections_count
|
|
26
|
+
|
|
27
|
+
# The value driver the control is grouped under, such as `security` or `cost`.
|
|
28
|
+
attr_reader :category
|
|
29
|
+
|
|
30
|
+
# The time the control configuration was created.
|
|
31
|
+
attr_reader :created_at
|
|
32
|
+
|
|
33
|
+
# The UUID of the user who created the control configuration.
|
|
34
|
+
attr_reader :created_by
|
|
35
|
+
|
|
36
|
+
# A human-readable description of what the control detects.
|
|
37
|
+
attr_reader :description
|
|
38
|
+
|
|
39
|
+
# How often detections are evaluated for the control.
|
|
40
|
+
attr_reader :detection_frequency
|
|
41
|
+
|
|
42
|
+
# A free-form map of parameter names to their configured values.
|
|
43
|
+
attr_reader :detection_parameters
|
|
44
|
+
|
|
45
|
+
# The detection type that uniquely identifies the control.
|
|
46
|
+
attr_reader :detection_type
|
|
47
|
+
|
|
48
|
+
# The feature flags that gate the control.
|
|
49
|
+
attr_reader :feature_flags
|
|
50
|
+
|
|
51
|
+
# The insight slugs associated with the control.
|
|
52
|
+
attr_reader :insights
|
|
53
|
+
|
|
54
|
+
# The time of the most recent detection for the control. `null` when there are no detections.
|
|
55
|
+
attr_accessor :last_detection_at
|
|
56
|
+
|
|
57
|
+
# The number of mitigated detections for the control.
|
|
58
|
+
attr_reader :mitigated_detections_count
|
|
59
|
+
|
|
60
|
+
# A free-form map of parameter names to their configured values.
|
|
61
|
+
attr_reader :mitigation_parameters
|
|
62
|
+
|
|
63
|
+
# The configured mitigation type for the control. Empty when not configured.
|
|
64
|
+
attr_reader :mitigation_type
|
|
65
|
+
|
|
66
|
+
# The mitigations available for a control.
|
|
67
|
+
attr_reader :mitigations
|
|
68
|
+
|
|
69
|
+
# Human-readable name of the control.
|
|
70
|
+
attr_reader :name
|
|
71
|
+
|
|
72
|
+
# Guidance on the next steps to remediate detections for the control.
|
|
73
|
+
attr_reader :next_steps
|
|
74
|
+
|
|
75
|
+
# The configured notification frequency for the control. Empty when not configured.
|
|
76
|
+
attr_reader :notification_frequency
|
|
77
|
+
|
|
78
|
+
# A free-form map of parameter names to their configured values.
|
|
79
|
+
attr_reader :notification_parameters
|
|
80
|
+
|
|
81
|
+
# The configured notification type for the control. Empty when not configured.
|
|
82
|
+
attr_reader :notification_type
|
|
83
|
+
|
|
84
|
+
# The priority of the control, such as `High`.
|
|
85
|
+
attr_reader :priority
|
|
86
|
+
|
|
87
|
+
# The product the control belongs to.
|
|
88
|
+
attr_reader :product
|
|
89
|
+
|
|
90
|
+
# The release status of the control, such as `prod` or `beta`.
|
|
91
|
+
attr_reader :release_status
|
|
92
|
+
|
|
93
|
+
# The type of resource the control evaluates.
|
|
94
|
+
attr_reader :resource_type
|
|
95
|
+
|
|
96
|
+
# The human-readable name of the resource type.
|
|
97
|
+
attr_reader :resource_type_display_name
|
|
98
|
+
|
|
99
|
+
# An array of parameter definitions.
|
|
100
|
+
attr_reader :supported_detection_parameters
|
|
101
|
+
|
|
102
|
+
# An array of parameter definitions.
|
|
103
|
+
attr_reader :supported_notification_parameters
|
|
104
|
+
|
|
105
|
+
# A short description of the remediation task for the control.
|
|
106
|
+
attr_reader :task
|
|
107
|
+
|
|
108
|
+
# The control type, such as `Proactive` or `Detection`.
|
|
109
|
+
attr_reader :type
|
|
110
|
+
|
|
111
|
+
# The usage concern the control addresses, such as `Security` or `Cost Optimization`.
|
|
112
|
+
attr_reader :usage_concern
|
|
113
|
+
|
|
114
|
+
attr_accessor :additional_properties
|
|
115
|
+
|
|
116
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def self.attribute_map
|
|
119
|
+
{
|
|
120
|
+
:'active_detections_count' => :'active_detections_count',
|
|
121
|
+
:'category' => :'category',
|
|
122
|
+
:'created_at' => :'created_at',
|
|
123
|
+
:'created_by' => :'created_by',
|
|
124
|
+
:'description' => :'description',
|
|
125
|
+
:'detection_frequency' => :'detection_frequency',
|
|
126
|
+
:'detection_parameters' => :'detection_parameters',
|
|
127
|
+
:'detection_type' => :'detection_type',
|
|
128
|
+
:'feature_flags' => :'feature_flags',
|
|
129
|
+
:'insights' => :'insights',
|
|
130
|
+
:'last_detection_at' => :'last_detection_at',
|
|
131
|
+
:'mitigated_detections_count' => :'mitigated_detections_count',
|
|
132
|
+
:'mitigation_parameters' => :'mitigation_parameters',
|
|
133
|
+
:'mitigation_type' => :'mitigation_type',
|
|
134
|
+
:'mitigations' => :'mitigations',
|
|
135
|
+
:'name' => :'name',
|
|
136
|
+
:'next_steps' => :'next_steps',
|
|
137
|
+
:'notification_frequency' => :'notification_frequency',
|
|
138
|
+
:'notification_parameters' => :'notification_parameters',
|
|
139
|
+
:'notification_type' => :'notification_type',
|
|
140
|
+
:'priority' => :'priority',
|
|
141
|
+
:'product' => :'product',
|
|
142
|
+
:'release_status' => :'release_status',
|
|
143
|
+
:'resource_type' => :'resource_type',
|
|
144
|
+
:'resource_type_display_name' => :'resource_type_display_name',
|
|
145
|
+
:'supported_detection_parameters' => :'supported_detection_parameters',
|
|
146
|
+
:'supported_notification_parameters' => :'supported_notification_parameters',
|
|
147
|
+
:'task' => :'task',
|
|
148
|
+
:'type' => :'type',
|
|
149
|
+
:'usage_concern' => :'usage_concern'
|
|
150
|
+
}
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Attribute type mapping.
|
|
154
|
+
# @!visibility private
|
|
155
|
+
def self.openapi_types
|
|
156
|
+
{
|
|
157
|
+
:'active_detections_count' => :'Integer',
|
|
158
|
+
:'category' => :'String',
|
|
159
|
+
:'created_at' => :'Time',
|
|
160
|
+
:'created_by' => :'String',
|
|
161
|
+
:'description' => :'String',
|
|
162
|
+
:'detection_frequency' => :'String',
|
|
163
|
+
:'detection_parameters' => :'Hash<String, Object>',
|
|
164
|
+
:'detection_type' => :'String',
|
|
165
|
+
:'feature_flags' => :'Array<String>',
|
|
166
|
+
:'insights' => :'Array<String>',
|
|
167
|
+
:'last_detection_at' => :'Time',
|
|
168
|
+
:'mitigated_detections_count' => :'Integer',
|
|
169
|
+
:'mitigation_parameters' => :'Hash<String, Object>',
|
|
170
|
+
:'mitigation_type' => :'String',
|
|
171
|
+
:'mitigations' => :'Array<GovernanceControlMitigationDefinition>',
|
|
172
|
+
:'name' => :'String',
|
|
173
|
+
:'next_steps' => :'String',
|
|
174
|
+
:'notification_frequency' => :'String',
|
|
175
|
+
:'notification_parameters' => :'Hash<String, Object>',
|
|
176
|
+
:'notification_type' => :'String',
|
|
177
|
+
:'priority' => :'String',
|
|
178
|
+
:'product' => :'String',
|
|
179
|
+
:'release_status' => :'String',
|
|
180
|
+
:'resource_type' => :'String',
|
|
181
|
+
:'resource_type_display_name' => :'String',
|
|
182
|
+
:'supported_detection_parameters' => :'Array<GovernanceControlParameterDefinition>',
|
|
183
|
+
:'supported_notification_parameters' => :'Array<GovernanceControlParameterDefinition>',
|
|
184
|
+
:'task' => :'String',
|
|
185
|
+
:'type' => :'String',
|
|
186
|
+
:'usage_concern' => :'String'
|
|
187
|
+
}
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# List of attributes with nullable: true
|
|
191
|
+
# @!visibility private
|
|
192
|
+
def self.openapi_nullable
|
|
193
|
+
Set.new([
|
|
194
|
+
:'last_detection_at',
|
|
195
|
+
])
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Initializes the object
|
|
199
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
200
|
+
# @!visibility private
|
|
201
|
+
def initialize(attributes = {})
|
|
202
|
+
if (!attributes.is_a?(Hash))
|
|
203
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GovernanceControlAttributes` initialize method"
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
self.additional_properties = {}
|
|
207
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
208
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
209
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
210
|
+
self.additional_properties[k.to_sym] = v
|
|
211
|
+
else
|
|
212
|
+
h[k.to_sym] = v
|
|
213
|
+
end
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'active_detections_count')
|
|
217
|
+
self.active_detections_count = attributes[:'active_detections_count']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'category')
|
|
221
|
+
self.category = attributes[:'category']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'created_at')
|
|
225
|
+
self.created_at = attributes[:'created_at']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'created_by')
|
|
229
|
+
self.created_by = attributes[:'created_by']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'description')
|
|
233
|
+
self.description = attributes[:'description']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'detection_frequency')
|
|
237
|
+
self.detection_frequency = attributes[:'detection_frequency']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'detection_parameters')
|
|
241
|
+
self.detection_parameters = attributes[:'detection_parameters']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'detection_type')
|
|
245
|
+
self.detection_type = attributes[:'detection_type']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'feature_flags')
|
|
249
|
+
if (value = attributes[:'feature_flags']).is_a?(Array)
|
|
250
|
+
self.feature_flags = value
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'insights')
|
|
255
|
+
if (value = attributes[:'insights']).is_a?(Array)
|
|
256
|
+
self.insights = value
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.key?(:'last_detection_at')
|
|
261
|
+
self.last_detection_at = attributes[:'last_detection_at']
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if attributes.key?(:'mitigated_detections_count')
|
|
265
|
+
self.mitigated_detections_count = attributes[:'mitigated_detections_count']
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'mitigation_parameters')
|
|
269
|
+
self.mitigation_parameters = attributes[:'mitigation_parameters']
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'mitigation_type')
|
|
273
|
+
self.mitigation_type = attributes[:'mitigation_type']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'mitigations')
|
|
277
|
+
if (value = attributes[:'mitigations']).is_a?(Array)
|
|
278
|
+
self.mitigations = value
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if attributes.key?(:'name')
|
|
283
|
+
self.name = attributes[:'name']
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if attributes.key?(:'next_steps')
|
|
287
|
+
self.next_steps = attributes[:'next_steps']
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if attributes.key?(:'notification_frequency')
|
|
291
|
+
self.notification_frequency = attributes[:'notification_frequency']
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if attributes.key?(:'notification_parameters')
|
|
295
|
+
self.notification_parameters = attributes[:'notification_parameters']
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'notification_type')
|
|
299
|
+
self.notification_type = attributes[:'notification_type']
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.key?(:'priority')
|
|
303
|
+
self.priority = attributes[:'priority']
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'product')
|
|
307
|
+
self.product = attributes[:'product']
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'release_status')
|
|
311
|
+
self.release_status = attributes[:'release_status']
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if attributes.key?(:'resource_type')
|
|
315
|
+
self.resource_type = attributes[:'resource_type']
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if attributes.key?(:'resource_type_display_name')
|
|
319
|
+
self.resource_type_display_name = attributes[:'resource_type_display_name']
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if attributes.key?(:'supported_detection_parameters')
|
|
323
|
+
if (value = attributes[:'supported_detection_parameters']).is_a?(Array)
|
|
324
|
+
self.supported_detection_parameters = value
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if attributes.key?(:'supported_notification_parameters')
|
|
329
|
+
if (value = attributes[:'supported_notification_parameters']).is_a?(Array)
|
|
330
|
+
self.supported_notification_parameters = value
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
if attributes.key?(:'task')
|
|
335
|
+
self.task = attributes[:'task']
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
if attributes.key?(:'type')
|
|
339
|
+
self.type = attributes[:'type']
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
if attributes.key?(:'usage_concern')
|
|
343
|
+
self.usage_concern = attributes[:'usage_concern']
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Check to see if the all the properties in the model are valid
|
|
348
|
+
# @return true if the model is valid
|
|
349
|
+
# @!visibility private
|
|
350
|
+
def valid?
|
|
351
|
+
return false if @active_detections_count.nil?
|
|
352
|
+
return false if @category.nil?
|
|
353
|
+
return false if @created_at.nil?
|
|
354
|
+
return false if @created_by.nil?
|
|
355
|
+
return false if @description.nil?
|
|
356
|
+
return false if @detection_frequency.nil?
|
|
357
|
+
return false if @detection_parameters.nil?
|
|
358
|
+
return false if @detection_type.nil?
|
|
359
|
+
return false if @feature_flags.nil?
|
|
360
|
+
return false if @insights.nil?
|
|
361
|
+
return false if @mitigated_detections_count.nil?
|
|
362
|
+
return false if @mitigation_parameters.nil?
|
|
363
|
+
return false if @mitigation_type.nil?
|
|
364
|
+
return false if @mitigations.nil?
|
|
365
|
+
return false if @name.nil?
|
|
366
|
+
return false if @next_steps.nil?
|
|
367
|
+
return false if @notification_frequency.nil?
|
|
368
|
+
return false if @notification_parameters.nil?
|
|
369
|
+
return false if @notification_type.nil?
|
|
370
|
+
return false if @priority.nil?
|
|
371
|
+
return false if @product.nil?
|
|
372
|
+
return false if @release_status.nil?
|
|
373
|
+
return false if @resource_type.nil?
|
|
374
|
+
return false if @resource_type_display_name.nil?
|
|
375
|
+
return false if @supported_detection_parameters.nil?
|
|
376
|
+
return false if @supported_notification_parameters.nil?
|
|
377
|
+
return false if @task.nil?
|
|
378
|
+
return false if @type.nil?
|
|
379
|
+
return false if @usage_concern.nil?
|
|
380
|
+
true
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Custom attribute writer method with validation
|
|
384
|
+
# @param active_detections_count [Object] Object to be assigned
|
|
385
|
+
# @!visibility private
|
|
386
|
+
def active_detections_count=(active_detections_count)
|
|
387
|
+
if active_detections_count.nil?
|
|
388
|
+
fail ArgumentError, 'invalid value for "active_detections_count", active_detections_count cannot be nil.'
|
|
389
|
+
end
|
|
390
|
+
@active_detections_count = active_detections_count
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Custom attribute writer method with validation
|
|
394
|
+
# @param category [Object] Object to be assigned
|
|
395
|
+
# @!visibility private
|
|
396
|
+
def category=(category)
|
|
397
|
+
if category.nil?
|
|
398
|
+
fail ArgumentError, 'invalid value for "category", category cannot be nil.'
|
|
399
|
+
end
|
|
400
|
+
@category = category
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# Custom attribute writer method with validation
|
|
404
|
+
# @param created_at [Object] Object to be assigned
|
|
405
|
+
# @!visibility private
|
|
406
|
+
def created_at=(created_at)
|
|
407
|
+
if created_at.nil?
|
|
408
|
+
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
|
|
409
|
+
end
|
|
410
|
+
@created_at = created_at
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Custom attribute writer method with validation
|
|
414
|
+
# @param created_by [Object] Object to be assigned
|
|
415
|
+
# @!visibility private
|
|
416
|
+
def created_by=(created_by)
|
|
417
|
+
if created_by.nil?
|
|
418
|
+
fail ArgumentError, 'invalid value for "created_by", created_by cannot be nil.'
|
|
419
|
+
end
|
|
420
|
+
@created_by = created_by
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Custom attribute writer method with validation
|
|
424
|
+
# @param description [Object] Object to be assigned
|
|
425
|
+
# @!visibility private
|
|
426
|
+
def description=(description)
|
|
427
|
+
if description.nil?
|
|
428
|
+
fail ArgumentError, 'invalid value for "description", description cannot be nil.'
|
|
429
|
+
end
|
|
430
|
+
@description = description
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Custom attribute writer method with validation
|
|
434
|
+
# @param detection_frequency [Object] Object to be assigned
|
|
435
|
+
# @!visibility private
|
|
436
|
+
def detection_frequency=(detection_frequency)
|
|
437
|
+
if detection_frequency.nil?
|
|
438
|
+
fail ArgumentError, 'invalid value for "detection_frequency", detection_frequency cannot be nil.'
|
|
439
|
+
end
|
|
440
|
+
@detection_frequency = detection_frequency
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# Custom attribute writer method with validation
|
|
444
|
+
# @param detection_parameters [Object] Object to be assigned
|
|
445
|
+
# @!visibility private
|
|
446
|
+
def detection_parameters=(detection_parameters)
|
|
447
|
+
if detection_parameters.nil?
|
|
448
|
+
fail ArgumentError, 'invalid value for "detection_parameters", detection_parameters cannot be nil.'
|
|
449
|
+
end
|
|
450
|
+
@detection_parameters = detection_parameters
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# Custom attribute writer method with validation
|
|
454
|
+
# @param detection_type [Object] Object to be assigned
|
|
455
|
+
# @!visibility private
|
|
456
|
+
def detection_type=(detection_type)
|
|
457
|
+
if detection_type.nil?
|
|
458
|
+
fail ArgumentError, 'invalid value for "detection_type", detection_type cannot be nil.'
|
|
459
|
+
end
|
|
460
|
+
@detection_type = detection_type
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Custom attribute writer method with validation
|
|
464
|
+
# @param feature_flags [Object] Object to be assigned
|
|
465
|
+
# @!visibility private
|
|
466
|
+
def feature_flags=(feature_flags)
|
|
467
|
+
if feature_flags.nil?
|
|
468
|
+
fail ArgumentError, 'invalid value for "feature_flags", feature_flags cannot be nil.'
|
|
469
|
+
end
|
|
470
|
+
@feature_flags = feature_flags
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Custom attribute writer method with validation
|
|
474
|
+
# @param insights [Object] Object to be assigned
|
|
475
|
+
# @!visibility private
|
|
476
|
+
def insights=(insights)
|
|
477
|
+
if insights.nil?
|
|
478
|
+
fail ArgumentError, 'invalid value for "insights", insights cannot be nil.'
|
|
479
|
+
end
|
|
480
|
+
@insights = insights
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Custom attribute writer method with validation
|
|
484
|
+
# @param mitigated_detections_count [Object] Object to be assigned
|
|
485
|
+
# @!visibility private
|
|
486
|
+
def mitigated_detections_count=(mitigated_detections_count)
|
|
487
|
+
if mitigated_detections_count.nil?
|
|
488
|
+
fail ArgumentError, 'invalid value for "mitigated_detections_count", mitigated_detections_count cannot be nil.'
|
|
489
|
+
end
|
|
490
|
+
@mitigated_detections_count = mitigated_detections_count
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Custom attribute writer method with validation
|
|
494
|
+
# @param mitigation_parameters [Object] Object to be assigned
|
|
495
|
+
# @!visibility private
|
|
496
|
+
def mitigation_parameters=(mitigation_parameters)
|
|
497
|
+
if mitigation_parameters.nil?
|
|
498
|
+
fail ArgumentError, 'invalid value for "mitigation_parameters", mitigation_parameters cannot be nil.'
|
|
499
|
+
end
|
|
500
|
+
@mitigation_parameters = mitigation_parameters
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
# Custom attribute writer method with validation
|
|
504
|
+
# @param mitigation_type [Object] Object to be assigned
|
|
505
|
+
# @!visibility private
|
|
506
|
+
def mitigation_type=(mitigation_type)
|
|
507
|
+
if mitigation_type.nil?
|
|
508
|
+
fail ArgumentError, 'invalid value for "mitigation_type", mitigation_type cannot be nil.'
|
|
509
|
+
end
|
|
510
|
+
@mitigation_type = mitigation_type
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# Custom attribute writer method with validation
|
|
514
|
+
# @param mitigations [Object] Object to be assigned
|
|
515
|
+
# @!visibility private
|
|
516
|
+
def mitigations=(mitigations)
|
|
517
|
+
if mitigations.nil?
|
|
518
|
+
fail ArgumentError, 'invalid value for "mitigations", mitigations cannot be nil.'
|
|
519
|
+
end
|
|
520
|
+
@mitigations = mitigations
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# Custom attribute writer method with validation
|
|
524
|
+
# @param name [Object] Object to be assigned
|
|
525
|
+
# @!visibility private
|
|
526
|
+
def name=(name)
|
|
527
|
+
if name.nil?
|
|
528
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
529
|
+
end
|
|
530
|
+
@name = name
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Custom attribute writer method with validation
|
|
534
|
+
# @param next_steps [Object] Object to be assigned
|
|
535
|
+
# @!visibility private
|
|
536
|
+
def next_steps=(next_steps)
|
|
537
|
+
if next_steps.nil?
|
|
538
|
+
fail ArgumentError, 'invalid value for "next_steps", next_steps cannot be nil.'
|
|
539
|
+
end
|
|
540
|
+
@next_steps = next_steps
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Custom attribute writer method with validation
|
|
544
|
+
# @param notification_frequency [Object] Object to be assigned
|
|
545
|
+
# @!visibility private
|
|
546
|
+
def notification_frequency=(notification_frequency)
|
|
547
|
+
if notification_frequency.nil?
|
|
548
|
+
fail ArgumentError, 'invalid value for "notification_frequency", notification_frequency cannot be nil.'
|
|
549
|
+
end
|
|
550
|
+
@notification_frequency = notification_frequency
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# Custom attribute writer method with validation
|
|
554
|
+
# @param notification_parameters [Object] Object to be assigned
|
|
555
|
+
# @!visibility private
|
|
556
|
+
def notification_parameters=(notification_parameters)
|
|
557
|
+
if notification_parameters.nil?
|
|
558
|
+
fail ArgumentError, 'invalid value for "notification_parameters", notification_parameters cannot be nil.'
|
|
559
|
+
end
|
|
560
|
+
@notification_parameters = notification_parameters
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
# Custom attribute writer method with validation
|
|
564
|
+
# @param notification_type [Object] Object to be assigned
|
|
565
|
+
# @!visibility private
|
|
566
|
+
def notification_type=(notification_type)
|
|
567
|
+
if notification_type.nil?
|
|
568
|
+
fail ArgumentError, 'invalid value for "notification_type", notification_type cannot be nil.'
|
|
569
|
+
end
|
|
570
|
+
@notification_type = notification_type
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
# Custom attribute writer method with validation
|
|
574
|
+
# @param priority [Object] Object to be assigned
|
|
575
|
+
# @!visibility private
|
|
576
|
+
def priority=(priority)
|
|
577
|
+
if priority.nil?
|
|
578
|
+
fail ArgumentError, 'invalid value for "priority", priority cannot be nil.'
|
|
579
|
+
end
|
|
580
|
+
@priority = priority
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# Custom attribute writer method with validation
|
|
584
|
+
# @param product [Object] Object to be assigned
|
|
585
|
+
# @!visibility private
|
|
586
|
+
def product=(product)
|
|
587
|
+
if product.nil?
|
|
588
|
+
fail ArgumentError, 'invalid value for "product", product cannot be nil.'
|
|
589
|
+
end
|
|
590
|
+
@product = product
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
# Custom attribute writer method with validation
|
|
594
|
+
# @param release_status [Object] Object to be assigned
|
|
595
|
+
# @!visibility private
|
|
596
|
+
def release_status=(release_status)
|
|
597
|
+
if release_status.nil?
|
|
598
|
+
fail ArgumentError, 'invalid value for "release_status", release_status cannot be nil.'
|
|
599
|
+
end
|
|
600
|
+
@release_status = release_status
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# Custom attribute writer method with validation
|
|
604
|
+
# @param resource_type [Object] Object to be assigned
|
|
605
|
+
# @!visibility private
|
|
606
|
+
def resource_type=(resource_type)
|
|
607
|
+
if resource_type.nil?
|
|
608
|
+
fail ArgumentError, 'invalid value for "resource_type", resource_type cannot be nil.'
|
|
609
|
+
end
|
|
610
|
+
@resource_type = resource_type
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
# Custom attribute writer method with validation
|
|
614
|
+
# @param resource_type_display_name [Object] Object to be assigned
|
|
615
|
+
# @!visibility private
|
|
616
|
+
def resource_type_display_name=(resource_type_display_name)
|
|
617
|
+
if resource_type_display_name.nil?
|
|
618
|
+
fail ArgumentError, 'invalid value for "resource_type_display_name", resource_type_display_name cannot be nil.'
|
|
619
|
+
end
|
|
620
|
+
@resource_type_display_name = resource_type_display_name
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
# Custom attribute writer method with validation
|
|
624
|
+
# @param supported_detection_parameters [Object] Object to be assigned
|
|
625
|
+
# @!visibility private
|
|
626
|
+
def supported_detection_parameters=(supported_detection_parameters)
|
|
627
|
+
if supported_detection_parameters.nil?
|
|
628
|
+
fail ArgumentError, 'invalid value for "supported_detection_parameters", supported_detection_parameters cannot be nil.'
|
|
629
|
+
end
|
|
630
|
+
@supported_detection_parameters = supported_detection_parameters
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
# Custom attribute writer method with validation
|
|
634
|
+
# @param supported_notification_parameters [Object] Object to be assigned
|
|
635
|
+
# @!visibility private
|
|
636
|
+
def supported_notification_parameters=(supported_notification_parameters)
|
|
637
|
+
if supported_notification_parameters.nil?
|
|
638
|
+
fail ArgumentError, 'invalid value for "supported_notification_parameters", supported_notification_parameters cannot be nil.'
|
|
639
|
+
end
|
|
640
|
+
@supported_notification_parameters = supported_notification_parameters
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
# Custom attribute writer method with validation
|
|
644
|
+
# @param task [Object] Object to be assigned
|
|
645
|
+
# @!visibility private
|
|
646
|
+
def task=(task)
|
|
647
|
+
if task.nil?
|
|
648
|
+
fail ArgumentError, 'invalid value for "task", task cannot be nil.'
|
|
649
|
+
end
|
|
650
|
+
@task = task
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# Custom attribute writer method with validation
|
|
654
|
+
# @param type [Object] Object to be assigned
|
|
655
|
+
# @!visibility private
|
|
656
|
+
def type=(type)
|
|
657
|
+
if type.nil?
|
|
658
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
659
|
+
end
|
|
660
|
+
@type = type
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
# Custom attribute writer method with validation
|
|
664
|
+
# @param usage_concern [Object] Object to be assigned
|
|
665
|
+
# @!visibility private
|
|
666
|
+
def usage_concern=(usage_concern)
|
|
667
|
+
if usage_concern.nil?
|
|
668
|
+
fail ArgumentError, 'invalid value for "usage_concern", usage_concern cannot be nil.'
|
|
669
|
+
end
|
|
670
|
+
@usage_concern = usage_concern
|
|
671
|
+
end
|
|
672
|
+
|
|
673
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
674
|
+
# @return [Hash] Returns the object in the form of hash
|
|
675
|
+
# @!visibility private
|
|
676
|
+
def to_hash
|
|
677
|
+
hash = {}
|
|
678
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
679
|
+
value = self.send(attr)
|
|
680
|
+
if value.nil?
|
|
681
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
682
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
hash[param] = _to_hash(value)
|
|
686
|
+
end
|
|
687
|
+
self.additional_properties.each_pair do |attr, value|
|
|
688
|
+
hash[attr] = value
|
|
689
|
+
end
|
|
690
|
+
hash
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# Checks equality by comparing each attribute.
|
|
694
|
+
# @param o [Object] Object to be compared
|
|
695
|
+
# @!visibility private
|
|
696
|
+
def ==(o)
|
|
697
|
+
return true if self.equal?(o)
|
|
698
|
+
self.class == o.class &&
|
|
699
|
+
active_detections_count == o.active_detections_count &&
|
|
700
|
+
category == o.category &&
|
|
701
|
+
created_at == o.created_at &&
|
|
702
|
+
created_by == o.created_by &&
|
|
703
|
+
description == o.description &&
|
|
704
|
+
detection_frequency == o.detection_frequency &&
|
|
705
|
+
detection_parameters == o.detection_parameters &&
|
|
706
|
+
detection_type == o.detection_type &&
|
|
707
|
+
feature_flags == o.feature_flags &&
|
|
708
|
+
insights == o.insights &&
|
|
709
|
+
last_detection_at == o.last_detection_at &&
|
|
710
|
+
mitigated_detections_count == o.mitigated_detections_count &&
|
|
711
|
+
mitigation_parameters == o.mitigation_parameters &&
|
|
712
|
+
mitigation_type == o.mitigation_type &&
|
|
713
|
+
mitigations == o.mitigations &&
|
|
714
|
+
name == o.name &&
|
|
715
|
+
next_steps == o.next_steps &&
|
|
716
|
+
notification_frequency == o.notification_frequency &&
|
|
717
|
+
notification_parameters == o.notification_parameters &&
|
|
718
|
+
notification_type == o.notification_type &&
|
|
719
|
+
priority == o.priority &&
|
|
720
|
+
product == o.product &&
|
|
721
|
+
release_status == o.release_status &&
|
|
722
|
+
resource_type == o.resource_type &&
|
|
723
|
+
resource_type_display_name == o.resource_type_display_name &&
|
|
724
|
+
supported_detection_parameters == o.supported_detection_parameters &&
|
|
725
|
+
supported_notification_parameters == o.supported_notification_parameters &&
|
|
726
|
+
task == o.task &&
|
|
727
|
+
type == o.type &&
|
|
728
|
+
usage_concern == o.usage_concern &&
|
|
729
|
+
additional_properties == o.additional_properties
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
# Calculates hash code according to all attributes.
|
|
733
|
+
# @return [Integer] Hash code
|
|
734
|
+
# @!visibility private
|
|
735
|
+
def hash
|
|
736
|
+
[active_detections_count, category, created_at, created_by, description, detection_frequency, detection_parameters, detection_type, feature_flags, insights, last_detection_at, mitigated_detections_count, mitigation_parameters, mitigation_type, mitigations, name, next_steps, notification_frequency, notification_parameters, notification_type, priority, product, release_status, resource_type, resource_type_display_name, supported_detection_parameters, supported_notification_parameters, task, type, usage_concern, additional_properties].hash
|
|
737
|
+
end
|
|
738
|
+
end
|
|
739
|
+
end
|