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,203 @@
|
|
|
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 action to take when the ticket creation rule matches a finding.
|
|
21
|
+
class TicketCreationRuleActionResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The UUID of the default assignee for created tickets.
|
|
25
|
+
attr_accessor :assignee_id
|
|
26
|
+
|
|
27
|
+
# The reason the rule was automatically disabled by the system due to a ticketing integration error.
|
|
28
|
+
attr_accessor :auto_disabled_reason
|
|
29
|
+
|
|
30
|
+
# Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).
|
|
31
|
+
attr_accessor :fields
|
|
32
|
+
|
|
33
|
+
# The maximum number of tickets the rule may create per day. If exceeded, one final ticket will be created, explaining the limit was hit and link back to the responsible rule.
|
|
34
|
+
attr_reader :max_tickets_per_day
|
|
35
|
+
|
|
36
|
+
# The UUID of the case management project.
|
|
37
|
+
attr_reader :project_id
|
|
38
|
+
|
|
39
|
+
# The ticketing system to create tickets in.
|
|
40
|
+
attr_reader :target
|
|
41
|
+
|
|
42
|
+
attr_accessor :additional_properties
|
|
43
|
+
|
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
|
+
# @!visibility private
|
|
46
|
+
def self.attribute_map
|
|
47
|
+
{
|
|
48
|
+
:'assignee_id' => :'assignee_id',
|
|
49
|
+
:'auto_disabled_reason' => :'auto_disabled_reason',
|
|
50
|
+
:'fields' => :'fields',
|
|
51
|
+
:'max_tickets_per_day' => :'max_tickets_per_day',
|
|
52
|
+
:'project_id' => :'project_id',
|
|
53
|
+
:'target' => :'target'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
# @!visibility private
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'assignee_id' => :'UUID',
|
|
62
|
+
:'auto_disabled_reason' => :'String',
|
|
63
|
+
:'fields' => :'Object',
|
|
64
|
+
:'max_tickets_per_day' => :'Integer',
|
|
65
|
+
:'project_id' => :'UUID',
|
|
66
|
+
:'target' => :'TicketCreationTarget'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TicketCreationRuleActionResponse` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
self.additional_properties = {}
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
82
|
+
self.additional_properties[k.to_sym] = v
|
|
83
|
+
else
|
|
84
|
+
h[k.to_sym] = v
|
|
85
|
+
end
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'assignee_id')
|
|
89
|
+
self.assignee_id = attributes[:'assignee_id']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'auto_disabled_reason')
|
|
93
|
+
self.auto_disabled_reason = attributes[:'auto_disabled_reason']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'fields')
|
|
97
|
+
self.fields = attributes[:'fields']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'max_tickets_per_day')
|
|
101
|
+
self.max_tickets_per_day = attributes[:'max_tickets_per_day']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'project_id')
|
|
105
|
+
self.project_id = attributes[:'project_id']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'target')
|
|
109
|
+
self.target = attributes[:'target']
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Check to see if the all the properties in the model are valid
|
|
114
|
+
# @return true if the model is valid
|
|
115
|
+
# @!visibility private
|
|
116
|
+
def valid?
|
|
117
|
+
return false if @max_tickets_per_day.nil?
|
|
118
|
+
return false if @max_tickets_per_day > 500
|
|
119
|
+
return false if @max_tickets_per_day < 1
|
|
120
|
+
return false if @project_id.nil?
|
|
121
|
+
return false if @target.nil?
|
|
122
|
+
true
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param max_tickets_per_day [Object] Object to be assigned
|
|
127
|
+
# @!visibility private
|
|
128
|
+
def max_tickets_per_day=(max_tickets_per_day)
|
|
129
|
+
if max_tickets_per_day.nil?
|
|
130
|
+
fail ArgumentError, 'invalid value for "max_tickets_per_day", max_tickets_per_day cannot be nil.'
|
|
131
|
+
end
|
|
132
|
+
if max_tickets_per_day > 500
|
|
133
|
+
fail ArgumentError, 'invalid value for "max_tickets_per_day", must be smaller than or equal to 500.'
|
|
134
|
+
end
|
|
135
|
+
if max_tickets_per_day < 1
|
|
136
|
+
fail ArgumentError, 'invalid value for "max_tickets_per_day", must be greater than or equal to 1.'
|
|
137
|
+
end
|
|
138
|
+
@max_tickets_per_day = max_tickets_per_day
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param project_id [Object] Object to be assigned
|
|
143
|
+
# @!visibility private
|
|
144
|
+
def project_id=(project_id)
|
|
145
|
+
if project_id.nil?
|
|
146
|
+
fail ArgumentError, 'invalid value for "project_id", project_id cannot be nil.'
|
|
147
|
+
end
|
|
148
|
+
@project_id = project_id
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Custom attribute writer method with validation
|
|
152
|
+
# @param target [Object] Object to be assigned
|
|
153
|
+
# @!visibility private
|
|
154
|
+
def target=(target)
|
|
155
|
+
if target.nil?
|
|
156
|
+
fail ArgumentError, 'invalid value for "target", target cannot be nil.'
|
|
157
|
+
end
|
|
158
|
+
@target = target
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
162
|
+
# @return [Hash] Returns the object in the form of hash
|
|
163
|
+
# @!visibility private
|
|
164
|
+
def to_hash
|
|
165
|
+
hash = {}
|
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
167
|
+
value = self.send(attr)
|
|
168
|
+
if value.nil?
|
|
169
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
170
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
hash[param] = _to_hash(value)
|
|
174
|
+
end
|
|
175
|
+
self.additional_properties.each_pair do |attr, value|
|
|
176
|
+
hash[attr] = value
|
|
177
|
+
end
|
|
178
|
+
hash
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Checks equality by comparing each attribute.
|
|
182
|
+
# @param o [Object] Object to be compared
|
|
183
|
+
# @!visibility private
|
|
184
|
+
def ==(o)
|
|
185
|
+
return true if self.equal?(o)
|
|
186
|
+
self.class == o.class &&
|
|
187
|
+
assignee_id == o.assignee_id &&
|
|
188
|
+
auto_disabled_reason == o.auto_disabled_reason &&
|
|
189
|
+
fields == o.fields &&
|
|
190
|
+
max_tickets_per_day == o.max_tickets_per_day &&
|
|
191
|
+
project_id == o.project_id &&
|
|
192
|
+
target == o.target &&
|
|
193
|
+
additional_properties == o.additional_properties
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Calculates hash code according to all attributes.
|
|
197
|
+
# @return [Integer] Hash code
|
|
198
|
+
# @!visibility private
|
|
199
|
+
def hash
|
|
200
|
+
[assignee_id, auto_disabled_reason, fields, max_tickets_per_day, project_id, target, additional_properties].hash
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
end
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
# Attributes for creating or updating a ticket creation rule.
|
|
21
|
+
class TicketCreationRuleAttributesCreate
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The action to take when the ticket creation rule matches a finding.
|
|
25
|
+
attr_reader :action
|
|
26
|
+
|
|
27
|
+
# Whether the ticket creation rule is enabled.
|
|
28
|
+
attr_accessor :enabled
|
|
29
|
+
|
|
30
|
+
# The name of the ticket creation rule.
|
|
31
|
+
attr_reader :name
|
|
32
|
+
|
|
33
|
+
# Defines the scope of findings to which the automation rule applies.
|
|
34
|
+
attr_reader :rule
|
|
35
|
+
|
|
36
|
+
attr_accessor :additional_properties
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
# @!visibility private
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'action' => :'action',
|
|
43
|
+
:'enabled' => :'enabled',
|
|
44
|
+
:'name' => :'name',
|
|
45
|
+
:'rule' => :'rule'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'action' => :'TicketCreationRuleAction',
|
|
54
|
+
:'enabled' => :'Boolean',
|
|
55
|
+
:'name' => :'String',
|
|
56
|
+
:'rule' => :'AutomationRuleScope'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
62
|
+
# @!visibility private
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TicketCreationRuleAttributesCreate` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
self.additional_properties = {}
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
self.additional_properties[k.to_sym] = v
|
|
73
|
+
else
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
end
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'action')
|
|
79
|
+
self.action = attributes[:'action']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'enabled')
|
|
83
|
+
self.enabled = attributes[:'enabled']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'name')
|
|
87
|
+
self.name = attributes[:'name']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'rule')
|
|
91
|
+
self.rule = attributes[:'rule']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Check to see if the all the properties in the model are valid
|
|
96
|
+
# @return true if the model is valid
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def valid?
|
|
99
|
+
return false if @action.nil?
|
|
100
|
+
return false if @name.nil?
|
|
101
|
+
return false if @name.to_s.length > 255
|
|
102
|
+
return false if @name.to_s.length < 1
|
|
103
|
+
return false if @rule.nil?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Custom attribute writer method with validation
|
|
108
|
+
# @param action [Object] Object to be assigned
|
|
109
|
+
# @!visibility private
|
|
110
|
+
def action=(action)
|
|
111
|
+
if action.nil?
|
|
112
|
+
fail ArgumentError, 'invalid value for "action", action cannot be nil.'
|
|
113
|
+
end
|
|
114
|
+
@action = action
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Custom attribute writer method with validation
|
|
118
|
+
# @param name [Object] Object to be assigned
|
|
119
|
+
# @!visibility private
|
|
120
|
+
def name=(name)
|
|
121
|
+
if name.nil?
|
|
122
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
123
|
+
end
|
|
124
|
+
if name.to_s.length > 255
|
|
125
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
|
126
|
+
end
|
|
127
|
+
if name.to_s.length < 1
|
|
128
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
129
|
+
end
|
|
130
|
+
@name = name
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Custom attribute writer method with validation
|
|
134
|
+
# @param rule [Object] Object to be assigned
|
|
135
|
+
# @!visibility private
|
|
136
|
+
def rule=(rule)
|
|
137
|
+
if rule.nil?
|
|
138
|
+
fail ArgumentError, 'invalid value for "rule", rule cannot be nil.'
|
|
139
|
+
end
|
|
140
|
+
@rule = rule
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
144
|
+
# @return [Hash] Returns the object in the form of hash
|
|
145
|
+
# @!visibility private
|
|
146
|
+
def to_hash
|
|
147
|
+
hash = {}
|
|
148
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
149
|
+
value = self.send(attr)
|
|
150
|
+
if value.nil?
|
|
151
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
152
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
hash[param] = _to_hash(value)
|
|
156
|
+
end
|
|
157
|
+
self.additional_properties.each_pair do |attr, value|
|
|
158
|
+
hash[attr] = value
|
|
159
|
+
end
|
|
160
|
+
hash
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Checks equality by comparing each attribute.
|
|
164
|
+
# @param o [Object] Object to be compared
|
|
165
|
+
# @!visibility private
|
|
166
|
+
def ==(o)
|
|
167
|
+
return true if self.equal?(o)
|
|
168
|
+
self.class == o.class &&
|
|
169
|
+
action == o.action &&
|
|
170
|
+
enabled == o.enabled &&
|
|
171
|
+
name == o.name &&
|
|
172
|
+
rule == o.rule &&
|
|
173
|
+
additional_properties == o.additional_properties
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Calculates hash code according to all attributes.
|
|
177
|
+
# @return [Integer] Hash code
|
|
178
|
+
# @!visibility private
|
|
179
|
+
def hash
|
|
180
|
+
[action, enabled, name, rule, additional_properties].hash
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
end
|
|
@@ -0,0 +1,278 @@
|
|
|
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
|
+
# Attributes of a ticket creation rule returned by the API.
|
|
21
|
+
class TicketCreationRuleAttributesResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The action to take when the ticket creation rule matches a finding.
|
|
25
|
+
attr_reader :action
|
|
26
|
+
|
|
27
|
+
# The Unix timestamp in milliseconds when the rule was created.
|
|
28
|
+
attr_reader :created_at
|
|
29
|
+
|
|
30
|
+
# The user or Datadog system who created the rule.
|
|
31
|
+
attr_reader :created_by
|
|
32
|
+
|
|
33
|
+
# Whether the ticket creation rule is enabled.
|
|
34
|
+
attr_reader :enabled
|
|
35
|
+
|
|
36
|
+
# The Unix timestamp in milliseconds when the rule was last modified.
|
|
37
|
+
attr_reader :modified_at
|
|
38
|
+
|
|
39
|
+
# The user or Datadog system who last modified the rule.
|
|
40
|
+
attr_reader :modified_by
|
|
41
|
+
|
|
42
|
+
# The name of the ticket creation rule.
|
|
43
|
+
attr_reader :name
|
|
44
|
+
|
|
45
|
+
# Defines the scope of findings to which the automation rule applies.
|
|
46
|
+
attr_reader :rule
|
|
47
|
+
|
|
48
|
+
attr_accessor :additional_properties
|
|
49
|
+
|
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
|
+
# @!visibility private
|
|
52
|
+
def self.attribute_map
|
|
53
|
+
{
|
|
54
|
+
:'action' => :'action',
|
|
55
|
+
:'created_at' => :'created_at',
|
|
56
|
+
:'created_by' => :'created_by',
|
|
57
|
+
:'enabled' => :'enabled',
|
|
58
|
+
:'modified_at' => :'modified_at',
|
|
59
|
+
:'modified_by' => :'modified_by',
|
|
60
|
+
:'name' => :'name',
|
|
61
|
+
:'rule' => :'rule'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Attribute type mapping.
|
|
66
|
+
# @!visibility private
|
|
67
|
+
def self.openapi_types
|
|
68
|
+
{
|
|
69
|
+
:'action' => :'TicketCreationRuleActionResponse',
|
|
70
|
+
:'created_at' => :'Integer',
|
|
71
|
+
:'created_by' => :'AutomationRuleCreatedBy',
|
|
72
|
+
:'enabled' => :'Boolean',
|
|
73
|
+
:'modified_at' => :'Integer',
|
|
74
|
+
:'modified_by' => :'AutomationRuleModifiedBy',
|
|
75
|
+
:'name' => :'String',
|
|
76
|
+
:'rule' => :'AutomationRuleScope'
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Initializes the object
|
|
81
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
82
|
+
# @!visibility private
|
|
83
|
+
def initialize(attributes = {})
|
|
84
|
+
if (!attributes.is_a?(Hash))
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TicketCreationRuleAttributesResponse` initialize method"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
self.additional_properties = {}
|
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
92
|
+
self.additional_properties[k.to_sym] = v
|
|
93
|
+
else
|
|
94
|
+
h[k.to_sym] = v
|
|
95
|
+
end
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'action')
|
|
99
|
+
self.action = attributes[:'action']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'created_at')
|
|
103
|
+
self.created_at = attributes[:'created_at']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'created_by')
|
|
107
|
+
self.created_by = attributes[:'created_by']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'enabled')
|
|
111
|
+
self.enabled = attributes[:'enabled']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'modified_at')
|
|
115
|
+
self.modified_at = attributes[:'modified_at']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'modified_by')
|
|
119
|
+
self.modified_by = attributes[:'modified_by']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'name')
|
|
123
|
+
self.name = attributes[:'name']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'rule')
|
|
127
|
+
self.rule = attributes[:'rule']
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Check to see if the all the properties in the model are valid
|
|
132
|
+
# @return true if the model is valid
|
|
133
|
+
# @!visibility private
|
|
134
|
+
def valid?
|
|
135
|
+
return false if @action.nil?
|
|
136
|
+
return false if @created_at.nil?
|
|
137
|
+
return false if @created_by.nil?
|
|
138
|
+
return false if @enabled.nil?
|
|
139
|
+
return false if @modified_at.nil?
|
|
140
|
+
return false if @modified_by.nil?
|
|
141
|
+
return false if @name.nil?
|
|
142
|
+
return false if @name.to_s.length > 255
|
|
143
|
+
return false if @name.to_s.length < 1
|
|
144
|
+
return false if @rule.nil?
|
|
145
|
+
true
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Custom attribute writer method with validation
|
|
149
|
+
# @param action [Object] Object to be assigned
|
|
150
|
+
# @!visibility private
|
|
151
|
+
def action=(action)
|
|
152
|
+
if action.nil?
|
|
153
|
+
fail ArgumentError, 'invalid value for "action", action cannot be nil.'
|
|
154
|
+
end
|
|
155
|
+
@action = action
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Custom attribute writer method with validation
|
|
159
|
+
# @param created_at [Object] Object to be assigned
|
|
160
|
+
# @!visibility private
|
|
161
|
+
def created_at=(created_at)
|
|
162
|
+
if created_at.nil?
|
|
163
|
+
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
|
|
164
|
+
end
|
|
165
|
+
@created_at = created_at
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param created_by [Object] Object to be assigned
|
|
170
|
+
# @!visibility private
|
|
171
|
+
def created_by=(created_by)
|
|
172
|
+
if created_by.nil?
|
|
173
|
+
fail ArgumentError, 'invalid value for "created_by", created_by cannot be nil.'
|
|
174
|
+
end
|
|
175
|
+
@created_by = created_by
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Custom attribute writer method with validation
|
|
179
|
+
# @param enabled [Object] Object to be assigned
|
|
180
|
+
# @!visibility private
|
|
181
|
+
def enabled=(enabled)
|
|
182
|
+
if enabled.nil?
|
|
183
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
184
|
+
end
|
|
185
|
+
@enabled = enabled
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Custom attribute writer method with validation
|
|
189
|
+
# @param modified_at [Object] Object to be assigned
|
|
190
|
+
# @!visibility private
|
|
191
|
+
def modified_at=(modified_at)
|
|
192
|
+
if modified_at.nil?
|
|
193
|
+
fail ArgumentError, 'invalid value for "modified_at", modified_at cannot be nil.'
|
|
194
|
+
end
|
|
195
|
+
@modified_at = modified_at
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Custom attribute writer method with validation
|
|
199
|
+
# @param modified_by [Object] Object to be assigned
|
|
200
|
+
# @!visibility private
|
|
201
|
+
def modified_by=(modified_by)
|
|
202
|
+
if modified_by.nil?
|
|
203
|
+
fail ArgumentError, 'invalid value for "modified_by", modified_by cannot be nil.'
|
|
204
|
+
end
|
|
205
|
+
@modified_by = modified_by
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Custom attribute writer method with validation
|
|
209
|
+
# @param name [Object] Object to be assigned
|
|
210
|
+
# @!visibility private
|
|
211
|
+
def name=(name)
|
|
212
|
+
if name.nil?
|
|
213
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
214
|
+
end
|
|
215
|
+
if name.to_s.length > 255
|
|
216
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
|
217
|
+
end
|
|
218
|
+
if name.to_s.length < 1
|
|
219
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
220
|
+
end
|
|
221
|
+
@name = name
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Custom attribute writer method with validation
|
|
225
|
+
# @param rule [Object] Object to be assigned
|
|
226
|
+
# @!visibility private
|
|
227
|
+
def rule=(rule)
|
|
228
|
+
if rule.nil?
|
|
229
|
+
fail ArgumentError, 'invalid value for "rule", rule cannot be nil.'
|
|
230
|
+
end
|
|
231
|
+
@rule = rule
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
|
236
|
+
# @!visibility private
|
|
237
|
+
def to_hash
|
|
238
|
+
hash = {}
|
|
239
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
240
|
+
value = self.send(attr)
|
|
241
|
+
if value.nil?
|
|
242
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
243
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
hash[param] = _to_hash(value)
|
|
247
|
+
end
|
|
248
|
+
self.additional_properties.each_pair do |attr, value|
|
|
249
|
+
hash[attr] = value
|
|
250
|
+
end
|
|
251
|
+
hash
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Checks equality by comparing each attribute.
|
|
255
|
+
# @param o [Object] Object to be compared
|
|
256
|
+
# @!visibility private
|
|
257
|
+
def ==(o)
|
|
258
|
+
return true if self.equal?(o)
|
|
259
|
+
self.class == o.class &&
|
|
260
|
+
action == o.action &&
|
|
261
|
+
created_at == o.created_at &&
|
|
262
|
+
created_by == o.created_by &&
|
|
263
|
+
enabled == o.enabled &&
|
|
264
|
+
modified_at == o.modified_at &&
|
|
265
|
+
modified_by == o.modified_by &&
|
|
266
|
+
name == o.name &&
|
|
267
|
+
rule == o.rule &&
|
|
268
|
+
additional_properties == o.additional_properties
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Calculates hash code according to all attributes.
|
|
272
|
+
# @return [Integer] Hash code
|
|
273
|
+
# @!visibility private
|
|
274
|
+
def hash
|
|
275
|
+
[action, created_at, created_by, enabled, modified_at, modified_by, name, rule, additional_properties].hash
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|