datadog_api_client 2.33.0 → 2.34.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 +18 -3
- data/.generator/schemas/v2/openapi.yaml +2577 -883
- 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 +16 -0
- data/Gemfile +2 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +21 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +7 -4
- 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/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/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/UpdateResourceEvaluationFilters.rb +21 -0
- data/examples/v2/software-catalog/ListCatalogRelation.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb +8 -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 -15
- data/lib/datadog_api_client/inflector.rb +104 -43
- 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/v2/api/csm_threats_api.rb +424 -52
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +265 -1
- 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 +234 -24
- data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +292 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +133 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +101 -0
- 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/{escalation_policy_update_request_data_relationships_teams_data_items.rb → cloud_workload_security_agent_policy_create_data.rb} +19 -19
- 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 +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +31 -19
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +27 -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 +29 -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/create_page_request_data_type.rb +26 -0
- 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/{escalation_policy_update_request_data_attributes_steps_items_targets_items.rb → dora_event.rb} +17 -7
- data/lib/datadog_api_client/v2/models/dora_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +1 -1
- 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/{escalation_policy_update_request_data_relationships_teams.rb → dora_list_failures_request.rb} +25 -9
- 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/{escalation_policy_create_request_data_relationships_teams_data_items_type.rb → dora_list_failures_request_data_type.rb} +3 -3
- 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_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_create_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/{team_reference_relationships_oncall_users.rb → escalation_targets.rb} +5 -5
- 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/layer_attributes.rb +1 -1
- 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/relation_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/relation_response.rb +155 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams.rb → relation_response_meta.rb} +21 -13
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items_type.rb → relation_response_type.rb} +3 -3
- 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/{schedule_update_request_data_attributes_layers_items_members_items_user.rb → routing_rule_relationships.rb} +11 -11
- 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_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/{schedule_create_request_data_relationships_teams_data_items.rb → team_routing_rules_data_relationships_rules_data_items.rb} +6 -7
- 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/{escalation_policy_data_relationships_teams_data_items.rb → team_routing_rules_request_data.rb} +18 -19
- 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/{schedule_update_request_data_attributes_layers_items_restrictions_items.rb → team_routing_rules_request_rule.rb} +44 -33
- 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/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
- metadata +128 -51
- 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_assignment.rb +0 -27
- 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/escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb +0 -28
- 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
@@ -17,7 +17,7 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
# Defines the updatable attributes for a schedule, such as name, time zone,
|
20
|
+
# Defines the updatable attributes for a schedule, such as name, time zone, and layers.
|
21
21
|
class ScheduleUpdateRequestDataAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
@@ -27,9 +27,6 @@ module DatadogAPIClient::V2
|
|
27
27
|
# A short name for the schedule.
|
28
28
|
attr_reader :name
|
29
29
|
|
30
|
-
# A list of tags that you can associate with this schedule.
|
31
|
-
attr_accessor :tags
|
32
|
-
|
33
30
|
# The time zone used when interpreting rotation times.
|
34
31
|
attr_reader :time_zone
|
35
32
|
|
@@ -41,7 +38,6 @@ module DatadogAPIClient::V2
|
|
41
38
|
{
|
42
39
|
:'layers' => :'layers',
|
43
40
|
:'name' => :'name',
|
44
|
-
:'tags' => :'tags',
|
45
41
|
:'time_zone' => :'time_zone'
|
46
42
|
}
|
47
43
|
end
|
@@ -52,7 +48,6 @@ module DatadogAPIClient::V2
|
|
52
48
|
{
|
53
49
|
:'layers' => :'Array<ScheduleUpdateRequestDataAttributesLayersItems>',
|
54
50
|
:'name' => :'String',
|
55
|
-
:'tags' => :'Array<String>',
|
56
51
|
:'time_zone' => :'String'
|
57
52
|
}
|
58
53
|
end
|
@@ -85,12 +80,6 @@ module DatadogAPIClient::V2
|
|
85
80
|
self.name = attributes[:'name']
|
86
81
|
end
|
87
82
|
|
88
|
-
if attributes.key?(:'tags')
|
89
|
-
if (value = attributes[:'tags']).is_a?(Array)
|
90
|
-
self.tags = value
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
83
|
if attributes.key?(:'time_zone')
|
95
84
|
self.time_zone = attributes[:'time_zone']
|
96
85
|
end
|
@@ -164,7 +153,6 @@ module DatadogAPIClient::V2
|
|
164
153
|
self.class == o.class &&
|
165
154
|
layers == o.layers &&
|
166
155
|
name == o.name &&
|
167
|
-
tags == o.tags &&
|
168
156
|
time_zone == o.time_zone &&
|
169
157
|
additional_properties == o.additional_properties
|
170
158
|
end
|
@@ -173,7 +161,7 @@ module DatadogAPIClient::V2
|
|
173
161
|
# @return [Integer] Hash code
|
174
162
|
# @!visibility private
|
175
163
|
def hash
|
176
|
-
[layers, name,
|
164
|
+
[layers, name, time_zone, additional_properties].hash
|
177
165
|
end
|
178
166
|
end
|
179
167
|
end
|
data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb
CHANGED
@@ -31,7 +31,7 @@ module DatadogAPIClient::V2
|
|
31
31
|
# A unique identifier for the layer being updated.
|
32
32
|
attr_accessor :id
|
33
33
|
|
34
|
-
#
|
34
|
+
# Defines how often the rotation repeats, using a combination of days and optional seconds.
|
35
35
|
attr_reader :interval
|
36
36
|
|
37
37
|
# The members assigned to this layer.
|
@@ -70,10 +70,10 @@ module DatadogAPIClient::V2
|
|
70
70
|
:'effective_date' => :'Time',
|
71
71
|
:'end_date' => :'Time',
|
72
72
|
:'id' => :'String',
|
73
|
-
:'interval' => :'
|
74
|
-
:'members' => :'Array<
|
73
|
+
:'interval' => :'LayerAttributesInterval',
|
74
|
+
:'members' => :'Array<ScheduleRequestDataAttributesLayersItemsMembersItems>',
|
75
75
|
:'name' => :'String',
|
76
|
-
:'restrictions' => :'Array<
|
76
|
+
:'restrictions' => :'Array<TimeRestriction>',
|
77
77
|
:'rotation_start' => :'Time'
|
78
78
|
}
|
79
79
|
end
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
class ScheduleUpdateRequestDataRelationships
|
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
|
|
@@ -27,6 +27,9 @@ module DatadogAPIClient::V2
|
|
27
27
|
# The user's name.
|
28
28
|
attr_accessor :name
|
29
29
|
|
30
|
+
# The user's status.
|
31
|
+
attr_accessor :status
|
32
|
+
|
30
33
|
attr_accessor :additional_properties
|
31
34
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +37,8 @@ module DatadogAPIClient::V2
|
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
36
39
|
:'email' => :'email',
|
37
|
-
:'name' => :'name'
|
40
|
+
:'name' => :'name',
|
41
|
+
:'status' => :'status'
|
38
42
|
}
|
39
43
|
end
|
40
44
|
|
@@ -43,7 +47,8 @@ module DatadogAPIClient::V2
|
|
43
47
|
def self.openapi_types
|
44
48
|
{
|
45
49
|
:'email' => :'String',
|
46
|
-
:'name' => :'String'
|
50
|
+
:'name' => :'String',
|
51
|
+
:'status' => :'UserAttributesStatus'
|
47
52
|
}
|
48
53
|
end
|
49
54
|
|
@@ -72,6 +77,10 @@ module DatadogAPIClient::V2
|
|
72
77
|
if attributes.key?(:'name')
|
73
78
|
self.name = attributes[:'name']
|
74
79
|
end
|
80
|
+
|
81
|
+
if attributes.key?(:'status')
|
82
|
+
self.status = attributes[:'status']
|
83
|
+
end
|
75
84
|
end
|
76
85
|
|
77
86
|
# Returns the object in the form of hash, with additionalProperties support.
|
@@ -102,6 +111,7 @@ module DatadogAPIClient::V2
|
|
102
111
|
self.class == o.class &&
|
103
112
|
email == o.email &&
|
104
113
|
name == o.name &&
|
114
|
+
status == o.status &&
|
105
115
|
additional_properties == o.additional_properties
|
106
116
|
end
|
107
117
|
|
@@ -109,7 +119,7 @@ module DatadogAPIClient::V2
|
|
109
119
|
# @return [Integer] Hash code
|
110
120
|
# @!visibility private
|
111
121
|
def hash
|
112
|
-
[email, name, additional_properties].hash
|
122
|
+
[email, name, status, additional_properties].hash
|
113
123
|
end
|
114
124
|
end
|
115
125
|
end
|
@@ -17,7 +17,7 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
# Once a signal is generated, the signal will remain
|
20
|
+
# Once a signal is generated, the signal will remain "open" if a case is matched at least once within
|
21
21
|
# this keep alive window. For third party detection method, this field is not used.
|
22
22
|
class SecurityMonitoringRuleKeepAlive
|
23
23
|
include BaseEnumModel
|
@@ -17,7 +17,7 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
# A signal will
|
20
|
+
# A signal will "close" regardless of the query being matched once the time exceeds the maximum duration.
|
21
21
|
# This time is calculated from the first seen timestamp.
|
22
22
|
class SecurityMonitoringRuleMaxSignalDuration
|
23
23
|
include BaseEnumModel
|
@@ -44,11 +44,11 @@ module DatadogAPIClient::V2
|
|
44
44
|
# Options on impossible travel detection method.
|
45
45
|
attr_accessor :impossible_travel_options
|
46
46
|
|
47
|
-
# Once a signal is generated, the signal will remain
|
47
|
+
# Once a signal is generated, the signal will remain "open" if a case is matched at least once within
|
48
48
|
# this keep alive window. For third party detection method, this field is not used.
|
49
49
|
attr_accessor :keep_alive
|
50
50
|
|
51
|
-
# A signal will
|
51
|
+
# A signal will "close" regardless of the query being matched once the time exceeds the maximum duration.
|
52
52
|
# This time is calculated from the first seen timestamp.
|
53
53
|
attr_accessor :max_signal_duration
|
54
54
|
|
@@ -17,7 +17,7 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
# Source of events, either logs or
|
20
|
+
# Source of events, either logs, audit trail, or Datadog events.
|
21
21
|
class SecurityMonitoringStandardDataSource
|
22
22
|
include BaseEnumModel
|
23
23
|
|
@@ -27,5 +27,6 @@ module DatadogAPIClient::V2
|
|
27
27
|
SPANS = "spans".freeze
|
28
28
|
SECURITY_RUNTIME = "security_runtime".freeze
|
29
29
|
NETWORK = "network".freeze
|
30
|
+
EVENTS = "events".freeze
|
30
31
|
end
|
31
32
|
end
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
24
24
|
# The aggregation type.
|
25
25
|
attr_accessor :aggregation
|
26
26
|
|
27
|
-
# Source of events, either logs or
|
27
|
+
# Source of events, either logs, audit trail, or Datadog events.
|
28
28
|
attr_accessor :data_source
|
29
29
|
|
30
30
|
# Field for which the cardinality is measured. Sent as an array.
|
@@ -0,0 +1,165 @@
|
|
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
|
+
# Sends a message to a Slack channel.
|
21
|
+
class SendSlackMessageAction
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The channel ID.
|
25
|
+
attr_reader :channel
|
26
|
+
|
27
|
+
# Indicates that the action is a send Slack message action.
|
28
|
+
attr_reader :type
|
29
|
+
|
30
|
+
# The workspace ID.
|
31
|
+
attr_reader :workspace
|
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
|
+
:'channel' => :'channel',
|
40
|
+
:'type' => :'type',
|
41
|
+
:'workspace' => :'workspace'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'channel' => :'String',
|
50
|
+
:'type' => :'SendSlackMessageActionType',
|
51
|
+
:'workspace' => :'String'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
57
|
+
# @!visibility private
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SendSlackMessageAction` 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?(:'channel')
|
74
|
+
self.channel = attributes[:'channel']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'type')
|
78
|
+
self.type = attributes[:'type']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'workspace')
|
82
|
+
self.workspace = attributes[:'workspace']
|
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 @channel.nil?
|
91
|
+
return false if @type.nil?
|
92
|
+
return false if @workspace.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param channel [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def channel=(channel)
|
100
|
+
if channel.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "channel", channel cannot be nil.'
|
102
|
+
end
|
103
|
+
@channel = channel
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param type [Object] Object to be assigned
|
108
|
+
# @!visibility private
|
109
|
+
def type=(type)
|
110
|
+
if type.nil?
|
111
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
112
|
+
end
|
113
|
+
@type = type
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param workspace [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def workspace=(workspace)
|
120
|
+
if workspace.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "workspace", workspace cannot be nil.'
|
122
|
+
end
|
123
|
+
@workspace = workspace
|
124
|
+
end
|
125
|
+
|
126
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
127
|
+
# @return [Hash] Returns the object in the form of hash
|
128
|
+
# @!visibility private
|
129
|
+
def to_hash
|
130
|
+
hash = {}
|
131
|
+
self.class.attribute_map.each_pair do |attr, param|
|
132
|
+
value = self.send(attr)
|
133
|
+
if value.nil?
|
134
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
135
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
136
|
+
end
|
137
|
+
|
138
|
+
hash[param] = _to_hash(value)
|
139
|
+
end
|
140
|
+
self.additional_properties.each_pair do |attr, value|
|
141
|
+
hash[attr] = value
|
142
|
+
end
|
143
|
+
hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Checks equality by comparing each attribute.
|
147
|
+
# @param o [Object] Object to be compared
|
148
|
+
# @!visibility private
|
149
|
+
def ==(o)
|
150
|
+
return true if self.equal?(o)
|
151
|
+
self.class == o.class &&
|
152
|
+
channel == o.channel &&
|
153
|
+
type == o.type &&
|
154
|
+
workspace == o.workspace &&
|
155
|
+
additional_properties == o.additional_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Calculates hash code according to all attributes.
|
159
|
+
# @return [Integer] Hash code
|
160
|
+
# @!visibility private
|
161
|
+
def hash
|
162
|
+
[channel, type, workspace, additional_properties].hash
|
163
|
+
end
|
164
|
+
end
|
165
|
+
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
|
+
# Indicates that the action is a send Slack message action.
|
21
|
+
class SendSlackMessageActionType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
SEND_SLACK_MESSAGE = "send_slack_message".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,186 @@
|
|
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
|
+
# Sends a message to a Microsoft Teams channel.
|
21
|
+
class SendTeamsMessageAction
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The channel ID.
|
25
|
+
attr_reader :channel
|
26
|
+
|
27
|
+
# The team ID.
|
28
|
+
attr_reader :team
|
29
|
+
|
30
|
+
# The tenant ID.
|
31
|
+
attr_reader :tenant
|
32
|
+
|
33
|
+
# Indicates that the action is a send Microsoft Teams message action.
|
34
|
+
attr_reader :type
|
35
|
+
|
36
|
+
attr_accessor :additional_properties
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
# @!visibility private
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'channel' => :'channel',
|
43
|
+
:'team' => :'team',
|
44
|
+
:'tenant' => :'tenant',
|
45
|
+
:'type' => :'type'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
# @!visibility private
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'channel' => :'String',
|
54
|
+
:'team' => :'String',
|
55
|
+
:'tenant' => :'String',
|
56
|
+
:'type' => :'SendTeamsMessageActionType'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SendTeamsMessageAction` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
self.additional_properties = {}
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
self.additional_properties[k.to_sym] = v
|
73
|
+
else
|
74
|
+
h[k.to_sym] = v
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'channel')
|
79
|
+
self.channel = attributes[:'channel']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'team')
|
83
|
+
self.team = attributes[:'team']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'tenant')
|
87
|
+
self.tenant = attributes[:'tenant']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'type')
|
91
|
+
self.type = attributes[:'type']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
# @!visibility private
|
98
|
+
def valid?
|
99
|
+
return false if @channel.nil?
|
100
|
+
return false if @team.nil?
|
101
|
+
return false if @tenant.nil?
|
102
|
+
return false if @type.nil?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param channel [Object] Object to be assigned
|
108
|
+
# @!visibility private
|
109
|
+
def channel=(channel)
|
110
|
+
if channel.nil?
|
111
|
+
fail ArgumentError, 'invalid value for "channel", channel cannot be nil.'
|
112
|
+
end
|
113
|
+
@channel = channel
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param team [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def team=(team)
|
120
|
+
if team.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "team", team cannot be nil.'
|
122
|
+
end
|
123
|
+
@team = team
|
124
|
+
end
|
125
|
+
|
126
|
+
# Custom attribute writer method with validation
|
127
|
+
# @param tenant [Object] Object to be assigned
|
128
|
+
# @!visibility private
|
129
|
+
def tenant=(tenant)
|
130
|
+
if tenant.nil?
|
131
|
+
fail ArgumentError, 'invalid value for "tenant", tenant cannot be nil.'
|
132
|
+
end
|
133
|
+
@tenant = tenant
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method with validation
|
137
|
+
# @param type [Object] Object to be assigned
|
138
|
+
# @!visibility private
|
139
|
+
def type=(type)
|
140
|
+
if type.nil?
|
141
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
142
|
+
end
|
143
|
+
@type = type
|
144
|
+
end
|
145
|
+
|
146
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
147
|
+
# @return [Hash] Returns the object in the form of hash
|
148
|
+
# @!visibility private
|
149
|
+
def to_hash
|
150
|
+
hash = {}
|
151
|
+
self.class.attribute_map.each_pair do |attr, param|
|
152
|
+
value = self.send(attr)
|
153
|
+
if value.nil?
|
154
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
155
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
156
|
+
end
|
157
|
+
|
158
|
+
hash[param] = _to_hash(value)
|
159
|
+
end
|
160
|
+
self.additional_properties.each_pair do |attr, value|
|
161
|
+
hash[attr] = value
|
162
|
+
end
|
163
|
+
hash
|
164
|
+
end
|
165
|
+
|
166
|
+
# Checks equality by comparing each attribute.
|
167
|
+
# @param o [Object] Object to be compared
|
168
|
+
# @!visibility private
|
169
|
+
def ==(o)
|
170
|
+
return true if self.equal?(o)
|
171
|
+
self.class == o.class &&
|
172
|
+
channel == o.channel &&
|
173
|
+
team == o.team &&
|
174
|
+
tenant == o.tenant &&
|
175
|
+
type == o.type &&
|
176
|
+
additional_properties == o.additional_properties
|
177
|
+
end
|
178
|
+
|
179
|
+
# Calculates hash code according to all attributes.
|
180
|
+
# @return [Integer] Hash code
|
181
|
+
# @!visibility private
|
182
|
+
def hash
|
183
|
+
[channel, team, tenant, type, additional_properties].hash
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
@@ -17,10 +17,10 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
# Indicates that the
|
21
|
-
class
|
20
|
+
# Indicates that the action is a send Microsoft Teams message action.
|
21
|
+
class SendTeamsMessageActionType
|
22
22
|
include BaseEnumModel
|
23
23
|
|
24
|
-
|
24
|
+
SEND_TEAMS_MESSAGE = "send_teams_message".freeze
|
25
25
|
end
|
26
26
|
end
|