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,105 @@
|
|
|
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
|
+
# An external advisory reference for a vulnerability.
|
|
21
|
+
class CycloneDXVulnerabilityAdvisory
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The URL of the advisory.
|
|
25
|
+
attr_accessor :url
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'url' => :'url'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'url' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CycloneDXVulnerabilityAdvisory` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'url')
|
|
64
|
+
self.url = attributes[:'url']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
url == o.url &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[url, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
# A reference to a component affected by a vulnerability.
|
|
21
|
+
class CycloneDXVulnerabilityAffects
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The `bom-ref` of the affected component.
|
|
25
|
+
attr_reader :ref
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'ref' => :'ref'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'ref' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CycloneDXVulnerabilityAffects` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'ref')
|
|
64
|
+
self.ref = attributes[:'ref']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Check to see if the all the properties in the model are valid
|
|
69
|
+
# @return true if the model is valid
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def valid?
|
|
72
|
+
return false if @ref.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param ref [Object] Object to be assigned
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def ref=(ref)
|
|
80
|
+
if ref.nil?
|
|
81
|
+
fail ArgumentError, 'invalid value for "ref", ref cannot be nil.'
|
|
82
|
+
end
|
|
83
|
+
@ref = ref
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
ref == o.ref &&
|
|
113
|
+
additional_properties == o.additional_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Calculates hash code according to all attributes.
|
|
117
|
+
# @return [Integer] Hash code
|
|
118
|
+
# @!visibility private
|
|
119
|
+
def hash
|
|
120
|
+
[ref, additional_properties].hash
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
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 exploitability analysis for the vulnerability. When `state` is set to `resolved`
|
|
21
|
+
# or `resolved_with_pedigree`, the vulnerability is closed in Datadog.
|
|
22
|
+
# Other state values are accepted but have no effect on the vulnerability status.
|
|
23
|
+
class CycloneDXVulnerabilityAnalysis
|
|
24
|
+
include BaseGenericModel
|
|
25
|
+
|
|
26
|
+
# The vulnerability analysis state.
|
|
27
|
+
attr_accessor :state
|
|
28
|
+
|
|
29
|
+
attr_accessor :additional_properties
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
# @!visibility private
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'state' => :'state'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'state' => :'String'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Initializes the object
|
|
48
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
49
|
+
# @!visibility private
|
|
50
|
+
def initialize(attributes = {})
|
|
51
|
+
if (!attributes.is_a?(Hash))
|
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CycloneDXVulnerabilityAnalysis` initialize method"
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
self.additional_properties = {}
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
self.additional_properties[k.to_sym] = v
|
|
60
|
+
else
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
end
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if attributes.key?(:'state')
|
|
66
|
+
self.state = attributes[:'state']
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
71
|
+
# @return [Hash] Returns the object in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def to_hash
|
|
74
|
+
hash = {}
|
|
75
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
76
|
+
value = self.send(attr)
|
|
77
|
+
if value.nil?
|
|
78
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
79
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
hash[param] = _to_hash(value)
|
|
83
|
+
end
|
|
84
|
+
self.additional_properties.each_pair do |attr, value|
|
|
85
|
+
hash[attr] = value
|
|
86
|
+
end
|
|
87
|
+
hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param o [Object] Object to be compared
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def ==(o)
|
|
94
|
+
return true if self.equal?(o)
|
|
95
|
+
self.class == o.class &&
|
|
96
|
+
state == o.state &&
|
|
97
|
+
additional_properties == o.additional_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def hash
|
|
104
|
+
[state, additional_properties].hash
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
# A severity rating for a vulnerability.
|
|
21
|
+
class CycloneDXVulnerabilityRating
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The CVSS score.
|
|
25
|
+
attr_accessor :score
|
|
26
|
+
|
|
27
|
+
# The severity level.
|
|
28
|
+
attr_accessor :severity
|
|
29
|
+
|
|
30
|
+
# The CVSS vector string.
|
|
31
|
+
attr_accessor :vector
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'score' => :'score',
|
|
40
|
+
:'severity' => :'severity',
|
|
41
|
+
:'vector' => :'vector'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'score' => :'Float',
|
|
50
|
+
:'severity' => :'String',
|
|
51
|
+
:'vector' => :'String'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CycloneDXVulnerabilityRating` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'score')
|
|
74
|
+
self.score = attributes[:'score']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'severity')
|
|
78
|
+
self.severity = attributes[:'severity']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'vector')
|
|
82
|
+
self.vector = attributes[:'vector']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
score == o.score &&
|
|
113
|
+
severity == o.severity &&
|
|
114
|
+
vector == o.vector &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[score, severity, vector, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
# An external reference identifier for a vulnerability.
|
|
21
|
+
class CycloneDXVulnerabilityReference
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The identifier of the external reference (for example, a GHSA ID).
|
|
25
|
+
attr_accessor :id
|
|
26
|
+
|
|
27
|
+
# The source of an external vulnerability reference.
|
|
28
|
+
attr_accessor :source
|
|
29
|
+
|
|
30
|
+
attr_accessor :additional_properties
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
# @!visibility private
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'id' => :'id',
|
|
37
|
+
:'source' => :'source'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'id' => :'String',
|
|
46
|
+
:'source' => :'CycloneDXVulnerabilityReferenceSource'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CycloneDXVulnerabilityReference` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
self.additional_properties = {}
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
self.additional_properties[k.to_sym] = v
|
|
63
|
+
else
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
end
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'id')
|
|
69
|
+
self.id = attributes[:'id']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'source')
|
|
73
|
+
self.source = attributes[:'source']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
78
|
+
# @return [Hash] Returns the object in the form of hash
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def to_hash
|
|
81
|
+
hash = {}
|
|
82
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
83
|
+
value = self.send(attr)
|
|
84
|
+
if value.nil?
|
|
85
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
86
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
hash[param] = _to_hash(value)
|
|
90
|
+
end
|
|
91
|
+
self.additional_properties.each_pair do |attr, value|
|
|
92
|
+
hash[attr] = value
|
|
93
|
+
end
|
|
94
|
+
hash
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param o [Object] Object to be compared
|
|
99
|
+
# @!visibility private
|
|
100
|
+
def ==(o)
|
|
101
|
+
return true if self.equal?(o)
|
|
102
|
+
self.class == o.class &&
|
|
103
|
+
id == o.id &&
|
|
104
|
+
source == o.source &&
|
|
105
|
+
additional_properties == o.additional_properties
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Calculates hash code according to all attributes.
|
|
109
|
+
# @return [Integer] Hash code
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def hash
|
|
112
|
+
[id, source, additional_properties].hash
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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 source of an external vulnerability reference.
|
|
21
|
+
class CycloneDXVulnerabilityReferenceSource
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The URL of the reference source.
|
|
25
|
+
attr_accessor :url
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'url' => :'url'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'url' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CycloneDXVulnerabilityReferenceSource` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'url')
|
|
64
|
+
self.url = attributes[:'url']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
url == o.url &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[url, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|