datadog_api_client 2.45.0 → 2.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +186 -7
- data/.generator/schemas/v2/openapi.yaml +5147 -312
- data/.pre-commit-config.yaml +4 -0
- data/CHANGELOG.md +46 -0
- data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
- data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
- data/examples/v2/apm/GetServiceList.rb +5 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
- data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
- data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
- data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
- data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
- data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
- data/examples/v2/events/CreateEvent.rb +1 -0
- data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
- data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
- data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
- data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
- data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
- data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
- data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
- data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
- data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
- data/examples/v2/reference-tables/DeleteRows.rb +14 -0
- data/examples/v2/reference-tables/UpsertRows.rb +19 -0
- data/examples/v2/security-monitoring/AttachCase.rb +26 -0
- data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
- data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
- data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
- data/examples/v2/security-monitoring/CreateCases.rb +56 -0
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +41 -0
- data/examples/v2/security-monitoring/DetachCase.rb +21 -0
- data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
- data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
- data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
- data/examples/v2/{team-connections → teams}/CreateTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/DeleteTeamConnections.rb +1 -1
- data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +8 -0
- data/examples/v2/{team-connections → teams}/ListTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_1473516764.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_2418873869.rb +1 -1
- data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
- data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
- data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +29 -6
- data/lib/datadog_api_client/inflector.rb +180 -5
- data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
- data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
- data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +51 -1
- data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +703 -0
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +166 -1
- data/lib/datadog_api_client/v2/api/incidents_api.rb +0 -18
- data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +279 -2
- data/lib/datadog_api_client/v2/api/reference_tables_api.rb +144 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +448 -10
- data/lib/datadog_api_client/v2/api/teams_api.rb +634 -1
- data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
- data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_config.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_phone_notification_channel_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_user_notification_channel_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → deployment_rule_options_faulty_deployment_detection.rb} +21 -19
- data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
- data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
- data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
- data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
- data/lib/datadog_api_client/v2/models/findings.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
- data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
- data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/library.rb +13 -1
- data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
- data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
- data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +24 -48
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +18 -31
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
- data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
- data/lib/datadog_api_client/v2/models/service_list_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
- data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +101 -36
- data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
- data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
- data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
- data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/threat_hunting_job_response_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +238 -11
- data/lib/datadog_api_client/v2/api/team_connections_api.rb +0 -272
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +0 -138
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
# Team sync configurations response.
|
|
21
|
+
class TeamSyncResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# List of team sync configurations
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'data' => :'data'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'data' => :'Array<TeamSyncData>'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamSyncResponse` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'data')
|
|
64
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
65
|
+
self.data = value
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
71
|
+
# @return [Hash] Returns the object in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def to_hash
|
|
74
|
+
hash = {}
|
|
75
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
76
|
+
value = self.send(attr)
|
|
77
|
+
if value.nil?
|
|
78
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
79
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
hash[param] = _to_hash(value)
|
|
83
|
+
end
|
|
84
|
+
self.additional_properties.each_pair do |attr, value|
|
|
85
|
+
hash[attr] = value
|
|
86
|
+
end
|
|
87
|
+
hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param o [Object] Object to be compared
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def ==(o)
|
|
94
|
+
return true if self.equal?(o)
|
|
95
|
+
self.class == o.class &&
|
|
96
|
+
data == o.data &&
|
|
97
|
+
additional_properties == o.additional_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def hash
|
|
104
|
+
[data, additional_properties].hash
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
# When querying team hierarchy links, a set of links for navigation between different pages is included
|
|
21
|
+
class TeamsHierarchyLinksResponseLinks
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Link to the first page.
|
|
25
|
+
attr_accessor :first
|
|
26
|
+
|
|
27
|
+
# Link to the last page.
|
|
28
|
+
attr_accessor :last
|
|
29
|
+
|
|
30
|
+
# Link to the next page.
|
|
31
|
+
attr_accessor :_next
|
|
32
|
+
|
|
33
|
+
# Link to the previous page.
|
|
34
|
+
attr_accessor :prev
|
|
35
|
+
|
|
36
|
+
# Link to the current object.
|
|
37
|
+
attr_accessor :_self
|
|
38
|
+
|
|
39
|
+
attr_accessor :additional_properties
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'first' => :'first',
|
|
46
|
+
:'last' => :'last',
|
|
47
|
+
:'_next' => :'next',
|
|
48
|
+
:'prev' => :'prev',
|
|
49
|
+
:'_self' => :'self'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute type mapping.
|
|
54
|
+
# @!visibility private
|
|
55
|
+
def self.openapi_types
|
|
56
|
+
{
|
|
57
|
+
:'first' => :'String',
|
|
58
|
+
:'last' => :'String',
|
|
59
|
+
:'_next' => :'String',
|
|
60
|
+
:'prev' => :'String',
|
|
61
|
+
:'_self' => :'String'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# List of attributes with nullable: true
|
|
66
|
+
# @!visibility private
|
|
67
|
+
def self.openapi_nullable
|
|
68
|
+
Set.new([
|
|
69
|
+
:'first',
|
|
70
|
+
:'last',
|
|
71
|
+
:'_next',
|
|
72
|
+
:'prev',
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def initialize(attributes = {})
|
|
80
|
+
if (!attributes.is_a?(Hash))
|
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsHierarchyLinksResponseLinks` initialize method"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
self.additional_properties = {}
|
|
85
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
87
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
88
|
+
self.additional_properties[k.to_sym] = v
|
|
89
|
+
else
|
|
90
|
+
h[k.to_sym] = v
|
|
91
|
+
end
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'first')
|
|
95
|
+
self.first = attributes[:'first']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'last')
|
|
99
|
+
self.last = attributes[:'last']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'_next')
|
|
103
|
+
self._next = attributes[:'_next']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'prev')
|
|
107
|
+
self.prev = attributes[:'prev']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'_self')
|
|
111
|
+
self._self = attributes[:'_self']
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
116
|
+
# @return [Hash] Returns the object in the form of hash
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def to_hash
|
|
119
|
+
hash = {}
|
|
120
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
121
|
+
value = self.send(attr)
|
|
122
|
+
if value.nil?
|
|
123
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
124
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
hash[param] = _to_hash(value)
|
|
128
|
+
end
|
|
129
|
+
self.additional_properties.each_pair do |attr, value|
|
|
130
|
+
hash[attr] = value
|
|
131
|
+
end
|
|
132
|
+
hash
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Checks equality by comparing each attribute.
|
|
136
|
+
# @param o [Object] Object to be compared
|
|
137
|
+
# @!visibility private
|
|
138
|
+
def ==(o)
|
|
139
|
+
return true if self.equal?(o)
|
|
140
|
+
self.class == o.class &&
|
|
141
|
+
first == o.first &&
|
|
142
|
+
last == o.last &&
|
|
143
|
+
_next == o._next &&
|
|
144
|
+
prev == o.prev &&
|
|
145
|
+
_self == o._self &&
|
|
146
|
+
additional_properties == o.additional_properties
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Calculates hash code according to all attributes.
|
|
150
|
+
# @return [Integer] Hash code
|
|
151
|
+
# @!visibility private
|
|
152
|
+
def hash
|
|
153
|
+
[first, last, _next, prev, _self, additional_properties].hash
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# Metadata that is included in the response when querying the team hierarchy links
|
|
21
|
+
class TeamsHierarchyLinksResponseMeta
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Metadata related to paging information that is included in the response when querying the team hierarchy links
|
|
25
|
+
attr_accessor :page
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'page' => :'page'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'page' => :'TeamsHierarchyLinksResponseMetaPage'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsHierarchyLinksResponseMeta` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'page')
|
|
64
|
+
self.page = attributes[:'page']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
page == o.page &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[page, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
# Metadata related to paging information that is included in the response when querying the team hierarchy links
|
|
21
|
+
class TeamsHierarchyLinksResponseMetaPage
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# First page number.
|
|
25
|
+
attr_accessor :first_number
|
|
26
|
+
|
|
27
|
+
# Last page number.
|
|
28
|
+
attr_accessor :last_number
|
|
29
|
+
|
|
30
|
+
# Next page number.
|
|
31
|
+
attr_accessor :next_number
|
|
32
|
+
|
|
33
|
+
# Page number.
|
|
34
|
+
attr_accessor :number
|
|
35
|
+
|
|
36
|
+
# Previous page number.
|
|
37
|
+
attr_accessor :prev_number
|
|
38
|
+
|
|
39
|
+
# Page size.
|
|
40
|
+
attr_accessor :size
|
|
41
|
+
|
|
42
|
+
# Total number of results.
|
|
43
|
+
attr_accessor :total
|
|
44
|
+
|
|
45
|
+
# Pagination type.
|
|
46
|
+
attr_accessor :type
|
|
47
|
+
|
|
48
|
+
attr_accessor :additional_properties
|
|
49
|
+
|
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
|
+
# @!visibility private
|
|
52
|
+
def self.attribute_map
|
|
53
|
+
{
|
|
54
|
+
:'first_number' => :'first_number',
|
|
55
|
+
:'last_number' => :'last_number',
|
|
56
|
+
:'next_number' => :'next_number',
|
|
57
|
+
:'number' => :'number',
|
|
58
|
+
:'prev_number' => :'prev_number',
|
|
59
|
+
:'size' => :'size',
|
|
60
|
+
:'total' => :'total',
|
|
61
|
+
:'type' => :'type'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Attribute type mapping.
|
|
66
|
+
# @!visibility private
|
|
67
|
+
def self.openapi_types
|
|
68
|
+
{
|
|
69
|
+
:'first_number' => :'Integer',
|
|
70
|
+
:'last_number' => :'Integer',
|
|
71
|
+
:'next_number' => :'Integer',
|
|
72
|
+
:'number' => :'Integer',
|
|
73
|
+
:'prev_number' => :'Integer',
|
|
74
|
+
:'size' => :'Integer',
|
|
75
|
+
:'total' => :'Integer',
|
|
76
|
+
:'type' => :'String'
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# List of attributes with nullable: true
|
|
81
|
+
# @!visibility private
|
|
82
|
+
def self.openapi_nullable
|
|
83
|
+
Set.new([
|
|
84
|
+
:'next_number',
|
|
85
|
+
:'prev_number',
|
|
86
|
+
])
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Initializes the object
|
|
90
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
91
|
+
# @!visibility private
|
|
92
|
+
def initialize(attributes = {})
|
|
93
|
+
if (!attributes.is_a?(Hash))
|
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsHierarchyLinksResponseMetaPage` initialize method"
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
self.additional_properties = {}
|
|
98
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
99
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
100
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
101
|
+
self.additional_properties[k.to_sym] = v
|
|
102
|
+
else
|
|
103
|
+
h[k.to_sym] = v
|
|
104
|
+
end
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'first_number')
|
|
108
|
+
self.first_number = attributes[:'first_number']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'last_number')
|
|
112
|
+
self.last_number = attributes[:'last_number']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'next_number')
|
|
116
|
+
self.next_number = attributes[:'next_number']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'number')
|
|
120
|
+
self.number = attributes[:'number']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'prev_number')
|
|
124
|
+
self.prev_number = attributes[:'prev_number']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'size')
|
|
128
|
+
self.size = attributes[:'size']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'total')
|
|
132
|
+
self.total = attributes[:'total']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'type')
|
|
136
|
+
self.type = attributes[:'type']
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
141
|
+
# @return [Hash] Returns the object in the form of hash
|
|
142
|
+
# @!visibility private
|
|
143
|
+
def to_hash
|
|
144
|
+
hash = {}
|
|
145
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
146
|
+
value = self.send(attr)
|
|
147
|
+
if value.nil?
|
|
148
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
149
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
hash[param] = _to_hash(value)
|
|
153
|
+
end
|
|
154
|
+
self.additional_properties.each_pair do |attr, value|
|
|
155
|
+
hash[attr] = value
|
|
156
|
+
end
|
|
157
|
+
hash
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Checks equality by comparing each attribute.
|
|
161
|
+
# @param o [Object] Object to be compared
|
|
162
|
+
# @!visibility private
|
|
163
|
+
def ==(o)
|
|
164
|
+
return true if self.equal?(o)
|
|
165
|
+
self.class == o.class &&
|
|
166
|
+
first_number == o.first_number &&
|
|
167
|
+
last_number == o.last_number &&
|
|
168
|
+
next_number == o.next_number &&
|
|
169
|
+
number == o.number &&
|
|
170
|
+
prev_number == o.prev_number &&
|
|
171
|
+
size == o.size &&
|
|
172
|
+
total == o.total &&
|
|
173
|
+
type == o.type &&
|
|
174
|
+
additional_properties == o.additional_properties
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Calculates hash code according to all attributes.
|
|
178
|
+
# @return [Integer] Hash code
|
|
179
|
+
# @!visibility private
|
|
180
|
+
def hash
|
|
181
|
+
[first_number, last_number, next_number, number, prev_number, size, total, type, additional_properties].hash
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
@@ -45,6 +45,9 @@ module DatadogAPIClient::V2
|
|
|
45
45
|
# Last modification time of the job.
|
|
46
46
|
attr_accessor :modified_at
|
|
47
47
|
|
|
48
|
+
# Whether the job outputs signals.
|
|
49
|
+
attr_accessor :signal_output
|
|
50
|
+
|
|
48
51
|
attr_accessor :additional_properties
|
|
49
52
|
|
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -58,7 +61,8 @@ module DatadogAPIClient::V2
|
|
|
58
61
|
:'job_definition' => :'jobDefinition',
|
|
59
62
|
:'job_name' => :'jobName',
|
|
60
63
|
:'job_status' => :'jobStatus',
|
|
61
|
-
:'modified_at' => :'modifiedAt'
|
|
64
|
+
:'modified_at' => :'modifiedAt',
|
|
65
|
+
:'signal_output' => :'signalOutput'
|
|
62
66
|
}
|
|
63
67
|
end
|
|
64
68
|
|
|
@@ -73,7 +77,8 @@ module DatadogAPIClient::V2
|
|
|
73
77
|
:'job_definition' => :'JobDefinition',
|
|
74
78
|
:'job_name' => :'String',
|
|
75
79
|
:'job_status' => :'String',
|
|
76
|
-
:'modified_at' => :'String'
|
|
80
|
+
:'modified_at' => :'String',
|
|
81
|
+
:'signal_output' => :'Boolean'
|
|
77
82
|
}
|
|
78
83
|
end
|
|
79
84
|
|
|
@@ -126,6 +131,10 @@ module DatadogAPIClient::V2
|
|
|
126
131
|
if attributes.key?(:'modified_at')
|
|
127
132
|
self.modified_at = attributes[:'modified_at']
|
|
128
133
|
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'signal_output')
|
|
136
|
+
self.signal_output = attributes[:'signal_output']
|
|
137
|
+
end
|
|
129
138
|
end
|
|
130
139
|
|
|
131
140
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
@@ -162,6 +171,7 @@ module DatadogAPIClient::V2
|
|
|
162
171
|
job_name == o.job_name &&
|
|
163
172
|
job_status == o.job_status &&
|
|
164
173
|
modified_at == o.modified_at &&
|
|
174
|
+
signal_output == o.signal_output &&
|
|
165
175
|
additional_properties == o.additional_properties
|
|
166
176
|
end
|
|
167
177
|
|
|
@@ -169,7 +179,7 @@ module DatadogAPIClient::V2
|
|
|
169
179
|
# @return [Integer] Hash code
|
|
170
180
|
# @!visibility private
|
|
171
181
|
def hash
|
|
172
|
-
[created_at, created_by_handle, created_by_name, created_from_rule_id, job_definition, job_name, job_status, modified_at, additional_properties].hash
|
|
182
|
+
[created_at, created_by_handle, created_by_name, created_from_rule_id, job_definition, job_name, job_status, modified_at, signal_output, additional_properties].hash
|
|
173
183
|
end
|
|
174
184
|
end
|
|
175
185
|
end
|