datadog_api_client 2.33.0 → 2.35.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/.apigentools-info +4 -4
- data/.generator/conftest.py +2 -1
- data/.generator/schemas/v1/openapi.yaml +77 -6
- data/.generator/schemas/v2/openapi.yaml +3218 -855
- data/.generator/src/generator/formatter.py +2 -2
- data/.generator/src/generator/openapi.py +1 -1
- data/.generator/src/generator/templates/configuration.j2 +2 -2
- data/.github/workflows/publish.yml +16 -8
- data/.github/workflows/release.yml +57 -61
- data/CHANGELOG.md +35 -0
- data/Gemfile +3 -1
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +21 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +7 -4
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +32 -0
- data/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb +3 -2
- data/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb +8 -0
- data/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb +8 -2
- data/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb +1 -1
- data/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb +1 -1
- data/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb +8 -0
- data/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb +8 -2
- data/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb +5 -0
- data/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb +1 -1
- data/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb +1 -1
- data/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb +25 -0
- data/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb +12 -4
- data/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb +3 -4
- data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
- data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
- data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -0
- data/examples/v2/dora-metrics/GetDORADeployment.rb +5 -0
- data/examples/v2/dora-metrics/GetDORAFailure.rb +5 -0
- data/examples/v2/dora-metrics/ListDORADeployments.rb +16 -0
- data/examples/v2/dora-metrics/ListDORAFailures.rb +16 -0
- data/examples/v2/network-device-monitoring/ListDevices_2712868412.rb +5 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +19 -17
- data/examples/v2/on-call/CreateOnCallSchedule.rb +11 -15
- data/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +2 -2
- data/examples/v2/on-call/DeleteOnCallSchedule.rb +2 -2
- data/examples/v2/on-call/GetOnCallEscalationPolicy.rb +6 -3
- data/examples/v2/on-call/GetOnCallSchedule.rb +2 -2
- data/examples/v2/on-call/GetOnCallTeamRoutingRules.rb +5 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +8 -0
- data/examples/v2/on-call/GetTeamOnCallUsers.rb +11 -0
- data/examples/v2/on-call/SetOnCallTeamRoutingRules.rb +57 -0
- data/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +8 -9
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +11 -16
- data/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb +5 -0
- data/examples/v2/on-call-paging/CreateOnCallPage.rb +23 -0
- data/examples/v2/on-call-paging/EscalateOnCallPage.rb +5 -0
- data/examples/v2/on-call-paging/ResolveOnCallPage.rb +5 -0
- data/examples/v2/rum-metrics/CreateRumMetric.rb +1 -1
- data/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb +9 -0
- data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
- data/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb +21 -0
- data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogRelation.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb +8 -0
- data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
- data/examples/v2/workflow-automation/CreateWorkflow.rb +0 -1
- data/examples/v2/workflow-automation/UpdateWorkflow.rb +0 -1
- data/lib/datadog_api_client/configuration.rb +203 -17
- data/lib/datadog_api_client/inflector.rb +138 -49
- data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
- data/lib/datadog_api_client/{v2/models/escalation_policy_create_request_data_attributes_steps_items_assignment.rb → v1/models/monitor_draft_status.rb} +11 -6
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
- data/lib/datadog_api_client/v2/api/csm_threats_api.rb +424 -52
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +344 -16
- data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +25 -3
- data/lib/datadog_api_client/v2/api/on_call_api.rb +301 -24
- data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +292 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +146 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +322 -0
- data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams.rb → cloud_workload_security_agent_policies_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +300 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_restrictions_items.rb → cloud_workload_security_agent_policy_update_attributes.rb} +46 -33
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_updater_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +24 -4
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_restrictions_items.rb → cloud_workload_security_agent_rule_action_set.rb} +62 -33
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +67 -19
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +83 -5
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +85 -7
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_page_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_attributes_target.rb +115 -0
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items_type.rb → create_page_request_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/create_page_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_page_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_page_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb +2 -24
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams.rb → data_relationships_teams.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items.rb → data_relationships_teams_data_items.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items_type.rb → data_relationships_teams_data_items_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_attributes_steps_items_targets_items.rb → dora_event.rb} +17 -7
- data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
- data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → dora_failure_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/dora_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_list_failures_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams.rb → dora_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +1 -21
- data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +2 -12
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +2 -3
- data/lib/datadog_api_client/v2/models/escalation_policy_step_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_attributes_steps_items_targets_items.rb → escalation_policy_step_target.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb → escalation_policy_step_target_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_user.rb +143 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_user_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items_type.rb → escalation_policy_user_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users.rb → escalation_relationships_responders.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items.rb → escalation_relationships_responders_data_items.rb} +6 -7
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items_type.rb → escalation_relationships_responders_data_items_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/escalation_targets.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
- data/lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb +2 -34
- data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/historical_job_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/http_integration.rb +0 -6
- data/lib/datadog_api_client/v2/models/http_integration_update.rb +1 -14
- data/lib/datadog_api_client/v2/models/incident_severity.rb +1 -0
- data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
- data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
- data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items_user.rb → kind_response_meta.rb} +11 -11
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams.rb → list_kind_catalog_response.rb} +17 -7
- data/lib/datadog_api_client/v2/models/list_relation_catalog_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/list_relation_catalog_response_links.rb +125 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -13
- data/lib/datadog_api_client/v2/models/observability_pipeline_metadata_entry.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_call_page_target_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items_type.rb → page_urgency.rb} +4 -3
- data/lib/datadog_api_client/v2/models/relation_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/relation_entity.rb +125 -0
- data/lib/datadog_api_client/v2/models/relation_include_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/relation_meta.rb +135 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams.rb → relation_relationships.rb} +21 -13
- data/lib/datadog_api_client/v2/models/relation_response.rb +155 -0
- data/lib/datadog_api_client/v2/models/relation_response_meta.rb +115 -0
- data/lib/datadog_api_client/v2/models/relation_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/relation_to_entity.rb +115 -0
- data/lib/datadog_api_client/v2/models/resource_filter_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items_type.rb → resource_filter_request_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/routing_rule.rb +153 -0
- data/lib/datadog_api_client/v2/models/routing_rule_action.rb +63 -0
- data/lib/datadog_api_client/v2/models/routing_rule_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/routing_rule_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy.rb +105 -0
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items.rb → routing_rule_relationships_policy_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/routing_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +3 -15
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +4 -4
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +2 -14
- data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +1 -1
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items.rb → schedule_request_data_attributes_layers_items_members_items.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items_user.rb → schedule_request_data_attributes_layers_items_members_items_user.rb} +2 -2
- data/lib/datadog_api_client/v2/models/schedule_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +2 -14
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +4 -4
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +2 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/send_slack_message_action.rb +165 -0
- data/lib/datadog_api_client/v2/models/send_slack_message_action_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/send_teams_message_action.rb +186 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items_type.rb → send_teams_message_action_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams.rb → shift.rb} +19 -9
- data/lib/datadog_api_client/v2/models/shift_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items.rb → shift_data_relationships.rb} +5 -6
- data/lib/datadog_api_client/v2/models/shift_data_relationships_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items.rb → shift_data_relationships_user_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/shift_data_relationships_user_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/shift_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/shift_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders.rb +117 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items.rb → team_on_call_responders_data.rb} +18 -19
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items.rb → team_on_call_responders_data_relationships_responders_data_items.rb} +6 -6
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
- data/lib/datadog_api_client/v2/models/team_reference.rb +1 -11
- data/lib/datadog_api_client/v2/models/team_routing_rules.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_rule.rb +147 -0
- data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items.rb → time_restriction.rb} +9 -10
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_interval.rb → time_restrictions.rb} +32 -30
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items.rb → update_resource_evaluation_filters_response_data.rb} +24 -14
- data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/urgency.rb +28 -0
- data/lib/datadog_api_client/v2/models/user_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items_end_day.rb → weekday.rb} +2 -2
- data/lib/datadog_api_client/version.rb +1 -1
- data/repository.datadog.yaml +8 -0
- metadata +171 -57
- data/.github/workflows/prepare_release.yml +0 -112
- data/RELEASING.md +0 -43
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_targets_items_type.rb +0 -28
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_assignment.rb +0 -27
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +0 -144
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/team_reference_relationships.rb +0 -105
@@ -0,0 +1,133 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The JSON:API data.
|
21
|
+
class DORAListFailuresRequestData
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Attributes to get a list of failures.
|
25
|
+
attr_reader :attributes
|
26
|
+
|
27
|
+
# The definition of `DORAListFailuresRequestDataType` object.
|
28
|
+
attr_accessor :type
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'attributes' => :'attributes',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'attributes' => :'DORAListFailuresRequestAttributes',
|
46
|
+
:'type' => :'DORAListFailuresRequestDataType'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAListFailuresRequestData` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'attributes')
|
69
|
+
self.attributes = attributes[:'attributes']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @attributes.nil?
|
82
|
+
true
|
83
|
+
end
|
84
|
+
|
85
|
+
# Custom attribute writer method with validation
|
86
|
+
# @param attributes [Object] Object to be assigned
|
87
|
+
# @!visibility private
|
88
|
+
def attributes=(attributes)
|
89
|
+
if attributes.nil?
|
90
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
91
|
+
end
|
92
|
+
@attributes = attributes
|
93
|
+
end
|
94
|
+
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
97
|
+
# @!visibility private
|
98
|
+
def to_hash
|
99
|
+
hash = {}
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
101
|
+
value = self.send(attr)
|
102
|
+
if value.nil?
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
105
|
+
end
|
106
|
+
|
107
|
+
hash[param] = _to_hash(value)
|
108
|
+
end
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
110
|
+
hash[attr] = value
|
111
|
+
end
|
112
|
+
hash
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param o [Object] Object to be compared
|
117
|
+
# @!visibility private
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
attributes == o.attributes &&
|
122
|
+
type == o.type &&
|
123
|
+
additional_properties == o.additional_properties
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Integer] Hash code
|
128
|
+
# @!visibility private
|
129
|
+
def hash
|
130
|
+
[attributes, type, additional_properties].hash
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of `DORAListFailuresRequestDataType` object.
|
21
|
+
class DORAListFailuresRequestDataType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
DORA_FAILURES_LIST_REQUEST = "dora_failures_list_request".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -17,11 +17,11 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
#
|
21
|
-
class
|
20
|
+
# Response for the DORA list endpoints.
|
21
|
+
class DORAListResponse
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
#
|
24
|
+
# The list of DORA events.
|
25
25
|
attr_accessor :data
|
26
26
|
|
27
27
|
attr_accessor :additional_properties
|
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
|
|
38
38
|
# @!visibility private
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'data' => :'Array<
|
41
|
+
:'data' => :'Array<DORAEvent>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
|
|
47
47
|
# @!visibility private
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAListResponse` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
self.additional_properties = {}
|
@@ -25,7 +25,7 @@ module DatadogAPIClient::V2
|
|
25
25
|
attr_accessor :paths
|
26
26
|
|
27
27
|
# The repository path of the source code of the entity.
|
28
|
-
|
28
|
+
attr_accessor :repository_url
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
# @!visibility private
|
@@ -72,26 +72,6 @@ module DatadogAPIClient::V2
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
# Check to see if the all the properties in the model are valid
|
76
|
-
# @return true if the model is valid
|
77
|
-
# @!visibility private
|
78
|
-
def valid?
|
79
|
-
pattern = Regexp.new(/url/)
|
80
|
-
return false if !@repository_url.nil? && @repository_url !~ pattern
|
81
|
-
true
|
82
|
-
end
|
83
|
-
|
84
|
-
# Custom attribute writer method with validation
|
85
|
-
# @param repository_url [Object] Object to be assigned
|
86
|
-
# @!visibility private
|
87
|
-
def repository_url=(repository_url)
|
88
|
-
pattern = Regexp.new(/url/)
|
89
|
-
if !repository_url.nil? && repository_url !~ pattern
|
90
|
-
fail ArgumentError, "invalid value for \"repository_url\", must conform to the pattern #{pattern}."
|
91
|
-
end
|
92
|
-
@repository_url = repository_url
|
93
|
-
end
|
94
|
-
|
95
75
|
# Checks equality by comparing each attribute.
|
96
76
|
# @param o [Object] Object to be compared
|
97
77
|
# @!visibility private
|
@@ -0,0 +1,143 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Represents an escalation policy step.
|
21
|
+
class Escalation
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Unique identifier of the escalation step.
|
25
|
+
attr_accessor :id
|
26
|
+
|
27
|
+
# Contains the relationships of an escalation object, including its responders.
|
28
|
+
attr_accessor :relationships
|
29
|
+
|
30
|
+
# Represents the resource type for individual steps in an escalation policy used during incident response.
|
31
|
+
attr_reader :type
|
32
|
+
|
33
|
+
attr_accessor :additional_properties
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
# @!visibility private
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'id' => :'id',
|
40
|
+
:'relationships' => :'relationships',
|
41
|
+
:'type' => :'type'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'id' => :'String',
|
50
|
+
:'relationships' => :'EscalationRelationships',
|
51
|
+
:'type' => :'EscalationType'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
57
|
+
# @!visibility private
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Escalation` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
self.additional_properties = {}
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
self.additional_properties[k.to_sym] = v
|
68
|
+
else
|
69
|
+
h[k.to_sym] = v
|
70
|
+
end
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'relationships')
|
78
|
+
self.relationships = attributes[:'relationships']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'type')
|
82
|
+
self.type = attributes[:'type']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
# @!visibility private
|
89
|
+
def valid?
|
90
|
+
return false if @type.nil?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Custom attribute writer method with validation
|
95
|
+
# @param type [Object] Object to be assigned
|
96
|
+
# @!visibility private
|
97
|
+
def type=(type)
|
98
|
+
if type.nil?
|
99
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
100
|
+
end
|
101
|
+
@type = type
|
102
|
+
end
|
103
|
+
|
104
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
105
|
+
# @return [Hash] Returns the object in the form of hash
|
106
|
+
# @!visibility private
|
107
|
+
def to_hash
|
108
|
+
hash = {}
|
109
|
+
self.class.attribute_map.each_pair do |attr, param|
|
110
|
+
value = self.send(attr)
|
111
|
+
if value.nil?
|
112
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
113
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
114
|
+
end
|
115
|
+
|
116
|
+
hash[param] = _to_hash(value)
|
117
|
+
end
|
118
|
+
self.additional_properties.each_pair do |attr, value|
|
119
|
+
hash[attr] = value
|
120
|
+
end
|
121
|
+
hash
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param o [Object] Object to be compared
|
126
|
+
# @!visibility private
|
127
|
+
def ==(o)
|
128
|
+
return true if self.equal?(o)
|
129
|
+
self.class == o.class &&
|
130
|
+
id == o.id &&
|
131
|
+
relationships == o.relationships &&
|
132
|
+
type == o.type &&
|
133
|
+
additional_properties == o.additional_properties
|
134
|
+
end
|
135
|
+
|
136
|
+
# Calculates hash code according to all attributes.
|
137
|
+
# @return [Integer] Hash code
|
138
|
+
# @!visibility private
|
139
|
+
def hash
|
140
|
+
[id, relationships, type, additional_properties].hash
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -21,9 +21,6 @@ module DatadogAPIClient::V2
|
|
21
21
|
class EscalationPolicyCreateRequestDataAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# Provides a detailed text description of the new escalation policy.
|
25
|
-
attr_accessor :description
|
26
|
-
|
27
24
|
# Specifies the name for the new escalation policy.
|
28
25
|
attr_reader :name
|
29
26
|
|
@@ -42,7 +39,6 @@ module DatadogAPIClient::V2
|
|
42
39
|
# @!visibility private
|
43
40
|
def self.attribute_map
|
44
41
|
{
|
45
|
-
:'description' => :'description',
|
46
42
|
:'name' => :'name',
|
47
43
|
:'resolve_page_on_policy_end' => :'resolve_page_on_policy_end',
|
48
44
|
:'retries' => :'retries',
|
@@ -54,7 +50,6 @@ module DatadogAPIClient::V2
|
|
54
50
|
# @!visibility private
|
55
51
|
def self.openapi_types
|
56
52
|
{
|
57
|
-
:'description' => :'String',
|
58
53
|
:'name' => :'String',
|
59
54
|
:'resolve_page_on_policy_end' => :'Boolean',
|
60
55
|
:'retries' => :'Integer',
|
@@ -80,10 +75,6 @@ module DatadogAPIClient::V2
|
|
80
75
|
end
|
81
76
|
}
|
82
77
|
|
83
|
-
if attributes.key?(:'description')
|
84
|
-
self.description = attributes[:'description']
|
85
|
-
end
|
86
|
-
|
87
78
|
if attributes.key?(:'name')
|
88
79
|
self.name = attributes[:'name']
|
89
80
|
end
|
@@ -158,7 +149,6 @@ module DatadogAPIClient::V2
|
|
158
149
|
def ==(o)
|
159
150
|
return true if self.equal?(o)
|
160
151
|
self.class == o.class &&
|
161
|
-
description == o.description &&
|
162
152
|
name == o.name &&
|
163
153
|
resolve_page_on_policy_end == o.resolve_page_on_policy_end &&
|
164
154
|
retries == o.retries &&
|
@@ -170,7 +160,7 @@ module DatadogAPIClient::V2
|
|
170
160
|
# @return [Integer] Hash code
|
171
161
|
# @!visibility private
|
172
162
|
def hash
|
173
|
-
[
|
163
|
+
[name, resolve_page_on_policy_end, retries, steps, additional_properties].hash
|
174
164
|
end
|
175
165
|
end
|
176
166
|
end
|
@@ -46,9 +46,9 @@ module DatadogAPIClient::V2
|
|
46
46
|
# @!visibility private
|
47
47
|
def self.openapi_types
|
48
48
|
{
|
49
|
-
:'assignment' => :'
|
49
|
+
:'assignment' => :'EscalationPolicyStepAttributesAssignment',
|
50
50
|
:'escalate_after_seconds' => :'Integer',
|
51
|
-
:'targets' => :'Array<
|
51
|
+
:'targets' => :'Array<EscalationPolicyStepTarget>'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb
CHANGED
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
class EscalationPolicyCreateRequestDataRelationships
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
#
|
24
|
+
# Associates teams with this schedule in a data structure.
|
25
25
|
attr_accessor :teams
|
26
26
|
|
27
27
|
attr_accessor :additional_properties
|
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
|
|
38
38
|
# @!visibility private
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'teams' => :'
|
41
|
+
:'teams' => :'DataRelationshipsTeams'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
class EscalationPolicyData
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# Defines the main attributes of an escalation policy, such as its
|
24
|
+
# Defines the main attributes of an escalation policy, such as its name and behavior on policy end.
|
25
25
|
attr_accessor :attributes
|
26
26
|
|
27
27
|
# Specifies the unique identifier of the escalation policy.
|
@@ -17,13 +17,10 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
# Defines the main attributes of an escalation policy, such as its
|
20
|
+
# Defines the main attributes of an escalation policy, such as its name and behavior on policy end.
|
21
21
|
class EscalationPolicyDataAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# Provides a detailed text description of the escalation policy.
|
25
|
-
attr_accessor :description
|
26
|
-
|
27
24
|
# Specifies the name of the escalation policy.
|
28
25
|
attr_reader :name
|
29
26
|
|
@@ -39,7 +36,6 @@ module DatadogAPIClient::V2
|
|
39
36
|
# @!visibility private
|
40
37
|
def self.attribute_map
|
41
38
|
{
|
42
|
-
:'description' => :'description',
|
43
39
|
:'name' => :'name',
|
44
40
|
:'resolve_page_on_policy_end' => :'resolve_page_on_policy_end',
|
45
41
|
:'retries' => :'retries'
|
@@ -50,7 +46,6 @@ module DatadogAPIClient::V2
|
|
50
46
|
# @!visibility private
|
51
47
|
def self.openapi_types
|
52
48
|
{
|
53
|
-
:'description' => :'String',
|
54
49
|
:'name' => :'String',
|
55
50
|
:'resolve_page_on_policy_end' => :'Boolean',
|
56
51
|
:'retries' => :'Integer'
|
@@ -75,10 +70,6 @@ module DatadogAPIClient::V2
|
|
75
70
|
end
|
76
71
|
}
|
77
72
|
|
78
|
-
if attributes.key?(:'description')
|
79
|
-
self.description = attributes[:'description']
|
80
|
-
end
|
81
|
-
|
82
73
|
if attributes.key?(:'name')
|
83
74
|
self.name = attributes[:'name']
|
84
75
|
end
|
@@ -136,7 +127,6 @@ module DatadogAPIClient::V2
|
|
136
127
|
def ==(o)
|
137
128
|
return true if self.equal?(o)
|
138
129
|
self.class == o.class &&
|
139
|
-
description == o.description &&
|
140
130
|
name == o.name &&
|
141
131
|
resolve_page_on_policy_end == o.resolve_page_on_policy_end &&
|
142
132
|
retries == o.retries &&
|
@@ -147,7 +137,7 @@ module DatadogAPIClient::V2
|
|
147
137
|
# @return [Integer] Hash code
|
148
138
|
# @!visibility private
|
149
139
|
def hash
|
150
|
-
[
|
140
|
+
[name, resolve_page_on_policy_end, retries, additional_properties].hash
|
151
141
|
end
|
152
142
|
end
|
153
143
|
end
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Defines the relationship to a collection of steps within an escalation policy. Contains an array of step data references.
|
25
25
|
attr_reader :steps
|
26
26
|
|
27
|
-
#
|
27
|
+
# Associates teams with this schedule in a data structure.
|
28
28
|
attr_accessor :teams
|
29
29
|
|
30
30
|
attr_accessor :additional_properties
|
@@ -43,7 +43,7 @@ module DatadogAPIClient::V2
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'steps' => :'EscalationPolicyDataRelationshipsSteps',
|
46
|
-
:'teams' => :'
|
46
|
+
:'teams' => :'DataRelationshipsTeams'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
class EscalationPolicyStepRelationships
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
#
|
24
|
+
# A list of escalation targets for a step
|
25
25
|
attr_accessor :targets
|
26
26
|
|
27
27
|
attr_accessor :additional_properties
|
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
|
|
38
38
|
# @!visibility private
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'targets' => :'
|
41
|
+
:'targets' => :'EscalationTargets'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -18,7 +18,7 @@ require 'time'
|
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
20
|
# Defines a single escalation target within a step for an escalation policy creation request. Contains `id` and `type`.
|
21
|
-
class
|
21
|
+
class EscalationPolicyStepTarget
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
24
|
# Specifies the unique identifier for this target.
|
@@ -43,7 +43,7 @@ module DatadogAPIClient::V2
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'type' => :'
|
46
|
+
:'type' => :'EscalationPolicyStepTargetType'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -52,7 +52,7 @@ module DatadogAPIClient::V2
|
|
52
52
|
# @!visibility private
|
53
53
|
def initialize(attributes = {})
|
54
54
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EscalationPolicyStepTarget` initialize method"
|
56
56
|
end
|
57
57
|
|
58
58
|
self.additional_properties = {}
|
@@ -18,7 +18,7 @@ require 'time'
|
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
20
|
# Specifies the type of escalation target (example `users`, `schedules`, or `teams`).
|
21
|
-
class
|
21
|
+
class EscalationPolicyStepTargetType
|
22
22
|
include BaseEnumModel
|
23
23
|
|
24
24
|
USERS = "users".freeze
|
@@ -21,9 +21,6 @@ module DatadogAPIClient::V2
|
|
21
21
|
class EscalationPolicyUpdateRequestDataAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# Provides a detailed text description of the escalation policy.
|
25
|
-
attr_accessor :description
|
26
|
-
|
27
24
|
# Specifies the name of the escalation policy.
|
28
25
|
attr_reader :name
|
29
26
|
|
@@ -42,7 +39,6 @@ module DatadogAPIClient::V2
|
|
42
39
|
# @!visibility private
|
43
40
|
def self.attribute_map
|
44
41
|
{
|
45
|
-
:'description' => :'description',
|
46
42
|
:'name' => :'name',
|
47
43
|
:'resolve_page_on_policy_end' => :'resolve_page_on_policy_end',
|
48
44
|
:'retries' => :'retries',
|
@@ -54,7 +50,6 @@ module DatadogAPIClient::V2
|
|
54
50
|
# @!visibility private
|
55
51
|
def self.openapi_types
|
56
52
|
{
|
57
|
-
:'description' => :'String',
|
58
53
|
:'name' => :'String',
|
59
54
|
:'resolve_page_on_policy_end' => :'Boolean',
|
60
55
|
:'retries' => :'Integer',
|
@@ -80,10 +75,6 @@ module DatadogAPIClient::V2
|
|
80
75
|
end
|
81
76
|
}
|
82
77
|
|
83
|
-
if attributes.key?(:'description')
|
84
|
-
self.description = attributes[:'description']
|
85
|
-
end
|
86
|
-
|
87
78
|
if attributes.key?(:'name')
|
88
79
|
self.name = attributes[:'name']
|
89
80
|
end
|
@@ -158,7 +149,6 @@ module DatadogAPIClient::V2
|
|
158
149
|
def ==(o)
|
159
150
|
return true if self.equal?(o)
|
160
151
|
self.class == o.class &&
|
161
|
-
description == o.description &&
|
162
152
|
name == o.name &&
|
163
153
|
resolve_page_on_policy_end == o.resolve_page_on_policy_end &&
|
164
154
|
retries == o.retries &&
|
@@ -170,7 +160,7 @@ module DatadogAPIClient::V2
|
|
170
160
|
# @return [Integer] Hash code
|
171
161
|
# @!visibility private
|
172
162
|
def hash
|
173
|
-
[
|
163
|
+
[name, resolve_page_on_policy_end, retries, steps, additional_properties].hash
|
174
164
|
end
|
175
165
|
end
|
176
166
|
end
|
@@ -50,10 +50,10 @@ module DatadogAPIClient::V2
|
|
50
50
|
# @!visibility private
|
51
51
|
def self.openapi_types
|
52
52
|
{
|
53
|
-
:'assignment' => :'
|
53
|
+
:'assignment' => :'EscalationPolicyStepAttributesAssignment',
|
54
54
|
:'escalate_after_seconds' => :'Integer',
|
55
55
|
:'id' => :'String',
|
56
|
-
:'targets' => :'Array<
|
56
|
+
:'targets' => :'Array<EscalationPolicyStepTarget>'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|