datadog_api_client 2.49.0 → 2.50.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/conftest.py +1 -0
- data/.generator/schemas/v1/openapi.yaml +175 -9
- data/.generator/schemas/v2/openapi.yaml +33624 -22093
- data/.generator/src/generator/templates/example.j2 +1 -1
- data/CHANGELOG.md +67 -0
- data/examples/v1/dashboards/CreateDashboard_1259346254.rb +27 -0
- data/examples/v1/dashboards/CreateDashboard_3631423980.rb +28 -0
- data/examples/v1/dashboards/CreateDashboard_416487533.rb +27 -0
- data/examples/v1/logs-indexes/CreateLogsIndex.rb +4 -0
- data/examples/v1/logs-indexes/UpdateLogsIndex.rb +4 -0
- data/examples/v1/service-level-objectives/CreateSLO_512760759.rb +49 -0
- data/examples/v2/apm/GetServiceList.rb +1 -1
- data/examples/v2/case-management/CreateCaseJiraIssue.rb +20 -0
- data/examples/v2/case-management/CreateCaseNotebook.rb +14 -0
- data/examples/v2/case-management/CreateCaseServiceNowTicket.rb +18 -0
- data/examples/v2/case-management/CreateProject.rb +1 -0
- data/examples/v2/case-management/CreateProjectNotificationRule.rb +26 -0
- data/examples/v2/case-management/DeleteProjectNotificationRule.rb +5 -0
- data/examples/v2/case-management/GetProjectNotificationRules.rb +5 -0
- data/examples/v2/case-management/LinkIncident.rb +15 -0
- data/examples/v2/case-management/LinkJiraIssueToCase.rb +17 -0
- data/examples/v2/case-management/MoveCaseToProject.rb +15 -0
- data/examples/v2/case-management/UnlinkJiraIssue.rb +8 -0
- data/examples/v2/case-management/UpdateProject.rb +14 -0
- data/examples/v2/case-management/UpdateProjectNotificationRule.rb +25 -0
- data/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.rb +32 -0
- data/examples/v2/cloud-cost-management/DeleteBudget.rb +1 -1
- data/examples/v2/cloud-cost-management/GetBudget.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.rb +32 -0
- data/examples/v2/cloud-cost-management/UpsertBudget.rb +3 -7
- data/examples/v2/cloud-cost-management/ValidateBudget.rb +46 -0
- data/examples/v2/cloud-cost-management/ValidateCsvBudget.rb +5 -0
- data/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb +18 -0
- data/examples/v2/code-coverage/GetCodeCoverageBranchSummary_2532383345.rb +18 -0
- data/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb +18 -0
- data/examples/v2/code-coverage/GetCodeCoverageCommitSummary_2575243916.rb +18 -0
- data/examples/v2/dora-metrics/PatchDORADeployment.rb +19 -0
- data/examples/v2/entity-risk-scores/ListEntityRiskScores.rb +8 -0
- data/examples/v2/high-availability-multiregion/CreateHamrOrgConnection.rb +23 -0
- data/examples/v2/high-availability-multiregion/GetHamrOrgConnection.rb +8 -0
- data/examples/v2/incidents/CreateGlobalIncidentHandle.rb +37 -0
- data/examples/v2/incidents/CreateIncidentAttachment.rb +6 -4
- data/examples/v2/incidents/CreateIncidentPostmortemAttachment.rb +30 -0
- data/examples/v2/incidents/CreateIncidentPostmortemTemplate.rb +17 -0
- data/examples/v2/incidents/DeleteGlobalIncidentHandle.rb +8 -0
- data/examples/v2/incidents/DeleteIncidentAttachment.rb +7 -1
- data/examples/v2/incidents/DeleteIncidentPostmortemTemplate.rb +8 -0
- data/examples/v2/incidents/GetGlobalIncidentSettings.rb +8 -0
- data/examples/v2/incidents/GetIncidentPostmortemTemplate.rb +8 -0
- data/examples/v2/incidents/ListGlobalIncidentHandles.rb +8 -0
- data/examples/v2/incidents/ListIncidentAttachments.rb +4 -1
- data/examples/v2/incidents/ListIncidentPostmortemTemplates.rb +8 -0
- data/examples/v2/incidents/UpdateGlobalIncidentHandle.rb +37 -0
- data/examples/v2/incidents/UpdateGlobalIncidentSettings.rb +17 -0
- data/examples/v2/incidents/UpdateIncidentAttachment.rb +10 -3
- data/examples/v2/incidents/UpdateIncidentPostmortemTemplate.rb +17 -0
- data/examples/v2/jira-integration/CreateJiraIssueTemplate.rb +25 -0
- data/examples/v2/jira-integration/DeleteJiraAccount.rb +8 -0
- data/examples/v2/jira-integration/DeleteJiraIssueTemplate.rb +8 -0
- data/examples/v2/jira-integration/GetJiraIssueTemplate.rb +8 -0
- data/examples/v2/jira-integration/ListJiraAccounts.rb +8 -0
- data/examples/v2/jira-integration/ListJiraIssueTemplates.rb +8 -0
- data/examples/v2/jira-integration/UpdateJiraIssueTemplate.rb +20 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +0 -3
- data/examples/v2/observability-pipelines/CreatePipeline_3363445359.rb +56 -0
- data/examples/v2/observability-pipelines/CreatePipeline_581245895.rb +53 -0
- data/examples/v2/observability-pipelines/DeletePipeline.rb +0 -3
- data/examples/v2/observability-pipelines/GetPipeline.rb +0 -3
- data/examples/v2/observability-pipelines/ListPipelines.rb +0 -3
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +0 -3
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +0 -3
- data/examples/v2/oci-integration/CreateTenancyConfig.rb +62 -0
- data/examples/v2/oci-integration/DeleteTenancyConfig.rb +5 -0
- data/examples/v2/oci-integration/GetTenancyConfig.rb +5 -0
- data/examples/v2/oci-integration/GetTenancyConfigs.rb +8 -0
- data/examples/v2/oci-integration/ListTenancyProducts.rb +5 -0
- data/examples/v2/oci-integration/UpdateTenancyConfig.rb +56 -0
- data/examples/v2/rum-replay-heatmaps/CreateReplayHeatmapSnapshot.rb +20 -0
- data/examples/v2/rum-replay-heatmaps/DeleteReplayHeatmapSnapshot.rb +5 -0
- data/examples/v2/rum-replay-heatmaps/ListReplayHeatmapSnapshots.rb +5 -0
- data/examples/v2/rum-replay-heatmaps/UpdateReplayHeatmapSnapshot.rb +17 -0
- data/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.rb +5 -0
- data/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.rb +14 -0
- data/examples/v2/rum-replay-playlists/CreateRumReplayPlaylist.rb +19 -0
- data/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.rb +5 -0
- data/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.rb +5 -0
- data/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.rb +5 -0
- data/examples/v2/rum-replay-playlists/ListRumReplayPlaylists.rb +5 -0
- data/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.rb +5 -0
- data/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.rb +19 -0
- data/examples/v2/rum-replay-sessions/GetSegments.rb +5 -0
- data/examples/v2/rum-replay-viewership/CreateRumReplaySessionWatch.rb +16 -0
- data/examples/v2/rum-replay-viewership/DeleteRumReplaySessionWatch.rb +5 -0
- data/examples/v2/rum-replay-viewership/ListRumReplaySessionWatchers.rb +5 -0
- data/examples/v2/rum-replay-viewership/ListRumReplayViewershipHistorySessions.rb +5 -0
- data/examples/v2/security-monitoring/ActivateContentPack.rb +8 -0
- data/examples/v2/security-monitoring/BulkExportSecurityMonitoringRules.rb +19 -0
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +27 -12
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +33 -0
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +37 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3355193622.rb +49 -0
- data/examples/v2/security-monitoring/DeactivateContentPack.rb +8 -0
- data/examples/v2/security-monitoring/GetContentPacksStates.rb +8 -0
- data/examples/v2/security-monitoring/GetSBOM.rb +0 -3
- data/examples/v2/security-monitoring/ListAssetsSBOMs.rb +0 -3
- data/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.rb +15 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.rb +15 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.rb +16 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +1 -1
- data/examples/v2/service-level-objectives/GetSloStatus.rb +8 -0
- data/examples/v2/servicenow-integration/CreateServiceNowTemplate.rb +25 -0
- data/examples/v2/servicenow-integration/DeleteServiceNowTemplate.rb +8 -0
- data/examples/v2/servicenow-integration/GetServiceNowTemplate.rb +8 -0
- data/examples/v2/servicenow-integration/ListServiceNowAssignmentGroups.rb +8 -0
- data/examples/v2/servicenow-integration/ListServiceNowBusinessServices.rb +8 -0
- data/examples/v2/servicenow-integration/ListServiceNowInstances.rb +8 -0
- data/examples/v2/servicenow-integration/ListServiceNowTemplates.rb +8 -0
- data/examples/v2/servicenow-integration/ListServiceNowUsers.rb +8 -0
- data/examples/v2/servicenow-integration/UpdateServiceNowTemplate.rb +25 -0
- data/examples/v2/static-analysis/CreateCustomRule.rb +15 -0
- data/examples/v2/static-analysis/CreateCustomRuleRevision.rb +47 -0
- data/examples/v2/static-analysis/DeleteCustomRule.rb +8 -0
- data/examples/v2/static-analysis/DeleteCustomRuleset.rb +8 -0
- data/examples/v2/static-analysis/GetCustomRule.rb +8 -0
- data/examples/v2/static-analysis/GetCustomRuleRevision.rb +8 -0
- data/examples/v2/static-analysis/GetCustomRuleset.rb +8 -0
- data/examples/v2/static-analysis/ListCustomRuleRevisions.rb +8 -0
- data/examples/v2/static-analysis/ListCustomRuleRevisions_3739033293.rb +8 -0
- data/examples/v2/static-analysis/RevertCustomRuleRevision.rb +15 -0
- data/examples/v2/static-analysis/UpdateCustomRuleset.rb +63 -0
- data/examples/v2/status-pages/CreateComponent.rb +19 -0
- data/examples/v2/status-pages/CreateDegradation.rb +26 -0
- data/examples/v2/status-pages/CreateStatusPage.rb +30 -0
- data/examples/v2/status-pages/DeleteComponent.rb +9 -0
- data/examples/v2/status-pages/DeleteDegradation.rb +11 -0
- data/examples/v2/status-pages/DeleteStatusPage.rb +8 -0
- data/examples/v2/status-pages/GetComponent.rb +9 -0
- data/examples/v2/status-pages/GetDegradation.rb +11 -0
- data/examples/v2/status-pages/GetStatusPage.rb +8 -0
- data/examples/v2/status-pages/ListComponents.rb +8 -0
- data/examples/v2/status-pages/ListDegradations.rb +5 -0
- data/examples/v2/status-pages/ListStatusPages.rb +5 -0
- data/examples/v2/status-pages/UpdateComponent.rb +19 -0
- data/examples/v2/status-pages/UpdateDegradation.rb +21 -0
- data/examples/v2/status-pages/UpdateStatusPage.rb +18 -0
- data/examples/v2/synthetics/CreateSyntheticsSuite.rb +21 -0
- data/examples/v2/synthetics/DeleteSyntheticsSuites.rb +16 -0
- data/examples/v2/synthetics/EditSyntheticsSuite.rb +26 -0
- data/examples/v2/synthetics/GetSyntheticsSuite.rb +5 -0
- data/examples/v2/synthetics/SearchSuites.rb +5 -0
- data/examples/v2/teams/UpdateTeamMembership.rb +8 -2
- data/examples/v2/test-optimization/SearchFlakyTests.rb +1 -0
- data/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +1 -0
- data/examples/v2/test-optimization/SearchFlakyTests_209064879.rb +27 -0
- data/examples/v2/test-optimization/UpdateFlakyTests.rb +22 -0
- data/lib/datadog_api_client/configuration.rb +57 -10
- data/lib/datadog_api_client/inflector.rb +477 -9
- data/lib/datadog_api_client/v1/api/monitors_api.rb +13 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/logs_index.rb +15 -3
- data/lib/datadog_api_client/v1/models/logs_index_update_request.rb +15 -3
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_options_notification_presets.rb +3 -0
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
- data/lib/datadog_api_client/v1/models/service_level_objective.rb +2 -2
- data/lib/datadog_api_client/v1/models/service_level_objective_query.rb +1 -1
- data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_count_definition.rb +172 -0
- data/lib/datadog_api_client/v1/models/slo_count_spec.rb +99 -0
- data/lib/datadog_api_client/v1/models/slo_response_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_sli_spec.rb +3 -2
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options_notification_preset_name.rb +3 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v1/models/widget_request_style.rb +13 -1
- data/lib/datadog_api_client/v1/models/widget_style_order_by.rb +29 -0
- data/lib/datadog_api_client/v2/api/apm_api.rb +9 -3
- data/lib/datadog_api_client/v2/api/case_management_api.rb +945 -50
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +134 -10
- data/lib/datadog_api_client/v2/api/code_coverage_api.rb +182 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +72 -0
- data/lib/datadog_api_client/v2/api/entity_risk_scores_api.rb +109 -0
- data/lib/datadog_api_client/v2/api/high_availability_multi_region_api.rb +169 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +895 -31
- data/lib/datadog_api_client/v2/api/jira_integration_api.rb +522 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +21 -2
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +0 -36
- data/lib/datadog_api_client/v2/api/oci_integration_api.rb +433 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/rum_replay_heatmaps_api.rb +302 -0
- data/lib/datadog_api_client/v2/api/rum_replay_playlists_api.rb +652 -0
- data/lib/datadog_api_client/v2/api/rum_replay_sessions_api.rb +104 -0
- data/lib/datadog_api_client/v2/api/rum_replay_viewership_api.rb +306 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +294 -26
- data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +87 -0
- data/lib/datadog_api_client/v2/api/service_now_integration_api.rb +664 -0
- data/lib/datadog_api_client/v2/api/static_analysis_api.rb +798 -0
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +1100 -0
- data/lib/datadog_api_client/v2/api/synthetics_api.rb +329 -0
- data/lib/datadog_api_client/v2/api/test_optimization_api.rb +86 -0
- data/lib/datadog_api_client/v2/models/any_value.rb +66 -0
- data/lib/datadog_api_client/v2/models/any_value_item.rb +65 -0
- data/lib/datadog_api_client/v2/models/argument.rb +144 -0
- data/lib/datadog_api_client/v2/models/attachment.rb +2 -2
- data/lib/datadog_api_client/v2/models/attachment_array.rb +1 -1
- data/lib/datadog_api_client/v2/models/attachment_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/attachment_data_attributes.rb +4 -4
- data/lib/datadog_api_client/v2/models/attachment_data_attributes_attachment.rb +3 -3
- data/lib/datadog_api_client/v2/models/attachment_data_attributes_attachment_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/attachment_data_relationships.rb +14 -4
- data/lib/datadog_api_client/v2/models/attachment_included.rb +2 -2
- data/lib/datadog_api_client/v2/models/auto_close_inactive_cases.rb +115 -0
- data/lib/datadog_api_client/v2/models/auto_transition_assigned_cases.rb +105 -0
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/branch_coverage_summary_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/branch_coverage_summary_request_attributes.rb +152 -0
- data/lib/datadog_api_client/v2/models/branch_coverage_summary_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/branch_coverage_summary_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/budget.rb +19 -1
- data/lib/datadog_api_client/v2/models/budget_array.rb +19 -1
- data/lib/datadog_api_client/v2/models/budget_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/budget_validation_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/budget_validation_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/budget_validation_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/budget_validation_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/budget_validation_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/budget_validation_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/{budget_entry.rb → budget_with_entries_data_attributes_entries_items.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{tag_filter.rb → budget_with_entries_data_attributes_entries_items_tag_filters_items.rb} +5 -5
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_attributes.rb +22 -2
- data/lib/datadog_api_client/v2/models/case_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/case_notification_rule.rb +165 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_attributes.rb +139 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_create_attributes.rb +168 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_recipient.rb +115 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_recipient_data.rb +225 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_trigger.rb +115 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_trigger_data.rb +155 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/case_notification_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_notification_rules_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/case_status.rb +3 -1
- data/lib/datadog_api_client/v2/models/case_status_group.rb +28 -0
- data/lib/datadog_api_client/v2/models/case_update_status_attributes.rb +13 -21
- data/lib/datadog_api_client/v2/models/commit_coverage_summary_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/commit_coverage_summary_request_attributes.rb +154 -0
- data/lib/datadog_api_client/v2/models/commit_coverage_summary_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/commit_coverage_summary_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/coverage_summary_attributes.rb +166 -0
- data/lib/datadog_api_client/v2/models/coverage_summary_codeowner_stats.rb +144 -0
- data/lib/datadog_api_client/v2/models/coverage_summary_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/coverage_summary_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/coverage_summary_service_stats.rb +144 -0
- data/lib/datadog_api_client/v2/models/coverage_summary_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_attachment_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_attachment_request_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes_attachment.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_component_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_component_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/{create_ruleset_request_data_attributes_rules_items_mapping.rb → create_component_request_data_attributes.rb} +55 -45
- data/lib/datadog_api_client/v2/models/create_component_request_data_attributes_components_items.rb +165 -0
- data/lib/datadog_api_client/v2/models/create_component_request_data_attributes_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/create_component_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_component_request_data_relationships_group.rb +113 -0
- data/lib/datadog_api_client/v2/models/create_component_request_data_relationships_group_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_attributes.rb +177 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_attributes_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query.rb +13 -14
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table.rb +12 -2
- data/lib/datadog_api_client/v2/models/create_status_page_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_status_page_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +259 -0
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes_components_items.rb +157 -0
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes_components_items_components_items.rb +145 -0
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes_visualization_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/create_tenancy_config_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/create_tenancy_config_data_attributes.rb +253 -0
- data/lib/datadog_api_client/v2/models/create_tenancy_config_data_attributes_auth_credentials.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_tenancy_config_data_attributes_logs_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/create_tenancy_config_data_attributes_metrics_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/create_tenancy_config_data_attributes_regions_config.rb +131 -0
- data/lib/datadog_api_client/v2/models/create_tenancy_config_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_rule.rb +186 -0
- data/lib/datadog_api_client/v2/models/custom_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_rule_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/custom_rule_request_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/custom_rule_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/custom_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_attributes.rb +505 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_attributes_category.rb +30 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_attributes_severity.rb +28 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_input_attributes.rb +442 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_request_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revision_test.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_rule_revisions_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/custom_ruleset.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_ruleset_attributes.rb +227 -0
- data/lib/datadog_api_client/v2/models/custom_ruleset_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_ruleset_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/custom_ruleset_request_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/custom_ruleset_request_data_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/custom_ruleset_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/data_attributes_rules_items_if_tag_exists.rb +28 -0
- data/lib/datadog_api_client/v2/models/{ruleset_resp_data_attributes_rules_items_mapping.rb → data_attributes_rules_items_mapping.rb} +16 -17
- data/lib/datadog_api_client/v2/models/degradation.rb +117 -0
- data/lib/datadog_api_client/v2/models/degradation_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/degradation_array_included.rb +63 -0
- data/lib/datadog_api_client/v2/models/degradation_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes.rb +169 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_updates_items.rb +157 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_updates_items_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_last_modified_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_status_page_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/deleted_suite_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/deleted_suite_response_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/deleted_suites_request_delete.rb +143 -0
- data/lib/datadog_api_client/v2/models/deleted_suites_request_delete_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/deleted_suites_request_delete_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/deleted_suites_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deleted_suites_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb +144 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/flaky_test_attributes.rb +14 -1
- data/lib/datadog_api_client/v2/models/{update_ruleset_request_data_attributes_rules_items_mapping.rb → flaky_test_history.rb} +43 -45
- data/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/global_incident_settings_attributes_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/global_incident_settings_attributes_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/global_incident_settings_data_request.rb +133 -0
- data/lib/datadog_api_client/v2/models/global_incident_settings_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/global_incident_settings_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/global_incident_settings_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/global_incident_settings_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_attributes_request.rb +235 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_attributes_response.rb +256 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_data_request.rb +165 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_status.rb +37 -0
- data/lib/datadog_api_client/v2/models/hamr_org_connection_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_handle_attributes_fields.rb +107 -0
- data/lib/datadog_api_client/v2/models/incident_handle_attributes_request.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_handle_attributes_response.rb +186 -0
- data/lib/datadog_api_client/v2/models/incident_handle_data_request.rb +172 -0
- data/lib/datadog_api_client/v2/models/incident_handle_data_response.rb +183 -0
- data/lib/datadog_api_client/v2/models/incident_handle_included_item_response.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_handle_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_handle_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_handle_relationships.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_handle_relationships_request.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_handle_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_handles_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/input_schema_parameters.rb +21 -1
- data/lib/datadog_api_client/v2/models/integration_incident.rb +157 -0
- data/lib/datadog_api_client/v2/models/integration_incident_field_mappings_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/integration_incident_severity_config.rb +105 -0
- data/lib/datadog_api_client/v2/models/integration_jira.rb +135 -0
- data/lib/datadog_api_client/v2/models/integration_jira_auto_creation.rb +105 -0
- data/lib/datadog_api_client/v2/models/integration_jira_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/integration_jira_sync.rb +115 -0
- data/lib/datadog_api_client/v2/models/integration_jira_sync_due_date.rb +115 -0
- data/lib/datadog_api_client/v2/models/integration_jira_sync_properties.rb +175 -0
- data/lib/datadog_api_client/v2/models/integration_jira_sync_properties_custom_fields_additional_properties.rb +123 -0
- data/lib/datadog_api_client/v2/models/integration_monitor.rb +135 -0
- data/lib/datadog_api_client/v2/models/integration_on_call.rb +127 -0
- data/lib/datadog_api_client/v2/models/integration_on_call_escalation_queries_items.rb +135 -0
- data/lib/datadog_api_client/v2/models/integration_on_call_escalation_queries_items_target.rb +125 -0
- data/lib/datadog_api_client/v2/models/integration_service_now.rb +145 -0
- data/lib/datadog_api_client/v2/models/integration_service_now_auto_creation.rb +105 -0
- data/lib/datadog_api_client/v2/models/integration_service_now_sync_config.rb +115 -0
- data/lib/datadog_api_client/v2/models/integration_service_now_sync_config139772721534496.rb +125 -0
- data/lib/datadog_api_client/v2/models/integration_service_now_sync_config_priority.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_case_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/jira_account_attributes.rb +154 -0
- data/lib/datadog_api_client/v2/models/jira_account_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/jira_account_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/jira_account_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/jira_accounts_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/jira_accounts_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/jira_issue_create_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/jira_issue_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/jira_issue_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/jira_issue_link_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/jira_issue_link_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/jira_issue_link_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/jira_issue_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_create_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_create_request_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_create_request_attributes_jira_account.rb +123 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_create_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_data_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_update_request_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/jira_issue_template_update_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/jira_issue_templates_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/language.rb +36 -0
- data/lib/datadog_api_client/v2/models/metric_all_tags.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/metric_all_tags_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +5 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/notebook_create_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/notebook_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/notebook_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_buffer_options.rb +64 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_buffer_options_disk_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_buffer_options_memory_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_buffer_options_when_full.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +16 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +34 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination_route.rb +135 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor_cache.rb +131 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_disk_buffer_options.rb +143 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb +143 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb +143 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +21 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination_data_stream.rb +125 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/on_call_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/on_call_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes_attachment.rb +3 -3
- data/lib/datadog_api_client/v2/models/patch_component_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_component_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/patch_component_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data_attributes_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_status_page_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_status_page_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/playlist.rb +123 -0
- data/lib/datadog_api_client/v2/models/playlist_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/playlist_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/playlist_data_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/playlist_data_attributes_created_by.rb +185 -0
- data/lib/datadog_api_client/v2/models/playlist_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/playlists_session.rb +123 -0
- data/lib/datadog_api_client/v2/models/playlists_session_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/playlists_session_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/playlists_session_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/postmortem_attachment_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/postmortem_attachment_request_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/postmortem_attachment_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/postmortem_cell.rb +125 -0
- data/lib/datadog_api_client/v2/models/postmortem_cell_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/postmortem_cell_definition.rb +105 -0
- data/lib/datadog_api_client/v2/models/postmortem_cell_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_attributes_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_attributes_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/postmortem_templates_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/project_attributes.rb +45 -3
- data/lib/datadog_api_client/v2/models/project_columns_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/project_columns_config_columns_items.rb +125 -0
- data/lib/datadog_api_client/v2/models/project_columns_config_columns_items_sort.rb +115 -0
- data/lib/datadog_api_client/v2/models/project_create_attributes.rb +26 -4
- data/lib/datadog_api_client/v2/models/project_notification_settings.rb +187 -0
- data/lib/datadog_api_client/v2/models/project_settings.rb +175 -0
- data/lib/datadog_api_client/v2/models/project_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/project_update_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/project_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/raw_error_budget_remaining.rb +144 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/revert_custom_rule_revision_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/revert_custom_rule_revision_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/revert_custom_rule_revision_request_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/revert_custom_rule_revision_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query.rb +13 -14
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table.rb +12 -2
- data/lib/datadog_api_client/v2/models/rum_retention_filter_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/rum_retention_filter_create_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/rum_retention_filter_update_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/security_entity_config_risks.rb +228 -0
- data/lib/datadog_api_client/v2/models/security_entity_metadata.rb +247 -0
- data/lib/datadog_api_client/v2/models/security_entity_risk_score.rb +165 -0
- data/lib/datadog_api_client/v2/models/security_entity_risk_score_attributes.rb +378 -0
- data/lib/datadog_api_client/v2/models/security_entity_risk_score_attributes_severity.rb +30 -0
- data/lib/datadog_api_client/v2/models/security_entity_risk_score_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_entity_risk_scores_meta.rb +186 -0
- data/lib/datadog_api_client/v2/models/security_entity_risk_scores_response.rb +146 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_activation.rb +28 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_integration_status.rb +30 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_attributes.rb +238 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_meta.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_states_response.rb +146 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_status.rb +31 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_timestamp_bucket.rb +30 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_paginated_suppressions_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_export_attributes.rb +130 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_export_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_export_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_export_payload.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_sku.rb +28 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_sort.rb +35 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppressions_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppressions_page_meta.rb +125 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_suppressions.rb +132 -0
- data/lib/datadog_api_client/v2/models/service_now_assignment_group_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/service_now_assignment_group_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/service_now_assignment_group_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_assignment_groups_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/service_now_business_service_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/service_now_business_service_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/service_now_business_service_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_business_services_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/service_now_instance_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/service_now_instance_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/service_now_instance_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_instances_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/service_now_template_attributes.rb +205 -0
- data/lib/datadog_api_client/v2/models/service_now_template_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/service_now_template_create_request_attributes.rb +205 -0
- data/lib/datadog_api_client/v2/models/service_now_template_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/service_now_template_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/service_now_template_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/service_now_template_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_template_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/service_now_template_update_request_attributes.rb +205 -0
- data/lib/datadog_api_client/v2/models/service_now_template_update_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/service_now_templates_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/service_now_ticket_create_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_now_ticket_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/service_now_ticket_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/service_now_ticket_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_user_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/service_now_user_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/service_now_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_users_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/session_id_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/session_id_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/slo_status_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/slo_status_data_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/slo_status_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/slo_status_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/snapshot.rb +105 -0
- data/lib/datadog_api_client/v2/models/snapshot_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/snapshot_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/snapshot_create_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/snapshot_create_request_data_attributes.rb +269 -0
- data/lib/datadog_api_client/v2/models/snapshot_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/snapshot_data_attributes.rb +245 -0
- data/lib/datadog_api_client/v2/models/snapshot_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/snapshot_update_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/snapshot_update_request_data_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/snapshot_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/status_page.rb +117 -0
- data/lib/datadog_api_client/v2/models/status_page_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/status_page_array_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included.rb +153 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_attributes.rb +247 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_attributes_components_items.rb +157 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_attributes_components_items_components_items.rb +145 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_relationships_last_modified_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_page_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/status_page_data_attributes.rb +258 -0
- data/lib/datadog_api_client/v2/models/status_page_data_attributes_components_items.rb +157 -0
- data/lib/datadog_api_client/v2/models/status_page_data_attributes_components_items_components_items.rb +145 -0
- data/lib/datadog_api_client/v2/models/status_page_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/status_page_data_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_page_data_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/{attachment_data_relationships_last_modified_by_user.rb → status_page_data_relationships_last_modified_by_user.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{attachment_data_relationships_last_modified_by_user_data.rb → status_page_data_relationships_last_modified_by_user_data.rb} +4 -4
- data/lib/datadog_api_client/v2/models/status_page_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/status_pages_component.rb +117 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_array.rb +137 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_array_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_attributes_components_items.rb +145 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_attributes_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_group.rb +113 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_group_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_last_modified_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_data_relationships_status_page_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group.rb +153 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_attributes_components_items.rb +145 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_attributes_components_items_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_attributes_components_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_group.rb +113 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_group_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_last_modified_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_relationships_status_page_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/status_pages_pagination.rb +186 -0
- data/lib/datadog_api_client/v2/models/status_pages_pagination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/status_pages_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/status_pages_user.rb +143 -0
- data/lib/datadog_api_client/v2/models/status_pages_user_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/{user_type.rb → status_pages_user_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/suite_create_edit.rb +144 -0
- data/lib/datadog_api_client/v2/models/suite_create_edit_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/suite_search_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/sync_property.rb +105 -0
- data/lib/datadog_api_client/v2/models/sync_property_with_mapping.rb +125 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/synthetics_suite.rb +230 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_options.rb +127 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_search_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_search_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_search_response_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_test.rb +133 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_test_alerting_criticality.rb +27 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_suite_types.rb +26 -0
- data/lib/datadog_api_client/v2/models/tenancy_config.rb +105 -0
- data/lib/datadog_api_client/v2/models/tenancy_config_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/tenancy_config_data_attributes.rb +243 -0
- data/lib/datadog_api_client/v2/models/tenancy_config_data_attributes_logs_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/tenancy_config_data_attributes_metrics_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/tenancy_config_data_attributes_regions_config.rb +131 -0
- data/lib/datadog_api_client/v2/models/tenancy_config_list.rb +125 -0
- data/lib/datadog_api_client/v2/models/{user140420082644000.rb → tenancy_products_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/tenancy_products_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/tenancy_products_data_attributes_products_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/tenancy_products_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/tenancy_products_list.rb +125 -0
- data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_request_test.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_request_test_new_state.rb +29 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_response_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_flaky_tests_response_result.rb +154 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query.rb +13 -14
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table.rb +12 -2
- data/lib/datadog_api_client/v2/models/update_tenancy_config_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/update_tenancy_config_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/update_tenancy_config_data_attributes_auth_credentials.rb +133 -0
- data/lib/datadog_api_client/v2/models/update_tenancy_config_data_attributes_logs_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/update_tenancy_config_data_attributes_metrics_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/update_tenancy_config_data_attributes_regions_config.rb +131 -0
- data/lib/datadog_api_client/v2/models/update_tenancy_config_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_tenancy_config_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/viewership_history_session_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/viewership_history_session_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/viewership_history_session_data_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/viewership_history_session_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/watch.rb +123 -0
- data/lib/datadog_api_client/v2/models/watch_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/watch_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/watch_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/watcher_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/watcher_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/watcher_data_attributes.rb +189 -0
- data/lib/datadog_api_client/v2/models/watcher_data_type.rb +26 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +604 -10
|
@@ -306,6 +306,240 @@ module DatadogAPIClient::V2
|
|
|
306
306
|
return data, status_code, headers
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
# Create Jira issue for case.
|
|
310
|
+
#
|
|
311
|
+
# @see #create_case_jira_issue_with_http_info
|
|
312
|
+
def create_case_jira_issue(case_id, body, opts = {})
|
|
313
|
+
create_case_jira_issue_with_http_info(case_id, body, opts)
|
|
314
|
+
nil
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Create Jira issue for case.
|
|
318
|
+
#
|
|
319
|
+
# Create a new Jira issue and link it to a case
|
|
320
|
+
#
|
|
321
|
+
# @param case_id [String] Case's UUID or key
|
|
322
|
+
# @param body [JiraIssueCreateRequest] Jira issue creation request
|
|
323
|
+
# @param opts [Hash] the optional parameters
|
|
324
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
325
|
+
def create_case_jira_issue_with_http_info(case_id, body, opts = {})
|
|
326
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_case_jira_issue".to_sym]
|
|
327
|
+
if unstable_enabled
|
|
328
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_jira_issue")
|
|
329
|
+
else
|
|
330
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_jira_issue"))
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if @api_client.config.debugging
|
|
334
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_jira_issue ...'
|
|
335
|
+
end
|
|
336
|
+
# verify the required parameter 'case_id' is set
|
|
337
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
338
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.create_case_jira_issue"
|
|
339
|
+
end
|
|
340
|
+
# verify the required parameter 'body' is set
|
|
341
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
342
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.create_case_jira_issue"
|
|
343
|
+
end
|
|
344
|
+
# resource path
|
|
345
|
+
local_var_path = '/api/v2/cases/{case_id}/relationships/jira_issues'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
346
|
+
|
|
347
|
+
# query parameters
|
|
348
|
+
query_params = opts[:query_params] || {}
|
|
349
|
+
|
|
350
|
+
# header parameters
|
|
351
|
+
header_params = opts[:header_params] || {}
|
|
352
|
+
# HTTP header 'Accept' (if needed)
|
|
353
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
354
|
+
# HTTP header 'Content-Type'
|
|
355
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
356
|
+
|
|
357
|
+
# form parameters
|
|
358
|
+
form_params = opts[:form_params] || {}
|
|
359
|
+
|
|
360
|
+
# http body (model)
|
|
361
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
362
|
+
|
|
363
|
+
# return_type
|
|
364
|
+
return_type = opts[:debug_return_type]
|
|
365
|
+
|
|
366
|
+
# auth_names
|
|
367
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
368
|
+
|
|
369
|
+
new_options = opts.merge(
|
|
370
|
+
:operation => :create_case_jira_issue,
|
|
371
|
+
:header_params => header_params,
|
|
372
|
+
:query_params => query_params,
|
|
373
|
+
:form_params => form_params,
|
|
374
|
+
:body => post_body,
|
|
375
|
+
:auth_names => auth_names,
|
|
376
|
+
:return_type => return_type,
|
|
377
|
+
:api_version => "V2"
|
|
378
|
+
)
|
|
379
|
+
|
|
380
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
381
|
+
if @api_client.config.debugging
|
|
382
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#create_case_jira_issue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
383
|
+
end
|
|
384
|
+
return data, status_code, headers
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# Create investigation notebook for case.
|
|
388
|
+
#
|
|
389
|
+
# @see #create_case_notebook_with_http_info
|
|
390
|
+
def create_case_notebook(case_id, body, opts = {})
|
|
391
|
+
create_case_notebook_with_http_info(case_id, body, opts)
|
|
392
|
+
nil
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Create investigation notebook for case.
|
|
396
|
+
#
|
|
397
|
+
# Create a new investigation notebook and link it to a case
|
|
398
|
+
#
|
|
399
|
+
# @param case_id [String] Case's UUID or key
|
|
400
|
+
# @param body [NotebookCreateRequest] Notebook creation request
|
|
401
|
+
# @param opts [Hash] the optional parameters
|
|
402
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
403
|
+
def create_case_notebook_with_http_info(case_id, body, opts = {})
|
|
404
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_case_notebook".to_sym]
|
|
405
|
+
if unstable_enabled
|
|
406
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_notebook")
|
|
407
|
+
else
|
|
408
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_notebook"))
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
if @api_client.config.debugging
|
|
412
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_notebook ...'
|
|
413
|
+
end
|
|
414
|
+
# verify the required parameter 'case_id' is set
|
|
415
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
416
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.create_case_notebook"
|
|
417
|
+
end
|
|
418
|
+
# verify the required parameter 'body' is set
|
|
419
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
420
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.create_case_notebook"
|
|
421
|
+
end
|
|
422
|
+
# resource path
|
|
423
|
+
local_var_path = '/api/v2/cases/{case_id}/relationships/notebook'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
424
|
+
|
|
425
|
+
# query parameters
|
|
426
|
+
query_params = opts[:query_params] || {}
|
|
427
|
+
|
|
428
|
+
# header parameters
|
|
429
|
+
header_params = opts[:header_params] || {}
|
|
430
|
+
# HTTP header 'Accept' (if needed)
|
|
431
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
432
|
+
# HTTP header 'Content-Type'
|
|
433
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
434
|
+
|
|
435
|
+
# form parameters
|
|
436
|
+
form_params = opts[:form_params] || {}
|
|
437
|
+
|
|
438
|
+
# http body (model)
|
|
439
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
440
|
+
|
|
441
|
+
# return_type
|
|
442
|
+
return_type = opts[:debug_return_type]
|
|
443
|
+
|
|
444
|
+
# auth_names
|
|
445
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
446
|
+
|
|
447
|
+
new_options = opts.merge(
|
|
448
|
+
:operation => :create_case_notebook,
|
|
449
|
+
:header_params => header_params,
|
|
450
|
+
:query_params => query_params,
|
|
451
|
+
:form_params => form_params,
|
|
452
|
+
:body => post_body,
|
|
453
|
+
:auth_names => auth_names,
|
|
454
|
+
:return_type => return_type,
|
|
455
|
+
:api_version => "V2"
|
|
456
|
+
)
|
|
457
|
+
|
|
458
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
459
|
+
if @api_client.config.debugging
|
|
460
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#create_case_notebook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
461
|
+
end
|
|
462
|
+
return data, status_code, headers
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# Create ServiceNow ticket for case.
|
|
466
|
+
#
|
|
467
|
+
# @see #create_case_service_now_ticket_with_http_info
|
|
468
|
+
def create_case_service_now_ticket(case_id, body, opts = {})
|
|
469
|
+
create_case_service_now_ticket_with_http_info(case_id, body, opts)
|
|
470
|
+
nil
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Create ServiceNow ticket for case.
|
|
474
|
+
#
|
|
475
|
+
# Create a new ServiceNow incident ticket and link it to a case
|
|
476
|
+
#
|
|
477
|
+
# @param case_id [String] Case's UUID or key
|
|
478
|
+
# @param body [ServiceNowTicketCreateRequest] ServiceNow ticket creation request
|
|
479
|
+
# @param opts [Hash] the optional parameters
|
|
480
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
481
|
+
def create_case_service_now_ticket_with_http_info(case_id, body, opts = {})
|
|
482
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_case_service_now_ticket".to_sym]
|
|
483
|
+
if unstable_enabled
|
|
484
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_service_now_ticket")
|
|
485
|
+
else
|
|
486
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_service_now_ticket"))
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
if @api_client.config.debugging
|
|
490
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_service_now_ticket ...'
|
|
491
|
+
end
|
|
492
|
+
# verify the required parameter 'case_id' is set
|
|
493
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
494
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.create_case_service_now_ticket"
|
|
495
|
+
end
|
|
496
|
+
# verify the required parameter 'body' is set
|
|
497
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
498
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.create_case_service_now_ticket"
|
|
499
|
+
end
|
|
500
|
+
# resource path
|
|
501
|
+
local_var_path = '/api/v2/cases/{case_id}/relationships/servicenow_tickets'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
502
|
+
|
|
503
|
+
# query parameters
|
|
504
|
+
query_params = opts[:query_params] || {}
|
|
505
|
+
|
|
506
|
+
# header parameters
|
|
507
|
+
header_params = opts[:header_params] || {}
|
|
508
|
+
# HTTP header 'Accept' (if needed)
|
|
509
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
510
|
+
# HTTP header 'Content-Type'
|
|
511
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
512
|
+
|
|
513
|
+
# form parameters
|
|
514
|
+
form_params = opts[:form_params] || {}
|
|
515
|
+
|
|
516
|
+
# http body (model)
|
|
517
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
518
|
+
|
|
519
|
+
# return_type
|
|
520
|
+
return_type = opts[:debug_return_type]
|
|
521
|
+
|
|
522
|
+
# auth_names
|
|
523
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
524
|
+
|
|
525
|
+
new_options = opts.merge(
|
|
526
|
+
:operation => :create_case_service_now_ticket,
|
|
527
|
+
:header_params => header_params,
|
|
528
|
+
:query_params => query_params,
|
|
529
|
+
:form_params => form_params,
|
|
530
|
+
:body => post_body,
|
|
531
|
+
:auth_names => auth_names,
|
|
532
|
+
:return_type => return_type,
|
|
533
|
+
:api_version => "V2"
|
|
534
|
+
)
|
|
535
|
+
|
|
536
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
537
|
+
if @api_client.config.debugging
|
|
538
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#create_case_service_now_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
539
|
+
end
|
|
540
|
+
return data, status_code, headers
|
|
541
|
+
end
|
|
542
|
+
|
|
309
543
|
# Create a project.
|
|
310
544
|
#
|
|
311
545
|
# @see #create_project_with_http_info
|
|
@@ -373,6 +607,78 @@ module DatadogAPIClient::V2
|
|
|
373
607
|
return data, status_code, headers
|
|
374
608
|
end
|
|
375
609
|
|
|
610
|
+
# Create a notification rule.
|
|
611
|
+
#
|
|
612
|
+
# @see #create_project_notification_rule_with_http_info
|
|
613
|
+
def create_project_notification_rule(project_id, body, opts = {})
|
|
614
|
+
data, _status_code, _headers = create_project_notification_rule_with_http_info(project_id, body, opts)
|
|
615
|
+
data
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
# Create a notification rule.
|
|
619
|
+
#
|
|
620
|
+
# Create a notification rule for a project.
|
|
621
|
+
#
|
|
622
|
+
# @param project_id [String] Project UUID
|
|
623
|
+
# @param body [CaseNotificationRuleCreateRequest] Notification rule payload
|
|
624
|
+
# @param opts [Hash] the optional parameters
|
|
625
|
+
# @return [Array<(CaseNotificationRuleResponse, Integer, Hash)>] CaseNotificationRuleResponse data, response status code and response headers
|
|
626
|
+
def create_project_notification_rule_with_http_info(project_id, body, opts = {})
|
|
627
|
+
|
|
628
|
+
if @api_client.config.debugging
|
|
629
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_project_notification_rule ...'
|
|
630
|
+
end
|
|
631
|
+
# verify the required parameter 'project_id' is set
|
|
632
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
633
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling CaseManagementAPI.create_project_notification_rule"
|
|
634
|
+
end
|
|
635
|
+
# verify the required parameter 'body' is set
|
|
636
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
637
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.create_project_notification_rule"
|
|
638
|
+
end
|
|
639
|
+
# resource path
|
|
640
|
+
local_var_path = '/api/v2/cases/projects/{project_id}/notification_rules'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
641
|
+
|
|
642
|
+
# query parameters
|
|
643
|
+
query_params = opts[:query_params] || {}
|
|
644
|
+
|
|
645
|
+
# header parameters
|
|
646
|
+
header_params = opts[:header_params] || {}
|
|
647
|
+
# HTTP header 'Accept' (if needed)
|
|
648
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
649
|
+
# HTTP header 'Content-Type'
|
|
650
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
651
|
+
|
|
652
|
+
# form parameters
|
|
653
|
+
form_params = opts[:form_params] || {}
|
|
654
|
+
|
|
655
|
+
# http body (model)
|
|
656
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
657
|
+
|
|
658
|
+
# return_type
|
|
659
|
+
return_type = opts[:debug_return_type] || 'CaseNotificationRuleResponse'
|
|
660
|
+
|
|
661
|
+
# auth_names
|
|
662
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
663
|
+
|
|
664
|
+
new_options = opts.merge(
|
|
665
|
+
:operation => :create_project_notification_rule,
|
|
666
|
+
:header_params => header_params,
|
|
667
|
+
:query_params => query_params,
|
|
668
|
+
:form_params => form_params,
|
|
669
|
+
:body => post_body,
|
|
670
|
+
:auth_names => auth_names,
|
|
671
|
+
:return_type => return_type,
|
|
672
|
+
:api_version => "V2"
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
676
|
+
if @api_client.config.debugging
|
|
677
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#create_project_notification_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
+
end
|
|
679
|
+
return data, status_code, headers
|
|
680
|
+
end
|
|
681
|
+
|
|
376
682
|
# Delete case comment.
|
|
377
683
|
#
|
|
378
684
|
# @see #delete_case_comment_with_http_info
|
|
@@ -578,32 +884,368 @@ module DatadogAPIClient::V2
|
|
|
578
884
|
return data, status_code, headers
|
|
579
885
|
end
|
|
580
886
|
|
|
581
|
-
#
|
|
887
|
+
# Delete a notification rule.
|
|
888
|
+
#
|
|
889
|
+
# @see #delete_project_notification_rule_with_http_info
|
|
890
|
+
def delete_project_notification_rule(project_id, notification_rule_id, opts = {})
|
|
891
|
+
delete_project_notification_rule_with_http_info(project_id, notification_rule_id, opts)
|
|
892
|
+
nil
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
# Delete a notification rule.
|
|
896
|
+
#
|
|
897
|
+
# Delete a notification rule using the notification rule's `id`.
|
|
898
|
+
#
|
|
899
|
+
# @param project_id [String] Project UUID
|
|
900
|
+
# @param notification_rule_id [String] Notification Rule UUID
|
|
901
|
+
# @param opts [Hash] the optional parameters
|
|
902
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
903
|
+
def delete_project_notification_rule_with_http_info(project_id, notification_rule_id, opts = {})
|
|
904
|
+
|
|
905
|
+
if @api_client.config.debugging
|
|
906
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.delete_project_notification_rule ...'
|
|
907
|
+
end
|
|
908
|
+
# verify the required parameter 'project_id' is set
|
|
909
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
910
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling CaseManagementAPI.delete_project_notification_rule"
|
|
911
|
+
end
|
|
912
|
+
# verify the required parameter 'notification_rule_id' is set
|
|
913
|
+
if @api_client.config.client_side_validation && notification_rule_id.nil?
|
|
914
|
+
fail ArgumentError, "Missing the required parameter 'notification_rule_id' when calling CaseManagementAPI.delete_project_notification_rule"
|
|
915
|
+
end
|
|
916
|
+
# resource path
|
|
917
|
+
local_var_path = '/api/v2/cases/projects/{project_id}/notification_rules/{notification_rule_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')).sub('{notification_rule_id}', CGI.escape(notification_rule_id.to_s).gsub('%2F', '/'))
|
|
918
|
+
|
|
919
|
+
# query parameters
|
|
920
|
+
query_params = opts[:query_params] || {}
|
|
921
|
+
|
|
922
|
+
# header parameters
|
|
923
|
+
header_params = opts[:header_params] || {}
|
|
924
|
+
# HTTP header 'Accept' (if needed)
|
|
925
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
926
|
+
|
|
927
|
+
# form parameters
|
|
928
|
+
form_params = opts[:form_params] || {}
|
|
929
|
+
|
|
930
|
+
# http body (model)
|
|
931
|
+
post_body = opts[:debug_body]
|
|
932
|
+
|
|
933
|
+
# return_type
|
|
934
|
+
return_type = opts[:debug_return_type]
|
|
935
|
+
|
|
936
|
+
# auth_names
|
|
937
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
938
|
+
|
|
939
|
+
new_options = opts.merge(
|
|
940
|
+
:operation => :delete_project_notification_rule,
|
|
941
|
+
:header_params => header_params,
|
|
942
|
+
:query_params => query_params,
|
|
943
|
+
:form_params => form_params,
|
|
944
|
+
:body => post_body,
|
|
945
|
+
:auth_names => auth_names,
|
|
946
|
+
:return_type => return_type,
|
|
947
|
+
:api_version => "V2"
|
|
948
|
+
)
|
|
949
|
+
|
|
950
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
951
|
+
if @api_client.config.debugging
|
|
952
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#delete_project_notification_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
953
|
+
end
|
|
954
|
+
return data, status_code, headers
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
# Get the details of a case.
|
|
958
|
+
#
|
|
959
|
+
# @see #get_case_with_http_info
|
|
960
|
+
def get_case(case_id, opts = {})
|
|
961
|
+
data, _status_code, _headers = get_case_with_http_info(case_id, opts)
|
|
962
|
+
data
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# Get the details of a case.
|
|
966
|
+
#
|
|
967
|
+
# Get the details of case by `case_id`
|
|
968
|
+
#
|
|
969
|
+
# @param case_id [String] Case's UUID or key
|
|
970
|
+
# @param opts [Hash] the optional parameters
|
|
971
|
+
# @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers
|
|
972
|
+
def get_case_with_http_info(case_id, opts = {})
|
|
973
|
+
|
|
974
|
+
if @api_client.config.debugging
|
|
975
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.get_case ...'
|
|
976
|
+
end
|
|
977
|
+
# verify the required parameter 'case_id' is set
|
|
978
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
979
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.get_case"
|
|
980
|
+
end
|
|
981
|
+
# resource path
|
|
982
|
+
local_var_path = '/api/v2/cases/{case_id}'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
983
|
+
|
|
984
|
+
# query parameters
|
|
985
|
+
query_params = opts[:query_params] || {}
|
|
986
|
+
|
|
987
|
+
# header parameters
|
|
988
|
+
header_params = opts[:header_params] || {}
|
|
989
|
+
# HTTP header 'Accept' (if needed)
|
|
990
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
991
|
+
|
|
992
|
+
# form parameters
|
|
993
|
+
form_params = opts[:form_params] || {}
|
|
994
|
+
|
|
995
|
+
# http body (model)
|
|
996
|
+
post_body = opts[:debug_body]
|
|
997
|
+
|
|
998
|
+
# return_type
|
|
999
|
+
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
1000
|
+
|
|
1001
|
+
# auth_names
|
|
1002
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1003
|
+
|
|
1004
|
+
new_options = opts.merge(
|
|
1005
|
+
:operation => :get_case,
|
|
1006
|
+
:header_params => header_params,
|
|
1007
|
+
:query_params => query_params,
|
|
1008
|
+
:form_params => form_params,
|
|
1009
|
+
:body => post_body,
|
|
1010
|
+
:auth_names => auth_names,
|
|
1011
|
+
:return_type => return_type,
|
|
1012
|
+
:api_version => "V2"
|
|
1013
|
+
)
|
|
1014
|
+
|
|
1015
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1016
|
+
if @api_client.config.debugging
|
|
1017
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#get_case\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1018
|
+
end
|
|
1019
|
+
return data, status_code, headers
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
# Get the details of a project.
|
|
1023
|
+
#
|
|
1024
|
+
# @see #get_project_with_http_info
|
|
1025
|
+
def get_project(project_id, opts = {})
|
|
1026
|
+
data, _status_code, _headers = get_project_with_http_info(project_id, opts)
|
|
1027
|
+
data
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
# Get the details of a project.
|
|
1031
|
+
#
|
|
1032
|
+
# Get the details of a project by `project_id`.
|
|
1033
|
+
#
|
|
1034
|
+
# @param project_id [String] Project UUID
|
|
1035
|
+
# @param opts [Hash] the optional parameters
|
|
1036
|
+
# @return [Array<(ProjectResponse, Integer, Hash)>] ProjectResponse data, response status code and response headers
|
|
1037
|
+
def get_project_with_http_info(project_id, opts = {})
|
|
1038
|
+
|
|
1039
|
+
if @api_client.config.debugging
|
|
1040
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.get_project ...'
|
|
1041
|
+
end
|
|
1042
|
+
# verify the required parameter 'project_id' is set
|
|
1043
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1044
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling CaseManagementAPI.get_project"
|
|
1045
|
+
end
|
|
1046
|
+
# resource path
|
|
1047
|
+
local_var_path = '/api/v2/cases/projects/{project_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
1048
|
+
|
|
1049
|
+
# query parameters
|
|
1050
|
+
query_params = opts[:query_params] || {}
|
|
1051
|
+
|
|
1052
|
+
# header parameters
|
|
1053
|
+
header_params = opts[:header_params] || {}
|
|
1054
|
+
# HTTP header 'Accept' (if needed)
|
|
1055
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1056
|
+
|
|
1057
|
+
# form parameters
|
|
1058
|
+
form_params = opts[:form_params] || {}
|
|
1059
|
+
|
|
1060
|
+
# http body (model)
|
|
1061
|
+
post_body = opts[:debug_body]
|
|
1062
|
+
|
|
1063
|
+
# return_type
|
|
1064
|
+
return_type = opts[:debug_return_type] || 'ProjectResponse'
|
|
1065
|
+
|
|
1066
|
+
# auth_names
|
|
1067
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1068
|
+
|
|
1069
|
+
new_options = opts.merge(
|
|
1070
|
+
:operation => :get_project,
|
|
1071
|
+
:header_params => header_params,
|
|
1072
|
+
:query_params => query_params,
|
|
1073
|
+
:form_params => form_params,
|
|
1074
|
+
:body => post_body,
|
|
1075
|
+
:auth_names => auth_names,
|
|
1076
|
+
:return_type => return_type,
|
|
1077
|
+
:api_version => "V2"
|
|
1078
|
+
)
|
|
1079
|
+
|
|
1080
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1081
|
+
if @api_client.config.debugging
|
|
1082
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#get_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1083
|
+
end
|
|
1084
|
+
return data, status_code, headers
|
|
1085
|
+
end
|
|
1086
|
+
|
|
1087
|
+
# Get notification rules.
|
|
1088
|
+
#
|
|
1089
|
+
# @see #get_project_notification_rules_with_http_info
|
|
1090
|
+
def get_project_notification_rules(project_id, opts = {})
|
|
1091
|
+
data, _status_code, _headers = get_project_notification_rules_with_http_info(project_id, opts)
|
|
1092
|
+
data
|
|
1093
|
+
end
|
|
1094
|
+
|
|
1095
|
+
# Get notification rules.
|
|
1096
|
+
#
|
|
1097
|
+
# Get all notification rules for a project.
|
|
1098
|
+
#
|
|
1099
|
+
# @param project_id [String] Project UUID
|
|
1100
|
+
# @param opts [Hash] the optional parameters
|
|
1101
|
+
# @return [Array<(CaseNotificationRulesResponse, Integer, Hash)>] CaseNotificationRulesResponse data, response status code and response headers
|
|
1102
|
+
def get_project_notification_rules_with_http_info(project_id, opts = {})
|
|
1103
|
+
|
|
1104
|
+
if @api_client.config.debugging
|
|
1105
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.get_project_notification_rules ...'
|
|
1106
|
+
end
|
|
1107
|
+
# verify the required parameter 'project_id' is set
|
|
1108
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1109
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling CaseManagementAPI.get_project_notification_rules"
|
|
1110
|
+
end
|
|
1111
|
+
# resource path
|
|
1112
|
+
local_var_path = '/api/v2/cases/projects/{project_id}/notification_rules'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
1113
|
+
|
|
1114
|
+
# query parameters
|
|
1115
|
+
query_params = opts[:query_params] || {}
|
|
1116
|
+
|
|
1117
|
+
# header parameters
|
|
1118
|
+
header_params = opts[:header_params] || {}
|
|
1119
|
+
# HTTP header 'Accept' (if needed)
|
|
1120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1121
|
+
|
|
1122
|
+
# form parameters
|
|
1123
|
+
form_params = opts[:form_params] || {}
|
|
1124
|
+
|
|
1125
|
+
# http body (model)
|
|
1126
|
+
post_body = opts[:debug_body]
|
|
1127
|
+
|
|
1128
|
+
# return_type
|
|
1129
|
+
return_type = opts[:debug_return_type] || 'CaseNotificationRulesResponse'
|
|
1130
|
+
|
|
1131
|
+
# auth_names
|
|
1132
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1133
|
+
|
|
1134
|
+
new_options = opts.merge(
|
|
1135
|
+
:operation => :get_project_notification_rules,
|
|
1136
|
+
:header_params => header_params,
|
|
1137
|
+
:query_params => query_params,
|
|
1138
|
+
:form_params => form_params,
|
|
1139
|
+
:body => post_body,
|
|
1140
|
+
:auth_names => auth_names,
|
|
1141
|
+
:return_type => return_type,
|
|
1142
|
+
:api_version => "V2"
|
|
1143
|
+
)
|
|
1144
|
+
|
|
1145
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1146
|
+
if @api_client.config.debugging
|
|
1147
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#get_project_notification_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1148
|
+
end
|
|
1149
|
+
return data, status_code, headers
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
# Get all projects.
|
|
1153
|
+
#
|
|
1154
|
+
# @see #get_projects_with_http_info
|
|
1155
|
+
def get_projects(opts = {})
|
|
1156
|
+
data, _status_code, _headers = get_projects_with_http_info(opts)
|
|
1157
|
+
data
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
# Get all projects.
|
|
1161
|
+
#
|
|
1162
|
+
# Get all projects.
|
|
1163
|
+
#
|
|
1164
|
+
# @param opts [Hash] the optional parameters
|
|
1165
|
+
# @return [Array<(ProjectsResponse, Integer, Hash)>] ProjectsResponse data, response status code and response headers
|
|
1166
|
+
def get_projects_with_http_info(opts = {})
|
|
1167
|
+
|
|
1168
|
+
if @api_client.config.debugging
|
|
1169
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.get_projects ...'
|
|
1170
|
+
end
|
|
1171
|
+
# resource path
|
|
1172
|
+
local_var_path = '/api/v2/cases/projects'
|
|
1173
|
+
|
|
1174
|
+
# query parameters
|
|
1175
|
+
query_params = opts[:query_params] || {}
|
|
1176
|
+
|
|
1177
|
+
# header parameters
|
|
1178
|
+
header_params = opts[:header_params] || {}
|
|
1179
|
+
# HTTP header 'Accept' (if needed)
|
|
1180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1181
|
+
|
|
1182
|
+
# form parameters
|
|
1183
|
+
form_params = opts[:form_params] || {}
|
|
1184
|
+
|
|
1185
|
+
# http body (model)
|
|
1186
|
+
post_body = opts[:debug_body]
|
|
1187
|
+
|
|
1188
|
+
# return_type
|
|
1189
|
+
return_type = opts[:debug_return_type] || 'ProjectsResponse'
|
|
1190
|
+
|
|
1191
|
+
# auth_names
|
|
1192
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1193
|
+
|
|
1194
|
+
new_options = opts.merge(
|
|
1195
|
+
:operation => :get_projects,
|
|
1196
|
+
:header_params => header_params,
|
|
1197
|
+
:query_params => query_params,
|
|
1198
|
+
:form_params => form_params,
|
|
1199
|
+
:body => post_body,
|
|
1200
|
+
:auth_names => auth_names,
|
|
1201
|
+
:return_type => return_type,
|
|
1202
|
+
:api_version => "V2"
|
|
1203
|
+
)
|
|
1204
|
+
|
|
1205
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1206
|
+
if @api_client.config.debugging
|
|
1207
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#get_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1208
|
+
end
|
|
1209
|
+
return data, status_code, headers
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
# Link incident to case.
|
|
582
1213
|
#
|
|
583
|
-
# @see #
|
|
584
|
-
def
|
|
585
|
-
data, _status_code, _headers =
|
|
1214
|
+
# @see #link_incident_with_http_info
|
|
1215
|
+
def link_incident(case_id, body, opts = {})
|
|
1216
|
+
data, _status_code, _headers = link_incident_with_http_info(case_id, body, opts)
|
|
586
1217
|
data
|
|
587
1218
|
end
|
|
588
1219
|
|
|
589
|
-
#
|
|
1220
|
+
# Link incident to case.
|
|
590
1221
|
#
|
|
591
|
-
#
|
|
1222
|
+
# Link an incident to a case
|
|
592
1223
|
#
|
|
593
1224
|
# @param case_id [String] Case's UUID or key
|
|
1225
|
+
# @param body [RelationshipToIncidentRequest] Incident link request
|
|
594
1226
|
# @param opts [Hash] the optional parameters
|
|
595
1227
|
# @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers
|
|
596
|
-
def
|
|
1228
|
+
def link_incident_with_http_info(case_id, body, opts = {})
|
|
1229
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.link_incident".to_sym]
|
|
1230
|
+
if unstable_enabled
|
|
1231
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.link_incident")
|
|
1232
|
+
else
|
|
1233
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.link_incident"))
|
|
1234
|
+
end
|
|
597
1235
|
|
|
598
1236
|
if @api_client.config.debugging
|
|
599
|
-
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.
|
|
1237
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.link_incident ...'
|
|
600
1238
|
end
|
|
601
1239
|
# verify the required parameter 'case_id' is set
|
|
602
1240
|
if @api_client.config.client_side_validation && case_id.nil?
|
|
603
|
-
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.
|
|
1241
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.link_incident"
|
|
1242
|
+
end
|
|
1243
|
+
# verify the required parameter 'body' is set
|
|
1244
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1245
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.link_incident"
|
|
604
1246
|
end
|
|
605
1247
|
# resource path
|
|
606
|
-
local_var_path = '/api/v2/cases/{case_id}'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
1248
|
+
local_var_path = '/api/v2/cases/{case_id}/relationships/incidents'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
607
1249
|
|
|
608
1250
|
# query parameters
|
|
609
1251
|
query_params = opts[:query_params] || {}
|
|
@@ -612,12 +1254,14 @@ module DatadogAPIClient::V2
|
|
|
612
1254
|
header_params = opts[:header_params] || {}
|
|
613
1255
|
# HTTP header 'Accept' (if needed)
|
|
614
1256
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1257
|
+
# HTTP header 'Content-Type'
|
|
1258
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
615
1259
|
|
|
616
1260
|
# form parameters
|
|
617
1261
|
form_params = opts[:form_params] || {}
|
|
618
1262
|
|
|
619
1263
|
# http body (model)
|
|
620
|
-
post_body = opts[:debug_body]
|
|
1264
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
621
1265
|
|
|
622
1266
|
# return_type
|
|
623
1267
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
@@ -626,7 +1270,7 @@ module DatadogAPIClient::V2
|
|
|
626
1270
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
627
1271
|
|
|
628
1272
|
new_options = opts.merge(
|
|
629
|
-
:operation => :
|
|
1273
|
+
:operation => :link_incident,
|
|
630
1274
|
:header_params => header_params,
|
|
631
1275
|
:query_params => query_params,
|
|
632
1276
|
:form_params => form_params,
|
|
@@ -636,39 +1280,50 @@ module DatadogAPIClient::V2
|
|
|
636
1280
|
:api_version => "V2"
|
|
637
1281
|
)
|
|
638
1282
|
|
|
639
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
1283
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
640
1284
|
if @api_client.config.debugging
|
|
641
|
-
@api_client.config.logger.debug "API called: CaseManagementAPI#
|
|
1285
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#link_incident\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
642
1286
|
end
|
|
643
1287
|
return data, status_code, headers
|
|
644
1288
|
end
|
|
645
1289
|
|
|
646
|
-
#
|
|
1290
|
+
# Link existing Jira issue to case.
|
|
647
1291
|
#
|
|
648
|
-
# @see #
|
|
649
|
-
def
|
|
650
|
-
|
|
651
|
-
|
|
1292
|
+
# @see #link_jira_issue_to_case_with_http_info
|
|
1293
|
+
def link_jira_issue_to_case(case_id, body, opts = {})
|
|
1294
|
+
link_jira_issue_to_case_with_http_info(case_id, body, opts)
|
|
1295
|
+
nil
|
|
652
1296
|
end
|
|
653
1297
|
|
|
654
|
-
#
|
|
1298
|
+
# Link existing Jira issue to case.
|
|
655
1299
|
#
|
|
656
|
-
#
|
|
1300
|
+
# Link an existing Jira issue to a case
|
|
657
1301
|
#
|
|
658
|
-
# @param
|
|
1302
|
+
# @param case_id [String] Case's UUID or key
|
|
1303
|
+
# @param body [JiraIssueLinkRequest] Jira issue link request
|
|
659
1304
|
# @param opts [Hash] the optional parameters
|
|
660
|
-
# @return [Array<(
|
|
661
|
-
def
|
|
1305
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1306
|
+
def link_jira_issue_to_case_with_http_info(case_id, body, opts = {})
|
|
1307
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.link_jira_issue_to_case".to_sym]
|
|
1308
|
+
if unstable_enabled
|
|
1309
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.link_jira_issue_to_case")
|
|
1310
|
+
else
|
|
1311
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.link_jira_issue_to_case"))
|
|
1312
|
+
end
|
|
662
1313
|
|
|
663
1314
|
if @api_client.config.debugging
|
|
664
|
-
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.
|
|
1315
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.link_jira_issue_to_case ...'
|
|
665
1316
|
end
|
|
666
|
-
# verify the required parameter '
|
|
667
|
-
if @api_client.config.client_side_validation &&
|
|
668
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1317
|
+
# verify the required parameter 'case_id' is set
|
|
1318
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
1319
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.link_jira_issue_to_case"
|
|
1320
|
+
end
|
|
1321
|
+
# verify the required parameter 'body' is set
|
|
1322
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1323
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.link_jira_issue_to_case"
|
|
669
1324
|
end
|
|
670
1325
|
# resource path
|
|
671
|
-
local_var_path = '/api/v2/cases/
|
|
1326
|
+
local_var_path = '/api/v2/cases/{case_id}/relationships/jira_issues'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
672
1327
|
|
|
673
1328
|
# query parameters
|
|
674
1329
|
query_params = opts[:query_params] || {}
|
|
@@ -676,22 +1331,24 @@ module DatadogAPIClient::V2
|
|
|
676
1331
|
# header parameters
|
|
677
1332
|
header_params = opts[:header_params] || {}
|
|
678
1333
|
# HTTP header 'Accept' (if needed)
|
|
679
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
1334
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1335
|
+
# HTTP header 'Content-Type'
|
|
1336
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
680
1337
|
|
|
681
1338
|
# form parameters
|
|
682
1339
|
form_params = opts[:form_params] || {}
|
|
683
1340
|
|
|
684
1341
|
# http body (model)
|
|
685
|
-
post_body = opts[:debug_body]
|
|
1342
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
686
1343
|
|
|
687
1344
|
# return_type
|
|
688
|
-
return_type = opts[:debug_return_type]
|
|
1345
|
+
return_type = opts[:debug_return_type]
|
|
689
1346
|
|
|
690
1347
|
# auth_names
|
|
691
1348
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
692
1349
|
|
|
693
1350
|
new_options = opts.merge(
|
|
694
|
-
:operation => :
|
|
1351
|
+
:operation => :link_jira_issue_to_case,
|
|
695
1352
|
:header_params => header_params,
|
|
696
1353
|
:query_params => query_params,
|
|
697
1354
|
:form_params => form_params,
|
|
@@ -701,34 +1358,50 @@ module DatadogAPIClient::V2
|
|
|
701
1358
|
:api_version => "V2"
|
|
702
1359
|
)
|
|
703
1360
|
|
|
704
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
1361
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
705
1362
|
if @api_client.config.debugging
|
|
706
|
-
@api_client.config.logger.debug "API called: CaseManagementAPI#
|
|
1363
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#link_jira_issue_to_case\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
707
1364
|
end
|
|
708
1365
|
return data, status_code, headers
|
|
709
1366
|
end
|
|
710
1367
|
|
|
711
|
-
#
|
|
1368
|
+
# Update case project.
|
|
712
1369
|
#
|
|
713
|
-
# @see #
|
|
714
|
-
def
|
|
715
|
-
data, _status_code, _headers =
|
|
1370
|
+
# @see #move_case_to_project_with_http_info
|
|
1371
|
+
def move_case_to_project(case_id, body, opts = {})
|
|
1372
|
+
data, _status_code, _headers = move_case_to_project_with_http_info(case_id, body, opts)
|
|
716
1373
|
data
|
|
717
1374
|
end
|
|
718
1375
|
|
|
719
|
-
#
|
|
1376
|
+
# Update case project.
|
|
720
1377
|
#
|
|
721
|
-
#
|
|
1378
|
+
# Update the project associated with a case
|
|
722
1379
|
#
|
|
1380
|
+
# @param case_id [String] Case's UUID or key
|
|
1381
|
+
# @param body [ProjectRelationship] Project update request
|
|
723
1382
|
# @param opts [Hash] the optional parameters
|
|
724
|
-
# @return [Array<(
|
|
725
|
-
def
|
|
1383
|
+
# @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers
|
|
1384
|
+
def move_case_to_project_with_http_info(case_id, body, opts = {})
|
|
1385
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.move_case_to_project".to_sym]
|
|
1386
|
+
if unstable_enabled
|
|
1387
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.move_case_to_project")
|
|
1388
|
+
else
|
|
1389
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.move_case_to_project"))
|
|
1390
|
+
end
|
|
726
1391
|
|
|
727
1392
|
if @api_client.config.debugging
|
|
728
|
-
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.
|
|
1393
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.move_case_to_project ...'
|
|
1394
|
+
end
|
|
1395
|
+
# verify the required parameter 'case_id' is set
|
|
1396
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
1397
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.move_case_to_project"
|
|
1398
|
+
end
|
|
1399
|
+
# verify the required parameter 'body' is set
|
|
1400
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1401
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.move_case_to_project"
|
|
729
1402
|
end
|
|
730
1403
|
# resource path
|
|
731
|
-
local_var_path = '/api/v2/cases/
|
|
1404
|
+
local_var_path = '/api/v2/cases/{case_id}/relationships/project'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
732
1405
|
|
|
733
1406
|
# query parameters
|
|
734
1407
|
query_params = opts[:query_params] || {}
|
|
@@ -737,21 +1410,23 @@ module DatadogAPIClient::V2
|
|
|
737
1410
|
header_params = opts[:header_params] || {}
|
|
738
1411
|
# HTTP header 'Accept' (if needed)
|
|
739
1412
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1413
|
+
# HTTP header 'Content-Type'
|
|
1414
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
740
1415
|
|
|
741
1416
|
# form parameters
|
|
742
1417
|
form_params = opts[:form_params] || {}
|
|
743
1418
|
|
|
744
1419
|
# http body (model)
|
|
745
|
-
post_body = opts[:debug_body]
|
|
1420
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
746
1421
|
|
|
747
1422
|
# return_type
|
|
748
|
-
return_type = opts[:debug_return_type] || '
|
|
1423
|
+
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
749
1424
|
|
|
750
1425
|
# auth_names
|
|
751
1426
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
752
1427
|
|
|
753
1428
|
new_options = opts.merge(
|
|
754
|
-
:operation => :
|
|
1429
|
+
:operation => :move_case_to_project,
|
|
755
1430
|
:header_params => header_params,
|
|
756
1431
|
:query_params => query_params,
|
|
757
1432
|
:form_params => form_params,
|
|
@@ -761,9 +1436,9 @@ module DatadogAPIClient::V2
|
|
|
761
1436
|
:api_version => "V2"
|
|
762
1437
|
)
|
|
763
1438
|
|
|
764
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
1439
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
765
1440
|
if @api_client.config.debugging
|
|
766
|
-
@api_client.config.logger.debug "API called: CaseManagementAPI#
|
|
1441
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#move_case_to_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
767
1442
|
end
|
|
768
1443
|
return data, status_code, headers
|
|
769
1444
|
end
|
|
@@ -1008,6 +1683,77 @@ module DatadogAPIClient::V2
|
|
|
1008
1683
|
return data, status_code, headers
|
|
1009
1684
|
end
|
|
1010
1685
|
|
|
1686
|
+
# Remove Jira issue link from case.
|
|
1687
|
+
#
|
|
1688
|
+
# @see #unlink_jira_issue_with_http_info
|
|
1689
|
+
def unlink_jira_issue(case_id, opts = {})
|
|
1690
|
+
unlink_jira_issue_with_http_info(case_id, opts)
|
|
1691
|
+
nil
|
|
1692
|
+
end
|
|
1693
|
+
|
|
1694
|
+
# Remove Jira issue link from case.
|
|
1695
|
+
#
|
|
1696
|
+
# Remove the link between a Jira issue and a case
|
|
1697
|
+
#
|
|
1698
|
+
# @param case_id [String] Case's UUID or key
|
|
1699
|
+
# @param opts [Hash] the optional parameters
|
|
1700
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1701
|
+
def unlink_jira_issue_with_http_info(case_id, opts = {})
|
|
1702
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.unlink_jira_issue".to_sym]
|
|
1703
|
+
if unstable_enabled
|
|
1704
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.unlink_jira_issue")
|
|
1705
|
+
else
|
|
1706
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.unlink_jira_issue"))
|
|
1707
|
+
end
|
|
1708
|
+
|
|
1709
|
+
if @api_client.config.debugging
|
|
1710
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.unlink_jira_issue ...'
|
|
1711
|
+
end
|
|
1712
|
+
# verify the required parameter 'case_id' is set
|
|
1713
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
1714
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.unlink_jira_issue"
|
|
1715
|
+
end
|
|
1716
|
+
# resource path
|
|
1717
|
+
local_var_path = '/api/v2/cases/{case_id}/relationships/jira_issues'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
1718
|
+
|
|
1719
|
+
# query parameters
|
|
1720
|
+
query_params = opts[:query_params] || {}
|
|
1721
|
+
|
|
1722
|
+
# header parameters
|
|
1723
|
+
header_params = opts[:header_params] || {}
|
|
1724
|
+
# HTTP header 'Accept' (if needed)
|
|
1725
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1726
|
+
|
|
1727
|
+
# form parameters
|
|
1728
|
+
form_params = opts[:form_params] || {}
|
|
1729
|
+
|
|
1730
|
+
# http body (model)
|
|
1731
|
+
post_body = opts[:debug_body]
|
|
1732
|
+
|
|
1733
|
+
# return_type
|
|
1734
|
+
return_type = opts[:debug_return_type]
|
|
1735
|
+
|
|
1736
|
+
# auth_names
|
|
1737
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1738
|
+
|
|
1739
|
+
new_options = opts.merge(
|
|
1740
|
+
:operation => :unlink_jira_issue,
|
|
1741
|
+
:header_params => header_params,
|
|
1742
|
+
:query_params => query_params,
|
|
1743
|
+
:form_params => form_params,
|
|
1744
|
+
:body => post_body,
|
|
1745
|
+
:auth_names => auth_names,
|
|
1746
|
+
:return_type => return_type,
|
|
1747
|
+
:api_version => "V2"
|
|
1748
|
+
)
|
|
1749
|
+
|
|
1750
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
1751
|
+
if @api_client.config.debugging
|
|
1752
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#unlink_jira_issue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1753
|
+
end
|
|
1754
|
+
return data, status_code, headers
|
|
1755
|
+
end
|
|
1756
|
+
|
|
1011
1757
|
# Update case attributes.
|
|
1012
1758
|
#
|
|
1013
1759
|
# @see #update_attributes_with_http_info
|
|
@@ -1373,6 +2119,155 @@ module DatadogAPIClient::V2
|
|
|
1373
2119
|
return data, status_code, headers
|
|
1374
2120
|
end
|
|
1375
2121
|
|
|
2122
|
+
# Update a project.
|
|
2123
|
+
#
|
|
2124
|
+
# @see #update_project_with_http_info
|
|
2125
|
+
def update_project(project_id, body, opts = {})
|
|
2126
|
+
data, _status_code, _headers = update_project_with_http_info(project_id, body, opts)
|
|
2127
|
+
data
|
|
2128
|
+
end
|
|
2129
|
+
|
|
2130
|
+
# Update a project.
|
|
2131
|
+
#
|
|
2132
|
+
# Update a project.
|
|
2133
|
+
#
|
|
2134
|
+
# @param project_id [String] Project UUID
|
|
2135
|
+
# @param body [ProjectUpdateRequest] Project payload
|
|
2136
|
+
# @param opts [Hash] the optional parameters
|
|
2137
|
+
# @return [Array<(ProjectResponse, Integer, Hash)>] ProjectResponse data, response status code and response headers
|
|
2138
|
+
def update_project_with_http_info(project_id, body, opts = {})
|
|
2139
|
+
|
|
2140
|
+
if @api_client.config.debugging
|
|
2141
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_project ...'
|
|
2142
|
+
end
|
|
2143
|
+
# verify the required parameter 'project_id' is set
|
|
2144
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
2145
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling CaseManagementAPI.update_project"
|
|
2146
|
+
end
|
|
2147
|
+
# verify the required parameter 'body' is set
|
|
2148
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2149
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.update_project"
|
|
2150
|
+
end
|
|
2151
|
+
# resource path
|
|
2152
|
+
local_var_path = '/api/v2/cases/projects/{project_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
2153
|
+
|
|
2154
|
+
# query parameters
|
|
2155
|
+
query_params = opts[:query_params] || {}
|
|
2156
|
+
|
|
2157
|
+
# header parameters
|
|
2158
|
+
header_params = opts[:header_params] || {}
|
|
2159
|
+
# HTTP header 'Accept' (if needed)
|
|
2160
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2161
|
+
# HTTP header 'Content-Type'
|
|
2162
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2163
|
+
|
|
2164
|
+
# form parameters
|
|
2165
|
+
form_params = opts[:form_params] || {}
|
|
2166
|
+
|
|
2167
|
+
# http body (model)
|
|
2168
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2169
|
+
|
|
2170
|
+
# return_type
|
|
2171
|
+
return_type = opts[:debug_return_type] || 'ProjectResponse'
|
|
2172
|
+
|
|
2173
|
+
# auth_names
|
|
2174
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2175
|
+
|
|
2176
|
+
new_options = opts.merge(
|
|
2177
|
+
:operation => :update_project,
|
|
2178
|
+
:header_params => header_params,
|
|
2179
|
+
:query_params => query_params,
|
|
2180
|
+
:form_params => form_params,
|
|
2181
|
+
:body => post_body,
|
|
2182
|
+
:auth_names => auth_names,
|
|
2183
|
+
:return_type => return_type,
|
|
2184
|
+
:api_version => "V2"
|
|
2185
|
+
)
|
|
2186
|
+
|
|
2187
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
2188
|
+
if @api_client.config.debugging
|
|
2189
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#update_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2190
|
+
end
|
|
2191
|
+
return data, status_code, headers
|
|
2192
|
+
end
|
|
2193
|
+
|
|
2194
|
+
# Update a notification rule.
|
|
2195
|
+
#
|
|
2196
|
+
# @see #update_project_notification_rule_with_http_info
|
|
2197
|
+
def update_project_notification_rule(project_id, notification_rule_id, body, opts = {})
|
|
2198
|
+
update_project_notification_rule_with_http_info(project_id, notification_rule_id, body, opts)
|
|
2199
|
+
nil
|
|
2200
|
+
end
|
|
2201
|
+
|
|
2202
|
+
# Update a notification rule.
|
|
2203
|
+
#
|
|
2204
|
+
# Update a notification rule.
|
|
2205
|
+
#
|
|
2206
|
+
# @param project_id [String] Project UUID
|
|
2207
|
+
# @param notification_rule_id [String] Notification Rule UUID
|
|
2208
|
+
# @param body [CaseNotificationRuleUpdateRequest] Notification rule payload
|
|
2209
|
+
# @param opts [Hash] the optional parameters
|
|
2210
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2211
|
+
def update_project_notification_rule_with_http_info(project_id, notification_rule_id, body, opts = {})
|
|
2212
|
+
|
|
2213
|
+
if @api_client.config.debugging
|
|
2214
|
+
@api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_project_notification_rule ...'
|
|
2215
|
+
end
|
|
2216
|
+
# verify the required parameter 'project_id' is set
|
|
2217
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
2218
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling CaseManagementAPI.update_project_notification_rule"
|
|
2219
|
+
end
|
|
2220
|
+
# verify the required parameter 'notification_rule_id' is set
|
|
2221
|
+
if @api_client.config.client_side_validation && notification_rule_id.nil?
|
|
2222
|
+
fail ArgumentError, "Missing the required parameter 'notification_rule_id' when calling CaseManagementAPI.update_project_notification_rule"
|
|
2223
|
+
end
|
|
2224
|
+
# verify the required parameter 'body' is set
|
|
2225
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2226
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.update_project_notification_rule"
|
|
2227
|
+
end
|
|
2228
|
+
# resource path
|
|
2229
|
+
local_var_path = '/api/v2/cases/projects/{project_id}/notification_rules/{notification_rule_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')).sub('{notification_rule_id}', CGI.escape(notification_rule_id.to_s).gsub('%2F', '/'))
|
|
2230
|
+
|
|
2231
|
+
# query parameters
|
|
2232
|
+
query_params = opts[:query_params] || {}
|
|
2233
|
+
|
|
2234
|
+
# header parameters
|
|
2235
|
+
header_params = opts[:header_params] || {}
|
|
2236
|
+
# HTTP header 'Accept' (if needed)
|
|
2237
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
2238
|
+
# HTTP header 'Content-Type'
|
|
2239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2240
|
+
|
|
2241
|
+
# form parameters
|
|
2242
|
+
form_params = opts[:form_params] || {}
|
|
2243
|
+
|
|
2244
|
+
# http body (model)
|
|
2245
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2246
|
+
|
|
2247
|
+
# return_type
|
|
2248
|
+
return_type = opts[:debug_return_type]
|
|
2249
|
+
|
|
2250
|
+
# auth_names
|
|
2251
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2252
|
+
|
|
2253
|
+
new_options = opts.merge(
|
|
2254
|
+
:operation => :update_project_notification_rule,
|
|
2255
|
+
:header_params => header_params,
|
|
2256
|
+
:query_params => query_params,
|
|
2257
|
+
:form_params => form_params,
|
|
2258
|
+
:body => post_body,
|
|
2259
|
+
:auth_names => auth_names,
|
|
2260
|
+
:return_type => return_type,
|
|
2261
|
+
:api_version => "V2"
|
|
2262
|
+
)
|
|
2263
|
+
|
|
2264
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
2265
|
+
if @api_client.config.debugging
|
|
2266
|
+
@api_client.config.logger.debug "API called: CaseManagementAPI#update_project_notification_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2267
|
+
end
|
|
2268
|
+
return data, status_code, headers
|
|
2269
|
+
end
|
|
2270
|
+
|
|
1376
2271
|
# Update case status.
|
|
1377
2272
|
#
|
|
1378
2273
|
# @see #update_status_with_http_info
|