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
|
@@ -18,409 +18,46 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# Details of a CI job.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# A map of key-value parameters or environment variables that were defined for the pipeline.
|
|
53
|
-
attr_accessor :parameters
|
|
54
|
-
|
|
55
|
-
# The parent pipeline name.
|
|
56
|
-
attr_reader :pipeline_name
|
|
57
|
-
|
|
58
|
-
# The parent pipeline UUID.
|
|
59
|
-
attr_reader :pipeline_unique_id
|
|
60
|
-
|
|
61
|
-
# The queue time in milliseconds, if applicable.
|
|
62
|
-
attr_reader :queue_time
|
|
63
|
-
|
|
64
|
-
# The parent stage UUID (if applicable).
|
|
65
|
-
attr_accessor :stage_id
|
|
66
|
-
|
|
67
|
-
# The parent stage name (if applicable).
|
|
68
|
-
attr_accessor :stage_name
|
|
69
|
-
|
|
70
|
-
# Time when the job run instance started (it should not include any queue time). The time format must be RFC3339.
|
|
71
|
-
attr_reader :start
|
|
72
|
-
|
|
73
|
-
# The final status of the job.
|
|
74
|
-
attr_reader :status
|
|
75
|
-
|
|
76
|
-
# A list of user-defined tags. The tags must follow the `key:value` pattern.
|
|
77
|
-
attr_accessor :tags
|
|
78
|
-
|
|
79
|
-
# The URL to look at the job in the CI provider UI.
|
|
80
|
-
attr_reader :url
|
|
81
|
-
|
|
82
|
-
attr_accessor :additional_properties
|
|
83
|
-
|
|
84
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
85
|
-
# @!visibility private
|
|
86
|
-
def self.attribute_map
|
|
87
|
-
{
|
|
88
|
-
:'dependencies' => :'dependencies',
|
|
89
|
-
:'_end' => :'end',
|
|
90
|
-
:'error' => :'error',
|
|
91
|
-
:'git' => :'git',
|
|
92
|
-
:'id' => :'id',
|
|
93
|
-
:'level' => :'level',
|
|
94
|
-
:'metrics' => :'metrics',
|
|
95
|
-
:'name' => :'name',
|
|
96
|
-
:'node' => :'node',
|
|
97
|
-
:'parameters' => :'parameters',
|
|
98
|
-
:'pipeline_name' => :'pipeline_name',
|
|
99
|
-
:'pipeline_unique_id' => :'pipeline_unique_id',
|
|
100
|
-
:'queue_time' => :'queue_time',
|
|
101
|
-
:'stage_id' => :'stage_id',
|
|
102
|
-
:'stage_name' => :'stage_name',
|
|
103
|
-
:'start' => :'start',
|
|
104
|
-
:'status' => :'status',
|
|
105
|
-
:'tags' => :'tags',
|
|
106
|
-
:'url' => :'url'
|
|
107
|
-
}
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# Attribute type mapping.
|
|
111
|
-
# @!visibility private
|
|
112
|
-
def self.openapi_types
|
|
113
|
-
{
|
|
114
|
-
:'dependencies' => :'Array<String>',
|
|
115
|
-
:'_end' => :'Time',
|
|
116
|
-
:'error' => :'CIAppCIError',
|
|
117
|
-
:'git' => :'CIAppGitInfo',
|
|
118
|
-
:'id' => :'String',
|
|
119
|
-
:'level' => :'CIAppPipelineEventJobLevel',
|
|
120
|
-
:'metrics' => :'Array<String>',
|
|
121
|
-
:'name' => :'String',
|
|
122
|
-
:'node' => :'CIAppHostInfo',
|
|
123
|
-
:'parameters' => :'Hash<String, String>',
|
|
124
|
-
:'pipeline_name' => :'String',
|
|
125
|
-
:'pipeline_unique_id' => :'String',
|
|
126
|
-
:'queue_time' => :'Integer',
|
|
127
|
-
:'stage_id' => :'String',
|
|
128
|
-
:'stage_name' => :'String',
|
|
129
|
-
:'start' => :'Time',
|
|
130
|
-
:'status' => :'CIAppPipelineEventJobStatus',
|
|
131
|
-
:'tags' => :'Array<String>',
|
|
132
|
-
:'url' => :'String'
|
|
133
|
-
}
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# List of attributes with nullable: true
|
|
137
|
-
# @!visibility private
|
|
138
|
-
def self.openapi_nullable
|
|
139
|
-
Set.new([
|
|
140
|
-
:'dependencies',
|
|
141
|
-
:'error',
|
|
142
|
-
:'git',
|
|
143
|
-
:'metrics',
|
|
144
|
-
:'node',
|
|
145
|
-
:'parameters',
|
|
146
|
-
:'queue_time',
|
|
147
|
-
:'stage_id',
|
|
148
|
-
:'stage_name',
|
|
149
|
-
:'tags',
|
|
150
|
-
])
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
# Initializes the object
|
|
154
|
-
# @param attributes [Hash] Model attributes in the form of hash
|
|
155
|
-
# @!visibility private
|
|
156
|
-
def initialize(attributes = {})
|
|
157
|
-
if (!attributes.is_a?(Hash))
|
|
158
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventJob` initialize method"
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
self.additional_properties = {}
|
|
162
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
163
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
164
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
|
165
|
-
self.additional_properties[k.to_sym] = v
|
|
166
|
-
else
|
|
167
|
-
h[k.to_sym] = v
|
|
168
|
-
end
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if attributes.key?(:'dependencies')
|
|
172
|
-
if (value = attributes[:'dependencies']).is_a?(Array)
|
|
173
|
-
self.dependencies = value
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
if attributes.key?(:'_end')
|
|
178
|
-
self._end = attributes[:'_end']
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if attributes.key?(:'error')
|
|
182
|
-
self.error = attributes[:'error']
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
if attributes.key?(:'git')
|
|
186
|
-
self.git = attributes[:'git']
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
if attributes.key?(:'id')
|
|
190
|
-
self.id = attributes[:'id']
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
if attributes.key?(:'level')
|
|
194
|
-
self.level = attributes[:'level']
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
if attributes.key?(:'metrics')
|
|
198
|
-
if (value = attributes[:'metrics']).is_a?(Array)
|
|
199
|
-
self.metrics = value
|
|
21
|
+
module CIAppPipelineEventJob
|
|
22
|
+
class << self
|
|
23
|
+
include BaseOneOfModel
|
|
24
|
+
include BaseOneOfModelNoDiscriminator
|
|
25
|
+
|
|
26
|
+
# List of class defined in oneOf (OpenAPI v3)
|
|
27
|
+
def openapi_one_of
|
|
28
|
+
[
|
|
29
|
+
:'CIAppPipelineEventFinishedJob',
|
|
30
|
+
:'CIAppPipelineEventInProgressJob'
|
|
31
|
+
]
|
|
32
|
+
end
|
|
33
|
+
# Builds the object
|
|
34
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
|
35
|
+
# @return [Object] Returns the model or the data itself
|
|
36
|
+
def build(data)
|
|
37
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
|
38
|
+
# Note:
|
|
39
|
+
# - We do not attempt to check whether exactly one item matches.
|
|
40
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
41
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
42
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
43
|
+
# - TODO: logging when debugging is set.
|
|
44
|
+
openapi_one_of.each do |klass|
|
|
45
|
+
begin
|
|
46
|
+
next if klass == :AnyType # "nullable: true"
|
|
47
|
+
typed_data = find_and_cast_into_type(klass, data)
|
|
48
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
|
49
|
+
return typed_data if typed_data
|
|
50
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
51
|
+
end
|
|
200
52
|
end
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
if attributes.key?(:'name')
|
|
204
|
-
self.name = attributes[:'name']
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
if attributes.key?(:'node')
|
|
208
|
-
self.node = attributes[:'node']
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
if attributes.key?(:'parameters')
|
|
212
|
-
self.parameters = attributes[:'parameters']
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
if attributes.key?(:'pipeline_name')
|
|
216
|
-
self.pipeline_name = attributes[:'pipeline_name']
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
if attributes.key?(:'pipeline_unique_id')
|
|
220
|
-
self.pipeline_unique_id = attributes[:'pipeline_unique_id']
|
|
221
|
-
end
|
|
222
53
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
self.stage_id = attributes[:'stage_id']
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
if attributes.key?(:'stage_name')
|
|
232
|
-
self.stage_name = attributes[:'stage_name']
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
if attributes.key?(:'start')
|
|
236
|
-
self.start = attributes[:'start']
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
if attributes.key?(:'status')
|
|
240
|
-
self.status = attributes[:'status']
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
if attributes.key?(:'tags')
|
|
244
|
-
if (value = attributes[:'tags']).is_a?(Array)
|
|
245
|
-
self.tags = value
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
if attributes.key?(:'url')
|
|
250
|
-
self.url = attributes[:'url']
|
|
251
|
-
end
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
# Check to see if the all the properties in the model are valid
|
|
255
|
-
# @return true if the model is valid
|
|
256
|
-
# @!visibility private
|
|
257
|
-
def valid?
|
|
258
|
-
return false if @_end.nil?
|
|
259
|
-
return false if @id.nil?
|
|
260
|
-
return false if @level.nil?
|
|
261
|
-
return false if @name.nil?
|
|
262
|
-
return false if @pipeline_name.nil?
|
|
263
|
-
return false if @pipeline_unique_id.nil?
|
|
264
|
-
return false if !@queue_time.nil? && @queue_time < 0
|
|
265
|
-
return false if @start.nil?
|
|
266
|
-
return false if @status.nil?
|
|
267
|
-
return false if @url.nil?
|
|
268
|
-
true
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
# Custom attribute writer method with validation
|
|
272
|
-
# @param _end [Object] Object to be assigned
|
|
273
|
-
# @!visibility private
|
|
274
|
-
def _end=(_end)
|
|
275
|
-
if _end.nil?
|
|
276
|
-
fail ArgumentError, 'invalid value for "_end", _end cannot be nil.'
|
|
277
|
-
end
|
|
278
|
-
@_end = _end
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
# Custom attribute writer method with validation
|
|
282
|
-
# @param id [Object] Object to be assigned
|
|
283
|
-
# @!visibility private
|
|
284
|
-
def id=(id)
|
|
285
|
-
if id.nil?
|
|
286
|
-
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
287
|
-
end
|
|
288
|
-
@id = id
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
# Custom attribute writer method with validation
|
|
292
|
-
# @param level [Object] Object to be assigned
|
|
293
|
-
# @!visibility private
|
|
294
|
-
def level=(level)
|
|
295
|
-
if level.nil?
|
|
296
|
-
fail ArgumentError, 'invalid value for "level", level cannot be nil.'
|
|
297
|
-
end
|
|
298
|
-
@level = level
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
# Custom attribute writer method with validation
|
|
302
|
-
# @param name [Object] Object to be assigned
|
|
303
|
-
# @!visibility private
|
|
304
|
-
def name=(name)
|
|
305
|
-
if name.nil?
|
|
306
|
-
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
307
|
-
end
|
|
308
|
-
@name = name
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
# Custom attribute writer method with validation
|
|
312
|
-
# @param pipeline_name [Object] Object to be assigned
|
|
313
|
-
# @!visibility private
|
|
314
|
-
def pipeline_name=(pipeline_name)
|
|
315
|
-
if pipeline_name.nil?
|
|
316
|
-
fail ArgumentError, 'invalid value for "pipeline_name", pipeline_name cannot be nil.'
|
|
317
|
-
end
|
|
318
|
-
@pipeline_name = pipeline_name
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
# Custom attribute writer method with validation
|
|
322
|
-
# @param pipeline_unique_id [Object] Object to be assigned
|
|
323
|
-
# @!visibility private
|
|
324
|
-
def pipeline_unique_id=(pipeline_unique_id)
|
|
325
|
-
if pipeline_unique_id.nil?
|
|
326
|
-
fail ArgumentError, 'invalid value for "pipeline_unique_id", pipeline_unique_id cannot be nil.'
|
|
327
|
-
end
|
|
328
|
-
@pipeline_unique_id = pipeline_unique_id
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
# Custom attribute writer method with validation
|
|
332
|
-
# @param queue_time [Object] Object to be assigned
|
|
333
|
-
# @!visibility private
|
|
334
|
-
def queue_time=(queue_time)
|
|
335
|
-
if !queue_time.nil? && queue_time < 0
|
|
336
|
-
fail ArgumentError, 'invalid value for "queue_time", must be greater than or equal to 0.'
|
|
337
|
-
end
|
|
338
|
-
@queue_time = queue_time
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
# Custom attribute writer method with validation
|
|
342
|
-
# @param start [Object] Object to be assigned
|
|
343
|
-
# @!visibility private
|
|
344
|
-
def start=(start)
|
|
345
|
-
if start.nil?
|
|
346
|
-
fail ArgumentError, 'invalid value for "start", start cannot be nil.'
|
|
347
|
-
end
|
|
348
|
-
@start = start
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
# Custom attribute writer method with validation
|
|
352
|
-
# @param status [Object] Object to be assigned
|
|
353
|
-
# @!visibility private
|
|
354
|
-
def status=(status)
|
|
355
|
-
if status.nil?
|
|
356
|
-
fail ArgumentError, 'invalid value for "status", status cannot be nil.'
|
|
357
|
-
end
|
|
358
|
-
@status = status
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
# Custom attribute writer method with validation
|
|
362
|
-
# @param url [Object] Object to be assigned
|
|
363
|
-
# @!visibility private
|
|
364
|
-
def url=(url)
|
|
365
|
-
if url.nil?
|
|
366
|
-
fail ArgumentError, 'invalid value for "url", url cannot be nil.'
|
|
367
|
-
end
|
|
368
|
-
@url = url
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
# Returns the object in the form of hash, with additionalProperties support.
|
|
372
|
-
# @return [Hash] Returns the object in the form of hash
|
|
373
|
-
# @!visibility private
|
|
374
|
-
def to_hash
|
|
375
|
-
hash = {}
|
|
376
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
377
|
-
value = self.send(attr)
|
|
378
|
-
if value.nil?
|
|
379
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
380
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
54
|
+
if openapi_one_of.include?(:AnyType)
|
|
55
|
+
data
|
|
56
|
+
else
|
|
57
|
+
self._unparsed = true
|
|
58
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
|
381
59
|
end
|
|
382
|
-
|
|
383
|
-
hash[param] = _to_hash(value)
|
|
384
|
-
end
|
|
385
|
-
self.additional_properties.each_pair do |attr, value|
|
|
386
|
-
hash[attr] = value
|
|
387
60
|
end
|
|
388
|
-
hash
|
|
389
|
-
end
|
|
390
|
-
|
|
391
|
-
# Checks equality by comparing each attribute.
|
|
392
|
-
# @param o [Object] Object to be compared
|
|
393
|
-
# @!visibility private
|
|
394
|
-
def ==(o)
|
|
395
|
-
return true if self.equal?(o)
|
|
396
|
-
self.class == o.class &&
|
|
397
|
-
dependencies == o.dependencies &&
|
|
398
|
-
_end == o._end &&
|
|
399
|
-
error == o.error &&
|
|
400
|
-
git == o.git &&
|
|
401
|
-
id == o.id &&
|
|
402
|
-
level == o.level &&
|
|
403
|
-
metrics == o.metrics &&
|
|
404
|
-
name == o.name &&
|
|
405
|
-
node == o.node &&
|
|
406
|
-
parameters == o.parameters &&
|
|
407
|
-
pipeline_name == o.pipeline_name &&
|
|
408
|
-
pipeline_unique_id == o.pipeline_unique_id &&
|
|
409
|
-
queue_time == o.queue_time &&
|
|
410
|
-
stage_id == o.stage_id &&
|
|
411
|
-
stage_name == o.stage_name &&
|
|
412
|
-
start == o.start &&
|
|
413
|
-
status == o.status &&
|
|
414
|
-
tags == o.tags &&
|
|
415
|
-
url == o.url &&
|
|
416
|
-
additional_properties == o.additional_properties
|
|
417
|
-
end
|
|
418
|
-
|
|
419
|
-
# Calculates hash code according to all attributes.
|
|
420
|
-
# @return [Integer] Hash code
|
|
421
|
-
# @!visibility private
|
|
422
|
-
def hash
|
|
423
|
-
[dependencies, _end, error, git, id, level, metrics, name, node, parameters, pipeline_name, pipeline_unique_id, queue_time, stage_id, stage_name, start, status, tags, url, additional_properties].hash
|
|
424
61
|
end
|
|
425
62
|
end
|
|
426
63
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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 in-progress status of the job.
|
|
21
|
+
class CIAppPipelineEventJobInProgressStatus
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
RUNNING = "running".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -24,9 +24,12 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# The commit SHA (40-character hexadecimal string).
|
|
25
25
|
attr_reader :commit_sha
|
|
26
26
|
|
|
27
|
-
# The repository
|
|
27
|
+
# Deprecated: use `repository_url` instead. The repository URL.
|
|
28
28
|
attr_reader :repository_id
|
|
29
29
|
|
|
30
|
+
# The repository URL. Accepts a full URL with or without a scheme (for example, `https://github.com/org/repo` or `github.com/org/repo`).
|
|
31
|
+
attr_reader :repository_url
|
|
32
|
+
|
|
30
33
|
attr_accessor :additional_properties
|
|
31
34
|
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -34,7 +37,8 @@ module DatadogAPIClient::V2
|
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
36
39
|
:'commit_sha' => :'commit_sha',
|
|
37
|
-
:'repository_id' => :'repository_id'
|
|
40
|
+
:'repository_id' => :'repository_id',
|
|
41
|
+
:'repository_url' => :'repository_url'
|
|
38
42
|
}
|
|
39
43
|
end
|
|
40
44
|
|
|
@@ -43,7 +47,8 @@ module DatadogAPIClient::V2
|
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
45
49
|
:'commit_sha' => :'String',
|
|
46
|
-
:'repository_id' => :'String'
|
|
50
|
+
:'repository_id' => :'String',
|
|
51
|
+
:'repository_url' => :'String'
|
|
47
52
|
}
|
|
48
53
|
end
|
|
49
54
|
|
|
@@ -72,6 +77,10 @@ module DatadogAPIClient::V2
|
|
|
72
77
|
if attributes.key?(:'repository_id')
|
|
73
78
|
self.repository_id = attributes[:'repository_id']
|
|
74
79
|
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'repository_url')
|
|
82
|
+
self.repository_url = attributes[:'repository_url']
|
|
83
|
+
end
|
|
75
84
|
end
|
|
76
85
|
|
|
77
86
|
# Check to see if the all the properties in the model are valid
|
|
@@ -81,8 +90,8 @@ module DatadogAPIClient::V2
|
|
|
81
90
|
return false if @commit_sha.nil?
|
|
82
91
|
pattern = Regexp.new(/^[a-fA-F0-9]{40}$/)
|
|
83
92
|
return false if @commit_sha !~ pattern
|
|
84
|
-
return false if
|
|
85
|
-
return false if @
|
|
93
|
+
return false if !@repository_id.nil? && @repository_id.to_s.length < 1
|
|
94
|
+
return false if !@repository_url.nil? && @repository_url.to_s.length < 1
|
|
86
95
|
true
|
|
87
96
|
end
|
|
88
97
|
|
|
@@ -104,15 +113,22 @@ module DatadogAPIClient::V2
|
|
|
104
113
|
# @param repository_id [Object] Object to be assigned
|
|
105
114
|
# @!visibility private
|
|
106
115
|
def repository_id=(repository_id)
|
|
107
|
-
if repository_id.nil?
|
|
108
|
-
fail ArgumentError, 'invalid value for "repository_id", repository_id cannot be nil.'
|
|
109
|
-
end
|
|
110
|
-
if repository_id.to_s.length < 1
|
|
116
|
+
if !repository_id.nil? && repository_id.to_s.length < 1
|
|
111
117
|
fail ArgumentError, 'invalid value for "repository_id", the character length must be great than or equal to 1.'
|
|
112
118
|
end
|
|
113
119
|
@repository_id = repository_id
|
|
114
120
|
end
|
|
115
121
|
|
|
122
|
+
# Custom attribute writer method with validation
|
|
123
|
+
# @param repository_url [Object] Object to be assigned
|
|
124
|
+
# @!visibility private
|
|
125
|
+
def repository_url=(repository_url)
|
|
126
|
+
if !repository_url.nil? && repository_url.to_s.length < 1
|
|
127
|
+
fail ArgumentError, 'invalid value for "repository_url", the character length must be great than or equal to 1.'
|
|
128
|
+
end
|
|
129
|
+
@repository_url = repository_url
|
|
130
|
+
end
|
|
131
|
+
|
|
116
132
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
117
133
|
# @return [Hash] Returns the object in the form of hash
|
|
118
134
|
# @!visibility private
|
|
@@ -141,6 +157,7 @@ module DatadogAPIClient::V2
|
|
|
141
157
|
self.class == o.class &&
|
|
142
158
|
commit_sha == o.commit_sha &&
|
|
143
159
|
repository_id == o.repository_id &&
|
|
160
|
+
repository_url == o.repository_url &&
|
|
144
161
|
additional_properties == o.additional_properties
|
|
145
162
|
end
|
|
146
163
|
|
|
@@ -148,7 +165,7 @@ module DatadogAPIClient::V2
|
|
|
148
165
|
# @return [Integer] Hash code
|
|
149
166
|
# @!visibility private
|
|
150
167
|
def hash
|
|
151
|
-
[commit_sha, repository_id, additional_properties].hash
|
|
168
|
+
[commit_sha, repository_id, repository_url, additional_properties].hash
|
|
152
169
|
end
|
|
153
170
|
end
|
|
154
171
|
end
|
|
@@ -22,7 +22,7 @@ module DatadogAPIClient::V2
|
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
24
|
# The components affected.
|
|
25
|
-
|
|
25
|
+
attr_accessor :components_affected
|
|
26
26
|
|
|
27
27
|
# A description of the update.
|
|
28
28
|
attr_reader :description
|
|
@@ -98,23 +98,12 @@ module DatadogAPIClient::V2
|
|
|
98
98
|
# @return true if the model is valid
|
|
99
99
|
# @!visibility private
|
|
100
100
|
def valid?
|
|
101
|
-
return false if @components_affected.nil?
|
|
102
101
|
return false if @description.nil?
|
|
103
102
|
return false if @started_at.nil?
|
|
104
103
|
return false if @status.nil?
|
|
105
104
|
true
|
|
106
105
|
end
|
|
107
106
|
|
|
108
|
-
# Custom attribute writer method with validation
|
|
109
|
-
# @param components_affected [Object] Object to be assigned
|
|
110
|
-
# @!visibility private
|
|
111
|
-
def components_affected=(components_affected)
|
|
112
|
-
if components_affected.nil?
|
|
113
|
-
fail ArgumentError, 'invalid value for "components_affected", components_affected cannot be nil.'
|
|
114
|
-
end
|
|
115
|
-
@components_affected = components_affected
|
|
116
|
-
end
|
|
117
|
-
|
|
118
107
|
# Custom attribute writer method with validation
|
|
119
108
|
# @param description [Object] Object to be assigned
|
|
120
109
|
# @!visibility private
|
|
@@ -28,7 +28,7 @@ module DatadogAPIClient::V2
|
|
|
28
28
|
attr_reader :completed_description
|
|
29
29
|
|
|
30
30
|
# The components affected by the maintenance.
|
|
31
|
-
|
|
31
|
+
attr_accessor :components_affected
|
|
32
32
|
|
|
33
33
|
# The description shown while the maintenance is in progress.
|
|
34
34
|
attr_reader :in_progress_description
|
|
@@ -127,7 +127,6 @@ module DatadogAPIClient::V2
|
|
|
127
127
|
def valid?
|
|
128
128
|
return false if @completed_date.nil?
|
|
129
129
|
return false if @completed_description.nil?
|
|
130
|
-
return false if @components_affected.nil?
|
|
131
130
|
return false if @in_progress_description.nil?
|
|
132
131
|
return false if @scheduled_description.nil?
|
|
133
132
|
return false if @start_date.nil?
|
|
@@ -155,16 +154,6 @@ module DatadogAPIClient::V2
|
|
|
155
154
|
@completed_description = completed_description
|
|
156
155
|
end
|
|
157
156
|
|
|
158
|
-
# Custom attribute writer method with validation
|
|
159
|
-
# @param components_affected [Object] Object to be assigned
|
|
160
|
-
# @!visibility private
|
|
161
|
-
def components_affected=(components_affected)
|
|
162
|
-
if components_affected.nil?
|
|
163
|
-
fail ArgumentError, 'invalid value for "components_affected", components_affected cannot be nil.'
|
|
164
|
-
end
|
|
165
|
-
@components_affected = components_affected
|
|
166
|
-
end
|
|
167
|
-
|
|
168
157
|
# Custom attribute writer method with validation
|
|
169
158
|
# @param in_progress_description [Object] Object to be assigned
|
|
170
159
|
# @!visibility private
|