datadog_api_client 2.57.0 → 2.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +2 -0
- data/.generator/schemas/v2/openapi.yaml +748 -397
- data/CHANGELOG.md +21 -0
- data/examples/v1/monitors/CreateMonitor_1348801712.rb +23 -0
- data/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb +5 -0
- data/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb +20 -0
- data/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb +24 -0
- data/examples/v2/governance-console/UpdateGovernanceControl.rb +0 -1
- data/examples/v2/status-pages/PatchMaintenanceUpdate.rb +15 -0
- data/lib/datadog_api_client/configuration.rb +1 -3
- data/lib/datadog_api_client/inflector.rb +33 -14
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_git_hub_accounts_api.rb +160 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +73 -0
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +83 -1
- data/lib/datadog_api_client/v2/models/agent_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/agent_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_data.rb → ci_app_git_hub_account_data.rb} +10 -8
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_repository.rb +115 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_response.rb → ci_app_git_hub_account_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_quota_reached_action.rb → ci_app_git_hub_account_type.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_request.rb → ci_app_git_hub_account_update_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_attributes.rb +159 -0
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_data.rb +146 -0
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_repository.rb +148 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_adaptive_config.rb → ci_app_git_hub_accounts_response.rb} +19 -25
- data/lib/datadog_api_client/v2/models/completion_condition.rb +4 -29
- data/lib/datadog_api_client/v2/models/completion_gate.rb +4 -29
- data/lib/datadog_api_client/v2/models/create_degradation_request.rb +13 -3
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +9 -1
- data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -1
- data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/degradation_request_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_gates_fdd_rule_options.rb +13 -1
- data/lib/datadog_api_client/v2/models/deployment_rule_options_faulty_deployment_detection.rb +13 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation.rb +63 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_id.rb +119 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_version.rb +119 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb +15 -5
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/error_handler.rb +4 -29
- data/lib/datadog_api_client/v2/models/fleet_agent_info_details_v2.rb +1 -49
- data/lib/datadog_api_client/v2/models/form_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +1 -22
- data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +10 -13
- data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/input_schema_parameters.rb +4 -0
- data/lib/datadog_api_client/v2/models/maintenance_update.rb +105 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_type.rb → maintenance_update_data_attributes_status.rb} +6 -3
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_attributes.rb → maintenance_update_data_relationships_user.rb} +17 -38
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_call_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/outbound_edge.rb +8 -0
- data/lib/datadog_api_client/v2/models/parameter.rb +4 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request.rb +13 -3
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/patch_maintenance_update_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_data.rb → patch_maintenance_update_request_data.rb} +9 -21
- data/lib/datadog_api_client/v2/models/patch_maintenance_update_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_scope_type.rb → patch_maintenance_update_request_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +9 -1
- data/lib/datadog_api_client/v2/models/readiness_gate.rb +4 -29
- data/lib/datadog_api_client/v2/models/retry_strategy.rb +12 -26
- data/lib/datadog_api_client/v2/models/retry_strategy_linear.rb +18 -29
- data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/spec.rb +1 -1
- data/lib/datadog_api_client/v2/models/step.rb +11 -2
- data/lib/datadog_api_client/v2/models/step_display.rb +2 -1
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +9 -1
- data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
- data/lib/datadog_api_client/v2/models/workflow_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/workflow_data_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/workflow_list_item_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +2 -2
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +39 -18
- data/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.rb +0 -8
- data/examples/v2/rum-rate-limit/GetRumRateLimitConfig.rb +0 -8
- data/examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.rb +0 -28
- data/lib/datadog_api_client/v2/api/rum_rate_limit_api.rb +0 -277
- data/lib/datadog_api_client/v2/models/rum_rate_limit_config_attributes.rb +0 -185
- data/lib/datadog_api_client/v2/models/rum_rate_limit_custom_config.rb +0 -223
- data/lib/datadog_api_client/v2/models/rum_rate_limit_mode.rb +0 -28
- data/lib/datadog_api_client/v2/models/rum_rate_limit_window_type.rb +0 -26
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.58.0/2026-08-12
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
* 200 col lim explicit in api docs [#3667](https://github.com/DataDog/datadog-api-client-ruby/pull/3667)
|
|
7
|
+
* Add GET/PATCH /api/v2/ci/github/accounts to CI Visibility spec [#3656](https://github.com/DataDog/datadog-api-client-ruby/pull/3656)
|
|
8
|
+
* Mark supported_values as nullable and remove unused detection_frequency in Governance Console API [#3653](https://github.com/DataDog/datadog-api-client-ruby/pull/3653)
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
* Add llm-observability alert monitor type [#3666](https://github.com/DataDog/datadog-api-client-ruby/pull/3666)
|
|
12
|
+
* Add allowed_resources to Deployment Gates FDD rule options [#3665](https://github.com/DataDog/datadog-api-client-ruby/pull/3665)
|
|
13
|
+
* Document meta.idempotency_key in CreateDegradation and UpdateDegradation [#3659](https://github.com/DataDog/datadog-api-client-ruby/pull/3659)
|
|
14
|
+
* Add spec for maintenance update edit endpoint [#3650](https://github.com/DataDog/datadog-api-client-ruby/pull/3650)
|
|
15
|
+
* Document PATCH /api/v2/dora/deployments [#3646](https://github.com/DataDog/datadog-api-client-ruby/pull/3646)
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
* Update Status Pages UpdateStatusPage documentation to reflect enabled attribute deprecation [#3663](https://github.com/DataDog/datadog-api-client-ruby/pull/3663)
|
|
19
|
+
* Make RUM rate limit config API private pending rename [#3657](https://github.com/DataDog/datadog-api-client-ruby/pull/3657)
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
* Remove redundant otel fields from Fleet Automation v2 agent detail endpoint [#3655](https://github.com/DataDog/datadog-api-client-ruby/pull/3655)
|
|
23
|
+
|
|
3
24
|
## 2.57.0/2026-08-06
|
|
4
25
|
|
|
5
26
|
### Fixed
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Create an LLM Observability monitor returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V1::MonitorsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V1::Monitor.new({
|
|
7
|
+
name: "Example-Monitor",
|
|
8
|
+
type: DatadogAPIClient::V1::MonitorType::LLM_OBSERVABILITY_ALERT,
|
|
9
|
+
query: 'llm-observability("*").rollup("count").last("2h") > 0',
|
|
10
|
+
message: "LLM observability alert triggered",
|
|
11
|
+
tags: [
|
|
12
|
+
"test:examplemonitor",
|
|
13
|
+
"env:ci",
|
|
14
|
+
],
|
|
15
|
+
options: DatadogAPIClient::V1::MonitorOptions.new({
|
|
16
|
+
thresholds: DatadogAPIClient::V1::MonitorThresholds.new({
|
|
17
|
+
critical: 0,
|
|
18
|
+
}),
|
|
19
|
+
include_tags: true,
|
|
20
|
+
notify_audit: false,
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
|
+
p api_instance.create_monitor(body)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Update GitHub CI Visibility status returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityGitHubAccountsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequestData.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequestAttributes.new({
|
|
9
|
+
account: "datadog",
|
|
10
|
+
enabled: true,
|
|
11
|
+
host: "github.com",
|
|
12
|
+
repository: DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequestRepository.new({
|
|
13
|
+
enabled: true,
|
|
14
|
+
name: "shopist",
|
|
15
|
+
}),
|
|
16
|
+
}),
|
|
17
|
+
type: DatadogAPIClient::V2::CIAppGitHubAccountType::CI_GITHUB_ACCOUNT,
|
|
18
|
+
}),
|
|
19
|
+
})
|
|
20
|
+
p api_instance.update_ci_app_git_hub_account(body)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Patch a deployment event by version returns "Accepted" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
DatadogAPIClient.configure do |config|
|
|
5
|
+
config.unstable_operations["v2.patch_dora_deployment_by_version".to_sym] = true
|
|
6
|
+
end
|
|
7
|
+
api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new
|
|
8
|
+
|
|
9
|
+
body = DatadogAPIClient::V2::DORADeploymentPatchByVersionRequest.new({
|
|
10
|
+
data: DatadogAPIClient::V2::DORADeploymentPatchByVersionRequestData.new({
|
|
11
|
+
attributes: DatadogAPIClient::V2::DORADeploymentPatchByVersionRequestAttributes.new({
|
|
12
|
+
change_failure: true,
|
|
13
|
+
env: "production",
|
|
14
|
+
remediation: DatadogAPIClient::V2::DORADeploymentPatchByVersionRemediationByVersion.new({
|
|
15
|
+
type: DatadogAPIClient::V2::DORADeploymentPatchRemediationType::ROLLBACK,
|
|
16
|
+
version: "v1.2.2",
|
|
17
|
+
}),
|
|
18
|
+
service: "my-service",
|
|
19
|
+
version: "v1.2.3",
|
|
20
|
+
}),
|
|
21
|
+
type: DatadogAPIClient::V2::DORADeploymentPatchRequestDataType::DORA_DEPLOYMENT_PATCH_REQUEST,
|
|
22
|
+
}),
|
|
23
|
+
})
|
|
24
|
+
p api_instance.patch_dora_deployment_by_version(body)
|
|
@@ -9,7 +9,6 @@ api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new
|
|
|
9
9
|
body = DatadogAPIClient::V2::GovernanceControlUpdateRequest.new({
|
|
10
10
|
data: DatadogAPIClient::V2::GovernanceControlUpdateData.new({
|
|
11
11
|
attributes: DatadogAPIClient::V2::GovernanceControlUpdateAttributes.new({
|
|
12
|
-
detection_frequency: "daily",
|
|
13
12
|
mitigation_type: "revoke_api_key",
|
|
14
13
|
}),
|
|
15
14
|
type: DatadogAPIClient::V2::GovernanceControlResourceType::GOVERNANCE_CONTROL,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Edit maintenance update returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::StatusPagesAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::PatchMaintenanceUpdateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::PatchMaintenanceUpdateRequestData.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::PatchMaintenanceUpdateRequestDataAttributes.new({
|
|
9
|
+
description: "We have completed maintenance on the API to improve performance.",
|
|
10
|
+
}),
|
|
11
|
+
id: "00000000-0000-0000-0000-000000000000",
|
|
12
|
+
type: DatadogAPIClient::V2::PatchMaintenanceUpdateRequestDataType::MAINTENANCE_UPDATES,
|
|
13
|
+
}),
|
|
14
|
+
})
|
|
15
|
+
p api_instance.patch_maintenance_update("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", body)
|
|
@@ -437,6 +437,7 @@ module DatadogAPIClient
|
|
|
437
437
|
"v2.trigger_deployment_gates_evaluation": false,
|
|
438
438
|
"v2.update_deployment_gate": false,
|
|
439
439
|
"v2.update_deployment_rule": false,
|
|
440
|
+
"v2.patch_dora_deployment_by_version": false,
|
|
440
441
|
"v2.clone_form": false,
|
|
441
442
|
"v2.create_and_publish_form": false,
|
|
442
443
|
"v2.create_form": false,
|
|
@@ -672,9 +673,6 @@ module DatadogAPIClient
|
|
|
672
673
|
"v2.create_rum_config": false,
|
|
673
674
|
"v2.get_rum_config": false,
|
|
674
675
|
"v2.update_rum_config": false,
|
|
675
|
-
"v2.delete_rum_rate_limit_config": false,
|
|
676
|
-
"v2.get_rum_rate_limit_config": false,
|
|
677
|
-
"v2.update_rum_rate_limit_config": false,
|
|
678
676
|
"v2.create_rum_operation": false,
|
|
679
677
|
"v2.create_rum_operation_strong_link": false,
|
|
680
678
|
"v2.delete_rum_operation": false,
|
|
@@ -1215,6 +1215,8 @@ module DatadogAPIClient
|
|
|
1215
1215
|
"v2.active_billing_dimensions_type" => "ActiveBillingDimensionsType",
|
|
1216
1216
|
"v2.add_member_team_request" => "AddMemberTeamRequest",
|
|
1217
1217
|
"v2.advisory" => "Advisory",
|
|
1218
|
+
"v2.agent_trigger" => "AgentTrigger",
|
|
1219
|
+
"v2.agent_trigger_wrapper" => "AgentTriggerWrapper",
|
|
1218
1220
|
"v2.aggregated_high_frozen_frame_rate" => "AggregatedHighFrozenFrameRate",
|
|
1219
1221
|
"v2.aggregated_high_script_eval" => "AggregatedHighScriptEval",
|
|
1220
1222
|
"v2.aggregated_long_tasks_by_invoker_type" => "AggregatedLongTasksByInvokerType",
|
|
@@ -2066,6 +2068,16 @@ module DatadogAPIClient
|
|
|
2066
2068
|
"v2.ci_app_create_pipeline_event_request_data_single_or_array" => "CIAppCreatePipelineEventRequestDataSingleOrArray",
|
|
2067
2069
|
"v2.ci_app_create_pipeline_event_request_data_type" => "CIAppCreatePipelineEventRequestDataType",
|
|
2068
2070
|
"v2.ci_app_event_attributes" => "CIAppEventAttributes",
|
|
2071
|
+
"v2.ci_app_git_hub_account_attributes" => "CIAppGitHubAccountAttributes",
|
|
2072
|
+
"v2.ci_app_git_hub_account_data" => "CIAppGitHubAccountData",
|
|
2073
|
+
"v2.ci_app_git_hub_account_repository" => "CIAppGitHubAccountRepository",
|
|
2074
|
+
"v2.ci_app_git_hub_account_response" => "CIAppGitHubAccountResponse",
|
|
2075
|
+
"v2.ci_app_git_hub_accounts_response" => "CIAppGitHubAccountsResponse",
|
|
2076
|
+
"v2.ci_app_git_hub_account_type" => "CIAppGitHubAccountType",
|
|
2077
|
+
"v2.ci_app_git_hub_account_update_request" => "CIAppGitHubAccountUpdateRequest",
|
|
2078
|
+
"v2.ci_app_git_hub_account_update_request_attributes" => "CIAppGitHubAccountUpdateRequestAttributes",
|
|
2079
|
+
"v2.ci_app_git_hub_account_update_request_data" => "CIAppGitHubAccountUpdateRequestData",
|
|
2080
|
+
"v2.ci_app_git_hub_account_update_request_repository" => "CIAppGitHubAccountUpdateRequestRepository",
|
|
2069
2081
|
"v2.ci_app_git_info" => "CIAppGitInfo",
|
|
2070
2082
|
"v2.ci_app_group_by_histogram" => "CIAppGroupByHistogram",
|
|
2071
2083
|
"v2.ci_app_group_by_missing" => "CIAppGroupByMissing",
|
|
@@ -2911,6 +2923,7 @@ module DatadogAPIClient
|
|
|
2911
2923
|
"v2.degradation_data_relationships_template" => "DegradationDataRelationshipsTemplate",
|
|
2912
2924
|
"v2.degradation_data_relationships_template_data" => "DegradationDataRelationshipsTemplateData",
|
|
2913
2925
|
"v2.degradation_included" => "DegradationIncluded",
|
|
2926
|
+
"v2.degradation_request_meta" => "DegradationRequestMeta",
|
|
2914
2927
|
"v2.degradation_template" => "DegradationTemplate",
|
|
2915
2928
|
"v2.degradation_template_array" => "DegradationTemplateArray",
|
|
2916
2929
|
"v2.degradation_template_data" => "DegradationTemplateData",
|
|
@@ -3034,6 +3047,12 @@ module DatadogAPIClient
|
|
|
3034
3047
|
"v2.dora_deployment_fetch_response" => "DORADeploymentFetchResponse",
|
|
3035
3048
|
"v2.dora_deployment_object" => "DORADeploymentObject",
|
|
3036
3049
|
"v2.dora_deployment_object_attributes" => "DORADeploymentObjectAttributes",
|
|
3050
|
+
"v2.dora_deployment_patch_by_version_remediation" => "DORADeploymentPatchByVersionRemediation",
|
|
3051
|
+
"v2.dora_deployment_patch_by_version_remediation_by_id" => "DORADeploymentPatchByVersionRemediationByID",
|
|
3052
|
+
"v2.dora_deployment_patch_by_version_remediation_by_version" => "DORADeploymentPatchByVersionRemediationByVersion",
|
|
3053
|
+
"v2.dora_deployment_patch_by_version_request" => "DORADeploymentPatchByVersionRequest",
|
|
3054
|
+
"v2.dora_deployment_patch_by_version_request_attributes" => "DORADeploymentPatchByVersionRequestAttributes",
|
|
3055
|
+
"v2.dora_deployment_patch_by_version_request_data" => "DORADeploymentPatchByVersionRequestData",
|
|
3037
3056
|
"v2.dora_deployment_patch_remediation" => "DORADeploymentPatchRemediation",
|
|
3038
3057
|
"v2.dora_deployment_patch_remediation_type" => "DORADeploymentPatchRemediationType",
|
|
3039
3058
|
"v2.dora_deployment_patch_request" => "DORADeploymentPatchRequest",
|
|
@@ -4963,6 +4982,15 @@ module DatadogAPIClient
|
|
|
4963
4982
|
"v2.maintenance_template_data_relationships_last_modified_by_user_data" => "MaintenanceTemplateDataRelationshipsLastModifiedByUserData",
|
|
4964
4983
|
"v2.maintenance_template_data_relationships_status_page" => "MaintenanceTemplateDataRelationshipsStatusPage",
|
|
4965
4984
|
"v2.maintenance_template_data_relationships_status_page_data" => "MaintenanceTemplateDataRelationshipsStatusPageData",
|
|
4985
|
+
"v2.maintenance_update" => "MaintenanceUpdate",
|
|
4986
|
+
"v2.maintenance_update_data" => "MaintenanceUpdateData",
|
|
4987
|
+
"v2.maintenance_update_data_attributes" => "MaintenanceUpdateDataAttributes",
|
|
4988
|
+
"v2.maintenance_update_data_attributes_status" => "MaintenanceUpdateDataAttributesStatus",
|
|
4989
|
+
"v2.maintenance_update_data_relationships" => "MaintenanceUpdateDataRelationships",
|
|
4990
|
+
"v2.maintenance_update_data_relationships_maintenance" => "MaintenanceUpdateDataRelationshipsMaintenance",
|
|
4991
|
+
"v2.maintenance_update_data_relationships_maintenance_data" => "MaintenanceUpdateDataRelationshipsMaintenanceData",
|
|
4992
|
+
"v2.maintenance_update_data_relationships_user" => "MaintenanceUpdateDataRelationshipsUser",
|
|
4993
|
+
"v2.maintenance_update_data_relationships_user_data" => "MaintenanceUpdateDataRelationshipsUserData",
|
|
4966
4994
|
"v2.maintenance_window" => "MaintenanceWindow",
|
|
4967
4995
|
"v2.maintenance_window_attributes" => "MaintenanceWindowAttributes",
|
|
4968
4996
|
"v2.maintenance_window_create" => "MaintenanceWindowCreate",
|
|
@@ -5988,6 +6016,10 @@ module DatadogAPIClient
|
|
|
5988
6016
|
"v2.patch_maintenance_template_request_data" => "PatchMaintenanceTemplateRequestData",
|
|
5989
6017
|
"v2.patch_maintenance_template_request_data_attributes" => "PatchMaintenanceTemplateRequestDataAttributes",
|
|
5990
6018
|
"v2.patch_maintenance_template_request_data_type" => "PatchMaintenanceTemplateRequestDataType",
|
|
6019
|
+
"v2.patch_maintenance_update_request" => "PatchMaintenanceUpdateRequest",
|
|
6020
|
+
"v2.patch_maintenance_update_request_data" => "PatchMaintenanceUpdateRequestData",
|
|
6021
|
+
"v2.patch_maintenance_update_request_data_attributes" => "PatchMaintenanceUpdateRequestDataAttributes",
|
|
6022
|
+
"v2.patch_maintenance_update_request_data_type" => "PatchMaintenanceUpdateRequestDataType",
|
|
5991
6023
|
"v2.patch_notification_rule_parameters" => "PatchNotificationRuleParameters",
|
|
5992
6024
|
"v2.patch_notification_rule_parameters_data" => "PatchNotificationRuleParametersData",
|
|
5993
6025
|
"v2.patch_notification_rule_parameters_data_attributes" => "PatchNotificationRuleParametersDataAttributes",
|
|
@@ -6586,19 +6618,6 @@ module DatadogAPIClient
|
|
|
6586
6618
|
"v2.rum_query_filter" => "RUMQueryFilter",
|
|
6587
6619
|
"v2.rum_query_options" => "RUMQueryOptions",
|
|
6588
6620
|
"v2.rum_query_page_options" => "RUMQueryPageOptions",
|
|
6589
|
-
"v2.rum_rate_limit_adaptive_config" => "RumRateLimitAdaptiveConfig",
|
|
6590
|
-
"v2.rum_rate_limit_config_attributes" => "RumRateLimitConfigAttributes",
|
|
6591
|
-
"v2.rum_rate_limit_config_data" => "RumRateLimitConfigData",
|
|
6592
|
-
"v2.rum_rate_limit_config_response" => "RumRateLimitConfigResponse",
|
|
6593
|
-
"v2.rum_rate_limit_config_type" => "RumRateLimitConfigType",
|
|
6594
|
-
"v2.rum_rate_limit_config_update_attributes" => "RumRateLimitConfigUpdateAttributes",
|
|
6595
|
-
"v2.rum_rate_limit_config_update_data" => "RumRateLimitConfigUpdateData",
|
|
6596
|
-
"v2.rum_rate_limit_config_update_request" => "RumRateLimitConfigUpdateRequest",
|
|
6597
|
-
"v2.rum_rate_limit_custom_config" => "RumRateLimitCustomConfig",
|
|
6598
|
-
"v2.rum_rate_limit_mode" => "RumRateLimitMode",
|
|
6599
|
-
"v2.rum_rate_limit_quota_reached_action" => "RumRateLimitQuotaReachedAction",
|
|
6600
|
-
"v2.rum_rate_limit_scope_type" => "RumRateLimitScopeType",
|
|
6601
|
-
"v2.rum_rate_limit_window_type" => "RumRateLimitWindowType",
|
|
6602
6621
|
"v2.rum_response_links" => "RUMResponseLinks",
|
|
6603
6622
|
"v2.rum_response_metadata" => "RUMResponseMetadata",
|
|
6604
6623
|
"v2.rum_response_page" => "RUMResponsePage",
|
|
@@ -8530,6 +8549,7 @@ module DatadogAPIClient
|
|
|
8530
8549
|
"v2.case_management_attribute_api" => "CaseManagementAttributeAPI",
|
|
8531
8550
|
"v2.case_management_type_api" => "CaseManagementTypeAPI",
|
|
8532
8551
|
"v2.change_management_api" => "ChangeManagementAPI",
|
|
8552
|
+
"v2.ci_visibility_git_hub_accounts_api" => "CIVisibilityGitHubAccountsAPI",
|
|
8533
8553
|
"v2.ci_visibility_pipelines_api" => "CIVisibilityPipelinesAPI",
|
|
8534
8554
|
"v2.ci_visibility_tests_api" => "CIVisibilityTestsAPI",
|
|
8535
8555
|
"v2.cloud_authentication_api" => "CloudAuthenticationAPI",
|
|
@@ -8614,7 +8634,6 @@ module DatadogAPIClient
|
|
|
8614
8634
|
"v2.rum_insights_api" => "RUMInsightsAPI",
|
|
8615
8635
|
"v2.rum_metrics_api" => "RumMetricsAPI",
|
|
8616
8636
|
"v2.rum_operations_api" => "RUMOperationsAPI",
|
|
8617
|
-
"v2.rum_rate_limit_api" => "RumRateLimitAPI",
|
|
8618
8637
|
"v2.rum_remote_config_api" => "RUMRemoteConfigAPI",
|
|
8619
8638
|
"v2.rum_replay_heatmaps_api" => "RumReplayHeatmapsAPI",
|
|
8620
8639
|
"v2.rum_replay_playlists_api" => "RumReplayPlaylistsAPI",
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'cgi'
|
|
17
|
+
|
|
18
|
+
module DatadogAPIClient::V2
|
|
19
|
+
class CIVisibilityGitHubAccountsAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# List GitHub CI Visibility status.
|
|
27
|
+
#
|
|
28
|
+
# @see #list_ci_app_git_hub_accounts_with_http_info
|
|
29
|
+
def list_ci_app_git_hub_accounts(opts = {})
|
|
30
|
+
data, _status_code, _headers = list_ci_app_git_hub_accounts_with_http_info(opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# List GitHub CI Visibility status.
|
|
35
|
+
#
|
|
36
|
+
# Retrieve the list of GitHub accounts (organizations or users) available to this Datadog organization
|
|
37
|
+
# through its GitHub App installation, along with each account's and repository's CI Visibility opt-in status.
|
|
38
|
+
#
|
|
39
|
+
# @param opts [Hash] the optional parameters
|
|
40
|
+
# @return [Array<(CIAppGitHubAccountsResponse, Integer, Hash)>] CIAppGitHubAccountsResponse data, response status code and response headers
|
|
41
|
+
def list_ci_app_git_hub_accounts_with_http_info(opts = {})
|
|
42
|
+
|
|
43
|
+
if @api_client.config.debugging
|
|
44
|
+
@api_client.config.logger.debug 'Calling API: CIVisibilityGitHubAccountsAPI.list_ci_app_git_hub_accounts ...'
|
|
45
|
+
end
|
|
46
|
+
# resource path
|
|
47
|
+
local_var_path = '/api/v2/ci/github/accounts'
|
|
48
|
+
|
|
49
|
+
# query parameters
|
|
50
|
+
query_params = opts[:query_params] || {}
|
|
51
|
+
|
|
52
|
+
# header parameters
|
|
53
|
+
header_params = opts[:header_params] || {}
|
|
54
|
+
# HTTP header 'Accept' (if needed)
|
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body]
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type] || 'CIAppGitHubAccountsResponse'
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :list_ci_app_git_hub_accounts,
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type,
|
|
77
|
+
:api_version => "V2"
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
81
|
+
if @api_client.config.debugging
|
|
82
|
+
@api_client.config.logger.debug "API called: CIVisibilityGitHubAccountsAPI#list_ci_app_git_hub_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
83
|
+
end
|
|
84
|
+
return data, status_code, headers
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Update GitHub CI Visibility status.
|
|
88
|
+
#
|
|
89
|
+
# @see #update_ci_app_git_hub_account_with_http_info
|
|
90
|
+
def update_ci_app_git_hub_account(body, opts = {})
|
|
91
|
+
data, _status_code, _headers = update_ci_app_git_hub_account_with_http_info(body, opts)
|
|
92
|
+
data
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Update GitHub CI Visibility status.
|
|
96
|
+
#
|
|
97
|
+
# Enable or disable CI Visibility for a GitHub account, one of its repositories, or both in the same request.
|
|
98
|
+
# The account (and, optionally, repository) are identified by name. Account-level and repository-level
|
|
99
|
+
# changes are independent and may both be supplied in the same request. At least one of `enabled` or
|
|
100
|
+
# `repository.enabled` must be provided. If the account name matches installations on more than one host,
|
|
101
|
+
# `host` must be supplied to disambiguate, otherwise a 409 is returned. Returns a 404 if the CI Visibility
|
|
102
|
+
# GitHub integration is not enabled for this organization, or if the given account or repository cannot be
|
|
103
|
+
# found by name.
|
|
104
|
+
#
|
|
105
|
+
# @param body [CIAppGitHubAccountUpdateRequest]
|
|
106
|
+
# @param opts [Hash] the optional parameters
|
|
107
|
+
# @return [Array<(CIAppGitHubAccountResponse, Integer, Hash)>] CIAppGitHubAccountResponse data, response status code and response headers
|
|
108
|
+
def update_ci_app_git_hub_account_with_http_info(body, opts = {})
|
|
109
|
+
|
|
110
|
+
if @api_client.config.debugging
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: CIVisibilityGitHubAccountsAPI.update_ci_app_git_hub_account ...'
|
|
112
|
+
end
|
|
113
|
+
# verify the required parameter 'body' is set
|
|
114
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CIVisibilityGitHubAccountsAPI.update_ci_app_git_hub_account"
|
|
116
|
+
end
|
|
117
|
+
# resource path
|
|
118
|
+
local_var_path = '/api/v2/ci/github/accounts'
|
|
119
|
+
|
|
120
|
+
# query parameters
|
|
121
|
+
query_params = opts[:query_params] || {}
|
|
122
|
+
|
|
123
|
+
# header parameters
|
|
124
|
+
header_params = opts[:header_params] || {}
|
|
125
|
+
# HTTP header 'Accept' (if needed)
|
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
127
|
+
# HTTP header 'Content-Type'
|
|
128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
129
|
+
|
|
130
|
+
# form parameters
|
|
131
|
+
form_params = opts[:form_params] || {}
|
|
132
|
+
|
|
133
|
+
# http body (model)
|
|
134
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
135
|
+
|
|
136
|
+
# return_type
|
|
137
|
+
return_type = opts[:debug_return_type] || 'CIAppGitHubAccountResponse'
|
|
138
|
+
|
|
139
|
+
# auth_names
|
|
140
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
141
|
+
|
|
142
|
+
new_options = opts.merge(
|
|
143
|
+
:operation => :update_ci_app_git_hub_account,
|
|
144
|
+
:header_params => header_params,
|
|
145
|
+
:query_params => query_params,
|
|
146
|
+
:form_params => form_params,
|
|
147
|
+
:body => post_body,
|
|
148
|
+
:auth_names => auth_names,
|
|
149
|
+
:return_type => return_type,
|
|
150
|
+
:api_version => "V2"
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug "API called: CIVisibilityGitHubAccountsAPI#update_ci_app_git_hub_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
|
+
end
|
|
157
|
+
return data, status_code, headers
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
@@ -703,5 +703,78 @@ module DatadogAPIClient::V2
|
|
|
703
703
|
end
|
|
704
704
|
return data, status_code, headers
|
|
705
705
|
end
|
|
706
|
+
|
|
707
|
+
# Patch a deployment event by version.
|
|
708
|
+
#
|
|
709
|
+
# @see #patch_dora_deployment_by_version_with_http_info
|
|
710
|
+
def patch_dora_deployment_by_version(body, opts = {})
|
|
711
|
+
patch_dora_deployment_by_version_with_http_info(body, opts)
|
|
712
|
+
nil
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# Patch a deployment event by version.
|
|
716
|
+
#
|
|
717
|
+
# Update a deployment's change failure status, identifying the deployment by its service, environment, and version instead of its ID. Use this to mark a deployment as a change failure or back to stable. You can optionally include remediation details to enable failed deployment recovery time calculation. If multiple deployments match the given service, environment, and version, the most recently finished one is updated.
|
|
718
|
+
#
|
|
719
|
+
# @param body [DORADeploymentPatchByVersionRequest]
|
|
720
|
+
# @param opts [Hash] the optional parameters
|
|
721
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
722
|
+
def patch_dora_deployment_by_version_with_http_info(body, opts = {})
|
|
723
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.patch_dora_deployment_by_version".to_sym]
|
|
724
|
+
if unstable_enabled
|
|
725
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.patch_dora_deployment_by_version")
|
|
726
|
+
else
|
|
727
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.patch_dora_deployment_by_version"))
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
if @api_client.config.debugging
|
|
731
|
+
@api_client.config.logger.debug 'Calling API: DORAMetricsAPI.patch_dora_deployment_by_version ...'
|
|
732
|
+
end
|
|
733
|
+
# verify the required parameter 'body' is set
|
|
734
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
735
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling DORAMetricsAPI.patch_dora_deployment_by_version"
|
|
736
|
+
end
|
|
737
|
+
# resource path
|
|
738
|
+
local_var_path = '/api/v2/dora/deployments'
|
|
739
|
+
|
|
740
|
+
# query parameters
|
|
741
|
+
query_params = opts[:query_params] || {}
|
|
742
|
+
|
|
743
|
+
# header parameters
|
|
744
|
+
header_params = opts[:header_params] || {}
|
|
745
|
+
# HTTP header 'Accept' (if needed)
|
|
746
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
747
|
+
# HTTP header 'Content-Type'
|
|
748
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
749
|
+
|
|
750
|
+
# form parameters
|
|
751
|
+
form_params = opts[:form_params] || {}
|
|
752
|
+
|
|
753
|
+
# http body (model)
|
|
754
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
755
|
+
|
|
756
|
+
# return_type
|
|
757
|
+
return_type = opts[:debug_return_type]
|
|
758
|
+
|
|
759
|
+
# auth_names
|
|
760
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
761
|
+
|
|
762
|
+
new_options = opts.merge(
|
|
763
|
+
:operation => :patch_dora_deployment_by_version,
|
|
764
|
+
:header_params => header_params,
|
|
765
|
+
:query_params => query_params,
|
|
766
|
+
:form_params => form_params,
|
|
767
|
+
:body => post_body,
|
|
768
|
+
:auth_names => auth_names,
|
|
769
|
+
:return_type => return_type,
|
|
770
|
+
:api_version => "V2"
|
|
771
|
+
)
|
|
772
|
+
|
|
773
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
774
|
+
if @api_client.config.debugging
|
|
775
|
+
@api_client.config.logger.debug "API called: DORAMetricsAPI#patch_dora_deployment_by_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
776
|
+
end
|
|
777
|
+
return data, status_code, headers
|
|
778
|
+
end
|
|
706
779
|
end
|
|
707
780
|
end
|
|
@@ -1885,6 +1885,88 @@ module DatadogAPIClient::V2
|
|
|
1885
1885
|
return data, status_code, headers
|
|
1886
1886
|
end
|
|
1887
1887
|
|
|
1888
|
+
# Edit maintenance update.
|
|
1889
|
+
#
|
|
1890
|
+
# @see #patch_maintenance_update_with_http_info
|
|
1891
|
+
def patch_maintenance_update(page_id, maintenance_id, update_id, body, opts = {})
|
|
1892
|
+
data, _status_code, _headers = patch_maintenance_update_with_http_info(page_id, maintenance_id, update_id, body, opts)
|
|
1893
|
+
data
|
|
1894
|
+
end
|
|
1895
|
+
|
|
1896
|
+
# Edit maintenance update.
|
|
1897
|
+
#
|
|
1898
|
+
# Edits the message of a specific maintenance update. Editing is allowed regardless of the parent maintenance's status, including completed and canceled maintenances.
|
|
1899
|
+
#
|
|
1900
|
+
# @param page_id [UUID] The ID of the status page.
|
|
1901
|
+
# @param maintenance_id [UUID] The ID of the maintenance.
|
|
1902
|
+
# @param update_id [UUID] The ID of the maintenance update.
|
|
1903
|
+
# @param body [PatchMaintenanceUpdateRequest]
|
|
1904
|
+
# @param opts [Hash] the optional parameters
|
|
1905
|
+
# @return [Array<(MaintenanceUpdate, Integer, Hash)>] MaintenanceUpdate data, response status code and response headers
|
|
1906
|
+
def patch_maintenance_update_with_http_info(page_id, maintenance_id, update_id, body, opts = {})
|
|
1907
|
+
|
|
1908
|
+
if @api_client.config.debugging
|
|
1909
|
+
@api_client.config.logger.debug 'Calling API: StatusPagesAPI.patch_maintenance_update ...'
|
|
1910
|
+
end
|
|
1911
|
+
# verify the required parameter 'page_id' is set
|
|
1912
|
+
if @api_client.config.client_side_validation && page_id.nil?
|
|
1913
|
+
fail ArgumentError, "Missing the required parameter 'page_id' when calling StatusPagesAPI.patch_maintenance_update"
|
|
1914
|
+
end
|
|
1915
|
+
# verify the required parameter 'maintenance_id' is set
|
|
1916
|
+
if @api_client.config.client_side_validation && maintenance_id.nil?
|
|
1917
|
+
fail ArgumentError, "Missing the required parameter 'maintenance_id' when calling StatusPagesAPI.patch_maintenance_update"
|
|
1918
|
+
end
|
|
1919
|
+
# verify the required parameter 'update_id' is set
|
|
1920
|
+
if @api_client.config.client_side_validation && update_id.nil?
|
|
1921
|
+
fail ArgumentError, "Missing the required parameter 'update_id' when calling StatusPagesAPI.patch_maintenance_update"
|
|
1922
|
+
end
|
|
1923
|
+
# verify the required parameter 'body' is set
|
|
1924
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1925
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StatusPagesAPI.patch_maintenance_update"
|
|
1926
|
+
end
|
|
1927
|
+
# resource path
|
|
1928
|
+
local_var_path = '/api/v2/statuspages/{page_id}/maintenances/{maintenance_id}/updates/{update_id}'.sub('{page_id}', CGI.escape(page_id.to_s).gsub('%2F', '/')).sub('{maintenance_id}', CGI.escape(maintenance_id.to_s).gsub('%2F', '/')).sub('{update_id}', CGI.escape(update_id.to_s).gsub('%2F', '/'))
|
|
1929
|
+
|
|
1930
|
+
# query parameters
|
|
1931
|
+
query_params = opts[:query_params] || {}
|
|
1932
|
+
|
|
1933
|
+
# header parameters
|
|
1934
|
+
header_params = opts[:header_params] || {}
|
|
1935
|
+
# HTTP header 'Accept' (if needed)
|
|
1936
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1937
|
+
# HTTP header 'Content-Type'
|
|
1938
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1939
|
+
|
|
1940
|
+
# form parameters
|
|
1941
|
+
form_params = opts[:form_params] || {}
|
|
1942
|
+
|
|
1943
|
+
# http body (model)
|
|
1944
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1945
|
+
|
|
1946
|
+
# return_type
|
|
1947
|
+
return_type = opts[:debug_return_type] || 'MaintenanceUpdate'
|
|
1948
|
+
|
|
1949
|
+
# auth_names
|
|
1950
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1951
|
+
|
|
1952
|
+
new_options = opts.merge(
|
|
1953
|
+
:operation => :patch_maintenance_update,
|
|
1954
|
+
:header_params => header_params,
|
|
1955
|
+
:query_params => query_params,
|
|
1956
|
+
:form_params => form_params,
|
|
1957
|
+
:body => post_body,
|
|
1958
|
+
:auth_names => auth_names,
|
|
1959
|
+
:return_type => return_type,
|
|
1960
|
+
:api_version => "V2"
|
|
1961
|
+
)
|
|
1962
|
+
|
|
1963
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1964
|
+
if @api_client.config.debugging
|
|
1965
|
+
@api_client.config.logger.debug "API called: StatusPagesAPI#patch_maintenance_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1966
|
+
end
|
|
1967
|
+
return data, status_code, headers
|
|
1968
|
+
end
|
|
1969
|
+
|
|
1888
1970
|
# Publish status page.
|
|
1889
1971
|
#
|
|
1890
1972
|
# @see #publish_status_page_with_http_info
|
|
@@ -2499,7 +2581,7 @@ module DatadogAPIClient::V2
|
|
|
2499
2581
|
|
|
2500
2582
|
# Update status page.
|
|
2501
2583
|
#
|
|
2502
|
-
# Updates an existing status page's attributes.
|
|
2584
|
+
# Updates an existing status page's attributes. To publish and unpublish status pages, use the dedicated [publish](#publish-status-page) and [unpublish](#unpublish-status-page) status page endpoints.
|
|
2503
2585
|
#
|
|
2504
2586
|
# @param page_id [UUID] The ID of the status page.
|
|
2505
2587
|
# @param body [PatchStatusPageRequest]
|